/* * DO NOT EDIT THIS FILE - it is generated by Glade. */ #ifdef HAVE_CONFIG_H # include #endif #include #include #include #include #include #include #include #include "callbacks.h" #include "interface.h" #include "support.h" #define GLADE_HOOKUP_OBJECT(component,widget,name) \ g_object_set_data_full (G_OBJECT (component), name, \ gtk_widget_ref (widget), (GDestroyNotify) gtk_widget_unref) #define GLADE_HOOKUP_OBJECT_NO_REF(component,widget,name) \ g_object_set_data (G_OBJECT (component), name, widget) GtkWidget* create_mainwin (void) { GtkWidget *mainwin; GtkWidget *vbox1; GtkWidget *menubar1; GtkWidget *File; GtkWidget *File_menu; GtkWidget *open; GtkWidget *image452; GtkWidget *separator2; GtkWidget *add_files; GtkWidget *image453; GtkWidget *add_folders; GtkWidget *image454; GtkWidget *add_location1; GtkWidget *separatormenuitem1; GtkWidget *new_playlist1; GtkWidget *playlist_load; GtkWidget *playlist_save; GtkWidget *playlist_save_as; GtkWidget *separator8; GtkWidget *quit; GtkWidget *image455; GtkWidget *Edit; GtkWidget *Edit_menu; GtkWidget *clear1; GtkWidget *image456; GtkWidget *select_all1; GtkWidget *deselect_all1; GtkWidget *invert_selection1; GtkWidget *Selection; GtkWidget *Selection_menu; GtkWidget *remove1; GtkWidget *image457; GtkWidget *crop1; GtkWidget *find1; GtkWidget *separator5; GtkWidget *preferences; GtkWidget *View; GtkWidget *View_menu; GtkWidget *view_status_bar; GtkWidget *view_headers; GtkWidget *view_tabs; GtkWidget *view_eq; GtkWidget *Playback; GtkWidget *Playback_menu; GtkWidget *Order; GtkWidget *Order_menu; GSList *order_linear_group = NULL; GtkWidget *order_linear; GtkWidget *order_shuffle; GtkWidget *order_random; GtkWidget *Looping; GtkWidget *Looping_menu; GSList *loop_all_group = NULL; GtkWidget *loop_all; GtkWidget *loop_single; GtkWidget *loop_disable; GtkWidget *scroll_follows_playback; GtkWidget *cursor_follows_playback; GtkWidget *stop_after_current; GtkWidget *separator11; GtkWidget *jump_to_current_track1; GtkWidget *Help; GtkWidget *Help_menu; GtkWidget *help1; GtkWidget *image458; GtkWidget *changelog1; GtkWidget *separator10; GtkWidget *gpl1; GtkWidget *lgpl1; GtkWidget *separator9; GtkWidget *about1; GtkWidget *image459; GtkWidget *translators1; GtkWidget *image460; GtkWidget *hbox2; GtkWidget *hbox3; GtkWidget *stopbtn; GtkWidget *image128; GtkWidget *playbtn; GtkWidget *image2; GtkWidget *pausebtn; GtkWidget *image3; GtkWidget *prevbtn; GtkWidget *image4; GtkWidget *nextbtn; GtkWidget *image5; GtkWidget *seekbar; GtkWidget *volumebar; GtkWidget *tabstrip; GtkWidget *frame1; GtkWidget *playlist; GtkWidget *plugins_bottom_vbox; GtkWidget *statusbar; GtkAccelGroup *accel_group; accel_group = gtk_accel_group_new (); mainwin = gtk_window_new (GTK_WINDOW_TOPLEVEL); gtk_widget_set_events (mainwin, GDK_POINTER_MOTION_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK | GDK_KEY_PRESS_MASK); gtk_window_set_title (GTK_WINDOW (mainwin), "DeaDBeeF"); gtk_window_set_default_size (GTK_WINDOW (mainwin), 500, 300); vbox1 = gtk_vbox_new (FALSE, 0); gtk_widget_show (vbox1); gtk_container_add (GTK_CONTAINER (mainwin), vbox1); menubar1 = gtk_menu_bar_new (); gtk_widget_show (menubar1); gtk_box_pack_start (GTK_BOX (vbox1), menubar1, FALSE, FALSE, 0); File = gtk_menu_item_new_with_mnemonic (_("_File")); gtk_widget_show (File); gtk_container_add (GTK_CONTAINER (menubar1), File); File_menu = gtk_menu_new (); gtk_menu_item_set_submenu (GTK_MENU_ITEM (File), File_menu); open = gtk_image_menu_item_new_with_mnemonic (_("_Open file(s)")); gtk_widget_show (open); gtk_container_add (GTK_CONTAINER (File_menu), open); gtk_widget_add_accelerator (open, "activate", accel_group, GDK_O, (GdkModifierType) GDK_CONTROL_MASK, GTK_ACCEL_VISIBLE); image452 = gtk_image_new_from_stock ("gtk-open", GTK_ICON_SIZE_MENU); gtk_widget_show (image452); gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (open), image452); separator2 = gtk_separator_menu_item_new (); gtk_widget_show (separator2); gtk_container_add (GTK_CONTAINER (File_menu), separator2); gtk_widget_set_sensitive (separator2, FALSE); add_files = gtk_image_menu_item_new_with_mnemonic (_("Add file(s)")); gtk_widget_show (add_files); gtk_container_add (GTK_CONTAINER (File_menu), add_files); image453 = gtk_image_new_from_stock ("gtk-add", GTK_ICON_SIZE_MENU); gtk_widget_show (image453); gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (add_files), image453); add_folders = gtk_image_menu_item_new_with_mnemonic (_("Add folder(s)")); gtk_widget_show (add_folders); gtk_container_add (GTK_CONTAINER (File_menu), add_folders); image454 = gtk_image_new_from_stock ("gtk-add", GTK_ICON_SIZE_MENU); gtk_widget_show (image454); gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (add_folders), image454); add_location1 = gtk_menu_item_new_with_mnemonic (_("Add location")); gtk_widget_show (add_location1); gtk_container_add (GTK_CONTAINER (File_menu), add_location1); separatormenuitem1 = gtk_separator_menu_item_new (); gtk_widget_show (separatormenuitem1); gtk_container_add (GTK_CONTAINER (File_menu), separatormenuitem1); gtk_widget_set_sensitive (separatormenuitem1, FALSE); new_playlist1 = gtk_menu_item_new_with_mnemonic (_("New playlist")); gtk_widget_show (new_playlist1); gtk_container_add (GTK_CONTAINER (File_menu), new_playlist1); gtk_widget_add_accelerator (new_playlist1, "activate", accel_group, GDK_n, (GdkModifierType) GDK_CONTROL_MASK, GTK_ACCEL_VISIBLE); playlist_load = gtk_menu_item_new_with_mnemonic (_("Load playlist")); gtk_widget_show (playlist_load); gtk_container_add (GTK_CONTAINER (File_menu), playlist_load); playlist_save = gtk_menu_item_new_with_mnemonic (_("Save playlist")); gtk_widget_show (playlist_save); gtk_container_add (GTK_CONTAINER (File_menu), playlist_save); playlist_save_as = gtk_menu_item_new_with_mnemonic (_("Save playlist as")); gtk_widget_show (playlist_save_as); gtk_container_add (GTK_CONTAINER (File_menu), playlist_save_as); separator8 = gtk_separator_menu_item_new (); gtk_widget_show (separator8); gtk_container_add (GTK_CONTAINER (File_menu), separator8); gtk_widget_set_sensitive (separator8, FALSE); quit = gtk_image_menu_item_new_with_mnemonic (_("_Quit")); gtk_widget_show (quit); gtk_container_add (GTK_CONTAINER (File_menu), quit); gtk_widget_add_accelerator (quit, "activate", accel_group, GDK_Q, (GdkModifierType) GDK_CONTROL_MASK, GTK_ACCEL_VISIBLE); image455 = gtk_image_new_from_stock ("gtk-quit", GTK_ICON_SIZE_MENU); gtk_widget_show (image455); gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (quit), image455); Edit = gtk_menu_item_new_with_mnemonic (_("_Edit")); gtk_widget_show (Edit); gtk_container_add (GTK_CONTAINER (menubar1), Edit); Edit_menu = gtk_menu_new (); gtk_menu_item_set_submenu (GTK_MENU_ITEM (Edit), Edit_menu); clear1 = gtk_image_menu_item_new_with_mnemonic (_("_Clear")); gtk_widget_show (clear1); gtk_container_add (GTK_CONTAINER (Edit_menu), clear1); image456 = gtk_image_new_from_stock ("gtk-clear", GTK_ICON_SIZE_MENU); gtk_widget_show (image456); gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (clear1), image456); select_all1 = gtk_menu_item_new_with_mnemonic (_("Select all")); gtk_widget_show (select_all1); gtk_container_add (GTK_CONTAINER (Edit_menu), select_all1); gtk_widget_add_accelerator (select_all1, "activate", accel_group, GDK_A, (GdkModifierType) GDK_CONTROL_MASK, GTK_ACCEL_VISIBLE); deselect_all1 = gtk_menu_item_new_with_mnemonic (_("Deselect all")); gtk_widget_show (deselect_all1); gtk_container_add (GTK_CONTAINER (Edit_menu), deselect_all1); gtk_widget_add_accelerator (deselect_all1, "activate", accel_group, GDK_Escape, (GdkModifierType) 0, GTK_ACCEL_VISIBLE); invert_selection1 = gtk_menu_item_new_with_mnemonic (_("Invert selection")); gtk_widget_show (invert_selection1); gtk_container_add (GTK_CONTAINER (Edit_menu), invert_selection1); Selection = gtk_menu_item_new_with_mnemonic (_("Selection")); gtk_widget_show (Selection); gtk_container_add (GTK_CONTAINER (Edit_menu), Selection); Selection_menu = gtk_menu_new (); gtk_menu_item_set_submenu (GTK_MENU_ITEM (Selection), Selection_menu); remove1 = gtk_image_menu_item_new_with_mnemonic (_("Remove")); gtk_widget_show (remove1); gtk_container_add (GTK_CONTAINER (Selection_menu), remove1); image457 = gtk_image_new_from_stock ("gtk-remove", GTK_ICON_SIZE_MENU); gtk_widget_show (image457); gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (remove1), image457); crop1 = gtk_menu_item_new_with_mnemonic (_("Crop")); gtk_widget_show (crop1); gtk_container_add (GTK_CONTAINER (Selection_menu), crop1); find1 = gtk_menu_item_new_with_mnemonic (_("_Find")); gtk_widget_show (find1); gtk_container_add (GTK_CONTAINER (Edit_menu), find1); gtk_widget_add_accelerator (find1, "activate", accel_group, GDK_F, (GdkModifierType) GDK_CONTROL_MASK, GTK_ACCEL_VISIBLE); separator5 = gtk_separator_menu_item_new (); gtk_widget_show (separator5); gtk_container_add (GTK_CONTAINER (Edit_menu), separator5); gtk_widget_set_sensitive (separator5, FALSE); preferences = gtk_menu_item_new_with_mnemonic (_("Preferences")); gtk_widget_show (preferences); gtk_container_add (GTK_CONTAINER (Edit_menu), preferences); View = gtk_menu_item_new_with_mnemonic (_("_View")); gtk_widget_show (View); gtk_container_add (GTK_CONTAINER (menubar1), View); View_menu = gtk_menu_new (); gtk_menu_item_set_submenu (GTK_MENU_ITEM (View), View_menu); view_status_bar = gtk_check_menu_item_new_with_mnemonic (_("Status bar")); gtk_widget_show (view_status_bar); gtk_container_add (GTK_CONTAINER (View_menu), view_status_bar); view_headers = gtk_check_menu_item_new_with_mnemonic (_("Column headers")); gtk_widget_show (view_headers); gtk_container_add (GTK_CONTAINER (View_menu), view_headers); view_tabs = gtk_check_menu_item_new_with_mnemonic (_("Tabs")); gtk_widget_show (view_tabs); gtk_container_add (GTK_CONTAINER (View_menu), view_tabs); view_eq = gtk_check_menu_item_new_with_mnemonic (_("Equalizer")); gtk_widget_show (view_eq); gtk_container_add (GTK_CONTAINER (View_menu), view_eq); Playback = gtk_menu_item_new_with_mnemonic (_("_Playback")); gtk_widget_show (Playback); gtk_container_add (GTK_CONTAINER (menubar1), Playback); Playback_menu = gtk_menu_new (); gtk_menu_item_set_submenu (GTK_MENU_ITEM (Playback), Playback_menu); Order = gtk_menu_item_new_with_mnemonic (_("Order")); gtk_widget_show (Order); gtk_container_add (GTK_CONTAINER (Playback_menu), Order); Order_menu = gtk_menu_new (); gtk_menu_item_set_submenu (GTK_MENU_ITEM (Order), Order_menu); order_linear = gtk_radio_menu_item_new_with_mnemonic (order_linear_group, _("Linear")); order_linear_group = gtk_radio_menu_item_get_group (GTK_RADIO_MENU_ITEM (order_linear)); gtk_widget_show (order_linear); gtk_container_add (GTK_CONTAINER (Order_menu), order_linear); gtk_check_menu_item_set_active (GTK_CHECK_MENU_ITEM (order_linear), TRUE); order_shuffle = gtk_radio_menu_item_new_with_mnemonic (order_linear_group, _("Shuffle")); order_linear_group = gtk_radio_menu_item_get_group (GTK_RADIO_MENU_ITEM (order_shuffle)); gtk_widget_show (order_shuffle); gtk_container_add (GTK_CONTAINER (Order_menu), order_shuffle); gtk_check_menu_item_set_active (GTK_CHECK_MENU_ITEM (order_shuffle), TRUE); order_random = gtk_radio_menu_item_new_with_mnemonic (order_linear_group, _("Random")); order_linear_group = gtk_radio_menu_item_get_group (GTK_RADIO_MENU_ITEM (order_random)); gtk_widget_show (order_random); gtk_container_add (GTK_CONTAINER (Order_menu), order_random); gtk_check_menu_item_set_active (GTK_CHECK_MENU_ITEM (order_random), TRUE); Looping = gtk_menu_item_new_with_mnemonic (_("Looping")); gtk_widget_show (Looping); gtk_container_add (GTK_CONTAINER (Playback_menu), Looping); Looping_menu = gtk_menu_new (); gtk_menu_item_set_submenu (GTK_MENU_ITEM (Looping), Looping_menu); loop_all = gtk_radio_menu_item_new_with_mnemonic (loop_all_group, _("Loop All")); loop_all_group = gtk_radio_menu_item_get_group (GTK_RADIO_MENU_ITEM (loop_all)); gtk_widget_show (loop_all); gtk_container_add (GTK_CONTAINER (Looping_menu), loop_all); gtk_check_menu_item_set_active (GTK_CHECK_MENU_ITEM (loop_all), TRUE); loop_single = gtk_radio_menu_item_new_with_mnemonic (loop_all_group, _("Loop Single Song")); loop_all_group = gtk_radio_menu_item_get_group (GTK_RADIO_MENU_ITEM (loop_single)); gtk_widget_show (loop_single); gtk_container_add (GTK_CONTAINER (Looping_menu), loop_single); gtk_check_menu_item_set_active (GTK_CHECK_MENU_ITEM (loop_single), TRUE); loop_disable = gtk_radio_menu_item_new_with_mnemonic (loop_all_group, _("Don't Loop")); loop_all_group = gtk_radio_menu_item_get_group (GTK_RADIO_MENU_ITEM (loop_disable)); gtk_widget_show (loop_disable); gtk_container_add (GTK_CONTAINER (Looping_menu), loop_disable); gtk_check_menu_item_set_active (GTK_CHECK_MENU_ITEM (loop_disable), TRUE); scroll_follows_playback = gtk_check_menu_item_new_with_mnemonic (_("Scroll follows playback")); gtk_widget_show (scroll_follows_playback); gtk_container_add (GTK_CONTAINER (Playback_menu), scroll_follows_playback); gtk_check_menu_item_set_active (GTK_CHECK_MENU_ITEM (scroll_follows_playback), TRUE); cursor_follows_playback = gtk_check_menu_item_new_with_mnemonic (_("Cursor follows playback")); gtk_widget_show (cursor_follows_playback); gtk_container_add (GTK_CONTAINER (Playback_menu), cursor_follows_playback); stop_after_current = gtk_check_menu_item_new_with_mnemonic (_("Stop after current")); gtk_widget_show (stop_after_current); gtk_container_add (GTK_CONTAINER (Playback_menu), stop_after_current); gtk_widget_add_accelerator (stop_after_current, "activate", accel_group, GDK_M, (GdkModifierType) GDK_CONTROL_MASK, GTK_ACCEL_VISIBLE); separator11 = gtk_separator_menu_item_new (); gtk_widget_show (separator11); gtk_container_add (GTK_CONTAINER (Playback_menu), separator11); gtk_widget_set_sensitive (separator11, FALSE); jump_to_current_track1 = gtk_menu_item_new_with_mnemonic (_("Jump to current track")); gtk_widget_show (jump_to_current_track1); gtk_container_add (GTK_CONTAINER (Playback_menu), jump_to_current_track1); gtk_widget_add_accelerator (jump_to_current_track1, "activate", accel_group, GDK_J, (GdkModifierType) GDK_CONTROL_MASK, GTK_ACCEL_VISIBLE); Help = gtk_menu_item_new_with_mnemonic (_("_Help")); gtk_widget_show (Help); gtk_container_add (GTK_CONTAINER (menubar1), Help); Help_menu = gtk_menu_new (); gtk_menu_item_set_submenu (GTK_MENU_ITEM (Help), Help_menu); help1 = gtk_image_menu_item_new_with_mnemonic (_("_Help")); gtk_widget_show (help1); gtk_container_add (GTK_CONTAINER (Help_menu), help1); image458 = gtk_image_new_from_stock ("gtk-help", GTK_ICON_SIZE_MENU); gtk_widget_show (image458); gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (help1), image458); changelog1 = gtk_menu_item_new_with_mnemonic (_("_ChangeLog")); gtk_widget_show (changelog1); gtk_container_add (GTK_CONTAINER (Help_menu), changelog1); separator10 = gtk_separator_menu_item_new (); gtk_widget_show (separator10); gtk_container_add (GTK_CONTAINER (Help_menu), separator10); gtk_widget_set_sensitive (separator10, FALSE); gpl1 = gtk_menu_item_new_with_mnemonic (_("_GPLv2")); gtk_widget_show (gpl1); gtk_container_add (GTK_CONTAINER (Help_menu), gpl1); lgpl1 = gtk_menu_item_new_with_mnemonic (_("_LGPLv2.1")); gtk_widget_show (lgpl1); gtk_container_add (GTK_CONTAINER (Help_menu), lgpl1); separator9 = gtk_separator_menu_item_new (); gtk_widget_show (separator9); gtk_container_add (GTK_CONTAINER (Help_menu), separator9); gtk_widget_set_sensitive (separator9, FALSE); about1 = gtk_image_menu_item_new_with_mnemonic (_("_About")); gtk_widget_show (about1); gtk_container_add (GTK_CONTAINER (Help_menu), about1); image459 = gtk_image_new_from_stock ("gtk-about", GTK_ICON_SIZE_MENU); gtk_widget_show (image459); gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (about1), image459); translators1 = gtk_image_menu_item_new_with_mnemonic (_("_Translators")); gtk_widget_show (translators1); gtk_container_add (GTK_CONTAINER (Help_menu), translators1); image460 = gtk_image_new_from_stock ("gtk-about", GTK_ICON_SIZE_MENU); gtk_widget_show (image460); gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (translators1), image460); hbox2 = gtk_hbox_new (FALSE, 0); gtk_widget_show (hbox2); gtk_box_pack_start (GTK_BOX (vbox1), hbox2, FALSE, FALSE, 0); hbox3 = gtk_hbox_new (FALSE, 0); gtk_widget_show (hbox3); gtk_box_pack_start (GTK_BOX (hbox2), hbox3, FALSE, TRUE, 0); stopbtn = gtk_button_new (); gtk_widget_show (stopbtn); gtk_box_pack_start (GTK_BOX (hbox3), stopbtn, FALSE, FALSE, 0); GTK_WIDGET_UNSET_FLAGS (stopbtn, GTK_CAN_FOCUS); gtk_widget_add_accelerator (stopbtn, "activate", accel_group, GDK_v, (GdkModifierType) 0, GTK_ACCEL_VISIBLE); gtk_button_set_relief (GTK_BUTTON (stopbtn), GTK_RELIEF_NONE); image128 = gtk_image_new_from_stock ("gtk-media-stop", GTK_ICON_SIZE_BUTTON); gtk_widget_show (image128); gtk_container_add (GTK_CONTAINER (stopbtn), image128); playbtn = gtk_button_new (); gtk_widget_show (playbtn); gtk_box_pack_start (GTK_BOX (hbox3), playbtn, FALSE, FALSE, 0); GTK_WIDGET_UNSET_FLAGS (playbtn, GTK_CAN_FOCUS); gtk_widget_add_accelerator (playbtn, "activate", accel_group, GDK_x, (GdkModifierType) 0, GTK_ACCEL_VISIBLE); gtk_widget_add_accelerator (playbtn, "activate", accel_group, GDK_Return, (GdkModifierType) 0, GTK_ACCEL_VISIBLE); gtk_button_set_relief (GTK_BUTTON (playbtn), GTK_RELIEF_NONE); image2 = gtk_image_new_from_stock ("gtk-media-play", GTK_ICON_SIZE_BUTTON); gtk_widget_show (image2); gtk_container_add (GTK_CONTAINER (playbtn), image2); pausebtn = gtk_button_new (); gtk_widget_show (pausebtn); gtk_box_pack_start (GTK_BOX (hbox3), pausebtn, FALSE, FALSE, 0); GTK_WIDGET_UNSET_FLAGS (pausebtn, GTK_CAN_FOCUS); gtk_widget_add_accelerator (pausebtn, "activate", accel_group, GDK_c, (GdkModifierType) 0, GTK_ACCEL_VISIBLE); gtk_widget_add_accelerator (pausebtn, "activate", accel_group, GDK_p, (GdkModifierType) GDK_CONTROL_MASK, GTK_ACCEL_VISIBLE); gtk_button_set_relief (GTK_BUTTON (pausebtn), GTK_RELIEF_NONE); image3 = gtk_image_new_from_stock ("gtk-media-pause", GTK_ICON_SIZE_BUTTON); gtk_widget_show (image3); gtk_container_add (GTK_CONTAINER (pausebtn), image3); prevbtn = gtk_button_new (); gtk_widget_show (prevbtn); gtk_box_pack_start (GTK_BOX (hbox3), prevbtn, FALSE, FALSE, 0); GTK_WIDGET_UNSET_FLAGS (prevbtn, GTK_CAN_FOCUS); gtk_widget_add_accelerator (prevbtn, "activate", accel_group, GDK_z, (GdkModifierType) 0, GTK_ACCEL_VISIBLE); gtk_button_set_relief (GTK_BUTTON (prevbtn), GTK_RELIEF_NONE); image4 = gtk_image_new_from_stock ("gtk-media-previous", GTK_ICON_SIZE_BUTTON); gtk_widget_show (image4); gtk_container_add (GTK_CONTAINER (prevbtn), image4); nextbtn = gtk_button_new (); gtk_widget_show (nextbtn); gtk_box_pack_start (GTK_BOX (hbox3), nextbtn, FALSE, FALSE, 0); GTK_WIDGET_UNSET_FLAGS (nextbtn, GTK_CAN_FOCUS); gtk_widget_add_accelerator (nextbtn, "activate", accel_group, GDK_b, (GdkModifierType) 0, GTK_ACCEL_VISIBLE); gtk_button_set_relief (GTK_BUTTON (nextbtn), GTK_RELIEF_NONE); image5 = gtk_image_new_from_stock ("gtk-media-next", GTK_ICON_SIZE_BUTTON); gtk_widget_show (image5); gtk_container_add (GTK_CONTAINER (nextbtn), image5); seekbar = create_seekbar ("seekbar", "", "", 0, 0); gtk_widget_show (seekbar); gtk_box_pack_start (GTK_BOX (hbox2), seekbar, TRUE, TRUE, 2); gtk_widget_set_size_request (seekbar, 20, -1); GTK_WIDGET_UNSET_FLAGS (seekbar, GTK_CAN_FOCUS); GTK_WIDGET_UNSET_FLAGS (seekbar, GTK_CAN_DEFAULT); volumebar = create_volumebar_widget ("volumebar", "", "", 0, 0); gtk_widget_show (volumebar); gtk_box_pack_start (GTK_BOX (hbox2), volumebar, FALSE, TRUE, 2); gtk_widget_set_size_request (volumebar, 70, -1); GTK_WIDGET_UNSET_FLAGS (volumebar, GTK_CAN_FOCUS); GTK_WIDGET_UNSET_FLAGS (volumebar, GTK_CAN_DEFAULT); tabstrip = create_tabstrip_widget ("tabstrip", "", "", 0, 0); gtk_widget_show (tabstrip); gtk_box_pack_start (GTK_BOX (vbox1), tabstrip, FALSE, TRUE, 0); gtk_widget_set_size_request (tabstrip, -1, 24); GTK_WIDGET_UNSET_FLAGS (tabstrip, GTK_CAN_FOCUS); GTK_WIDGET_UNSET_FLAGS (tabstrip, GTK_CAN_DEFAULT); frame1 = gtk_frame_new (NULL); gtk_widget_show (frame1); gtk_box_pack_start (GTK_BOX (vbox1), frame1, TRUE, TRUE, 0); gtk_container_set_border_width (GTK_CONTAINER (frame1), 1); playlist = create_ddb_listview_widget ("playlist", "", "", 0, 0); gtk_widget_show (playlist); gtk_container_add (GTK_CONTAINER (frame1), playlist); GTK_WIDGET_UNSET_FLAGS (playlist, GTK_CAN_FOCUS); GTK_WIDGET_UNSET_FLAGS (playlist, GTK_CAN_DEFAULT); plugins_bottom_vbox = gtk_vbox_new (FALSE, 0); gtk_widget_show (plugins_bottom_vbox); gtk_box_pack_start (GTK_BOX (vbox1), plugins_bottom_vbox, FALSE, FALSE, 0); statusbar = gtk_statusbar_new (); gtk_widget_show (statusbar); gtk_box_pack_start (GTK_BOX (vbox1), statusbar, FALSE, FALSE, 0); g_signal_connect ((gpointer) mainwin, "key_press_event", G_CALLBACK (on_mainwin_key_press_event), NULL); g_signal_connect ((gpointer) mainwin, "delete_event", G_CALLBACK (on_mainwin_delete_event), NULL); g_signal_connect ((gpointer) mainwin, "configure_event", G_CALLBACK (on_mainwin_configure_event), NULL); g_signal_connect ((gpointer) mainwin, "window_state_event", G_CALLBACK (on_mainwin_window_state_event), NULL); g_signal_connect ((gpointer) mainwin, "realize", G_CALLBACK (on_mainwin_realize), NULL); g_signal_connect ((gpointer) mainwin, "button_press_event", G_CALLBACK (on_mainwin_button_press_event), NULL); g_signal_connect ((gpointer) mainwin, "button_release_event", G_CALLBACK (on_mainwin_button_release_event), NULL); g_signal_connect ((gpointer) mainwin, "scroll_event", G_CALLBACK (on_mainwin_scroll_event), NULL); g_signal_connect ((gpointer) mainwin, "motion_notify_event", G_CALLBACK (on_mainwin_motion_notify_event), NULL); g_signal_connect ((gpointer) open, "activate", G_CALLBACK (on_open_activate), NULL); g_signal_connect ((gpointer) add_files, "activate", G_CALLBACK (on_add_files_activate), NULL); g_signal_connect ((gpointer) add_folders, "activate", G_CALLBACK (on_add_folders_activate), NULL); g_signal_connect ((gpointer) add_location1, "activate", G_CALLBACK (on_add_location_activate), NULL); g_signal_connect ((gpointer) new_playlist1, "activate", G_CALLBACK (on_new_playlist1_activate), NULL); g_signal_connect ((gpointer) playlist_load, "activate", G_CALLBACK (on_playlist_load_activate), NULL); g_signal_connect ((gpointer) playlist_save, "activate", G_CALLBACK (on_playlist_save_activate), NULL); g_signal_connect ((gpointer) playlist_save_as, "activate", G_CALLBACK (on_playlist_save_as_activate), NULL); g_signal_connect ((gpointer) quit, "activate", G_CALLBACK (on_quit_activate), NULL); g_signal_connect ((gpointer) clear1, "activate", G_CALLBACK (on_clear1_activate), NULL); g_signal_connect ((gpointer) select_all1, "activate", G_CALLBACK (on_select_all1_activate), NULL); g_signal_connect ((gpointer) deselect_all1, "activate", G_CALLBACK (on_deselect_all1_activate), NULL); g_signal_connect ((gpointer) invert_selection1, "activate", G_CALLBACK (on_invert_selection1_activate), NULL); g_signal_connect ((gpointer) remove1, "activate", G_CALLBACK (on_remove1_activate), NULL); g_signal_connect ((gpointer) crop1, "activate", G_CALLBACK (on_crop1_activate), NULL); g_signal_connect ((gpointer) find1, "activate", G_CALLBACK (on_find_activate), NULL); g_signal_connect ((gpointer) preferences, "activate", G_CALLBACK (on_preferences_activate), NULL); g_signal_connect ((gpointer) view_status_bar, "activate", G_CALLBACK (on_toggle_status_bar_activate), NULL); g_signal_connect ((gpointer) view_headers, "activate", G_CALLBACK (on_toggle_column_headers_activate), NULL); g_signal_connect ((gpointer) view_tabs, "activate", G_CALLBACK (on_toggle_tabs), NULL); g_signal_connect ((gpointer) view_eq, "activate", G_CALLBACK (on_toggle_eq), NULL); g_signal_connect ((gpointer) order_linear, "activate", G_CALLBACK (on_order_linear_activate), NULL); g_signal_connect ((gpointer) order_shuffle, "activate", G_CALLBACK (on_order_shuffle_activate), NULL); g_signal_connect ((gpointer) order_random, "activate", G_CALLBACK (on_order_random_activate), NULL); g_signal_connect ((gpointer) loop_all, "activate", G_CALLBACK (on_loop_all_activate), NULL); g_signal_connect ((gpointer) loop_single, "activate", G_CALLBACK (on_loop_single_activate), NULL); g_signal_connect ((gpointer) loop_disable, "activate", G_CALLBACK (on_loop_disable_activate), NULL); g_signal_connect ((gpointer) scroll_follows_playback, "activate", G_CALLBACK (on_scroll_follows_playback_activate), NULL); g_signal_connect ((gpointer) cursor_follows_playback, "activate", G_CALLBACK (on_cursor_follows_playback_activate), NULL); g_signal_connect ((gpointer) stop_after_current, "activate", G_CALLBACK (on_stop_after_current_activate), NULL); g_signal_connect ((gpointer) jump_to_current_track1, "activate", G_CALLBACK (on_jump_to_current_track1_activate), NULL); g_signal_connect ((gpointer) help1, "activate", G_CALLBACK (on_help1_activate), NULL); g_signal_connect ((gpointer) changelog1, "activate", G_CALLBACK (on_changelog1_activate), NULL); g_signal_connect ((gpointer) gpl1, "activate", G_CALLBACK (on_gpl1_activate), NULL); g_signal_connect ((gpointer) lgpl1, "activate", G_CALLBACK (on_lgpl1_activate), NULL); g_signal_connect ((gpointer) about1, "activate", G_CALLBACK (on_about1_activate), NULL); g_signal_connect ((gpointer) translators1, "activate", G_CALLBACK (on_translators1_activate), NULL); g_signal_connect ((gpointer) stopbtn, "clicked", G_CALLBACK (on_stopbtn_clicked), NULL); g_signal_connect ((gpointer) playbtn, "clicked", G_CALLBACK (on_playbtn_clicked), NULL); g_signal_connect ((gpointer) pausebtn, "clicked", G_CALLBACK (on_pausebtn_clicked), NULL); g_signal_connect ((gpointer) prevbtn, "clicked", G_CALLBACK (on_prevbtn_clicked), NULL); g_signal_connect ((gpointer) nextbtn, "clicked", G_CALLBACK (on_nextbtn_clicked), NULL); /* Store pointers to all widgets, for use by lookup_widget(). */ GLADE_HOOKUP_OBJECT_NO_REF (mainwin, mainwin, "mainwin"); GLADE_HOOKUP_OBJECT (mainwin, vbox1, "vbox1"); GLADE_HOOKUP_OBJECT (mainwin, menubar1, "menubar1"); GLADE_HOOKUP_OBJECT (mainwin, File, "File"); GLADE_HOOKUP_OBJECT (mainwin, File_menu, "File_menu"); GLADE_HOOKUP_OBJECT (mainwin, open, "open"); GLADE_HOOKUP_OBJECT (mainwin, image452, "image452"); GLADE_HOOKUP_OBJECT (mainwin, separator2, "separator2"); GLADE_HOOKUP_OBJECT (mainwin, add_files, "add_files"); GLADE_HOOKUP_OBJECT (mainwin, image453, "image453"); GLADE_HOOKUP_OBJECT (mainwin, add_folders, "add_folders"); GLADE_HOOKUP_OBJECT (mainwin, image454, "image454"); GLADE_HOOKUP_OBJECT (mainwin, add_location1, "add_location1"); GLADE_HOOKUP_OBJECT (mainwin, separatormenuitem1, "separatormenuitem1"); GLADE_HOOKUP_OBJECT (mainwin, new_playlist1, "new_playlist1"); GLADE_HOOKUP_OBJECT (mainwin, playlist_load, "playlist_load"); GLADE_HOOKUP_OBJECT (mainwin, playlist_save, "playlist_save"); GLADE_HOOKUP_OBJECT (mainwin, playlist_save_as, "playlist_save_as"); GLADE_HOOKUP_OBJECT (mainwin, separator8, "separator8"); GLADE_HOOKUP_OBJECT (mainwin, quit, "quit"); GLADE_HOOKUP_OBJECT (mainwin, image455, "image455"); GLADE_HOOKUP_OBJECT (mainwin, Edit, "Edit"); GLADE_HOOKUP_OBJECT (mainwin, Edit_menu, "Edit_menu"); GLADE_HOOKUP_OBJECT (mainwin, clear1, "clear1"); GLADE_HOOKUP_OBJECT (mainwin, image456, "image456"); GLADE_HOOKUP_OBJECT (mainwin, select_all1, "select_all1"); GLADE_HOOKUP_OBJECT (mainwin, deselect_all1, "deselect_all1"); GLADE_HOOKUP_OBJECT (mainwin, invert_selection1, "invert_selection1"); GLADE_HOOKUP_OBJECT (mainwin, Selection, "Selection"); GLADE_HOOKUP_OBJECT (mainwin, Selection_menu, "Selection_menu"); GLADE_HOOKUP_OBJECT (mainwin, remove1, "remove1"); GLADE_HOOKUP_OBJECT (mainwin, image457, "image457"); GLADE_HOOKUP_OBJECT (mainwin, crop1, "crop1"); GLADE_HOOKUP_OBJECT (mainwin, find1, "find1"); GLADE_HOOKUP_OBJECT (mainwin, separator5, "separator5"); GLADE_HOOKUP_OBJECT (mainwin, preferences, "preferences"); GLADE_HOOKUP_OBJECT (mainwin, View, "View"); GLADE_HOOKUP_OBJECT (mainwin, View_menu, "View_menu"); GLADE_HOOKUP_OBJECT (mainwin, view_status_bar, "view_status_bar"); GLADE_HOOKUP_OBJECT (mainwin, view_headers, "view_headers"); GLADE_HOOKUP_OBJECT (mainwin, view_tabs, "view_tabs"); GLADE_HOOKUP_OBJECT (mainwin, view_eq, "view_eq"); GLADE_HOOKUP_OBJECT (mainwin, Playback, "Playback"); GLADE_HOOKUP_OBJECT (mainwin, Playback_menu, "Playback_menu"); GLADE_HOOKUP_OBJECT (mainwin, Order, "Order"); GLADE_HOOKUP_OBJECT (mainwin, Order_menu, "Order_menu"); GLADE_HOOKUP_OBJECT (mainwin, order_linear, "order_linear"); GLADE_HOOKUP_OBJECT (mainwin, order_shuffle, "order_shuffle"); GLADE_HOOKUP_OBJECT (mainwin, order_random, "order_random"); GLADE_HOOKUP_OBJECT (mainwin, Looping, "Looping"); GLADE_HOOKUP_OBJECT (mainwin, Looping_menu, "Looping_menu"); GLADE_HOOKUP_OBJECT (mainwin, loop_all, "loop_all"); GLADE_HOOKUP_OBJECT (mainwin, loop_single, "loop_single"); GLADE_HOOKUP_OBJECT (mainwin, loop_disable, "loop_disable"); GLADE_HOOKUP_OBJECT (mainwin, scroll_follows_playback, "scroll_follows_playback"); GLADE_HOOKUP_OBJECT (mainwin, cursor_follows_playback, "cursor_follows_playback"); GLADE_HOOKUP_OBJECT (mainwin, stop_after_current, "stop_after_current"); GLADE_HOOKUP_OBJECT (mainwin, separator11, "separator11"); GLADE_HOOKUP_OBJECT (mainwin, jump_to_current_track1, "jump_to_current_track1"); GLADE_HOOKUP_OBJECT (mainwin, Help, "Help"); GLADE_HOOKUP_OBJECT (mainwin, Help_menu, "Help_menu"); GLADE_HOOKUP_OBJECT (mainwin, help1, "help1"); GLADE_HOOKUP_OBJECT (mainwin, image458, "image458"); GLADE_HOOKUP_OBJECT (mainwin, changelog1, "changelog1"); GLADE_HOOKUP_OBJECT (mainwin, separator10, "separator10"); GLADE_HOOKUP_OBJECT (mainwin, gpl1, "gpl1"); GLADE_HOOKUP_OBJECT (mainwin, lgpl1, "lgpl1"); GLADE_HOOKUP_OBJECT (mainwin, separator9, "separator9"); GLADE_HOOKUP_OBJECT (mainwin, about1, "about1"); GLADE_HOOKUP_OBJECT (mainwin, image459, "image459"); GLADE_HOOKUP_OBJECT (mainwin, translators1, "translators1"); GLADE_HOOKUP_OBJECT (mainwin, image460, "image460"); GLADE_HOOKUP_OBJECT (mainwin, hbox2, "hbox2"); GLADE_HOOKUP_OBJECT (mainwin, hbox3, "hbox3"); GLADE_HOOKUP_OBJECT (mainwin, stopbtn, "stopbtn"); GLADE_HOOKUP_OBJECT (mainwin, image128, "image128"); GLADE_HOOKUP_OBJECT (mainwin, playbtn, "playbtn"); GLADE_HOOKUP_OBJECT (mainwin, image2, "image2"); GLADE_HOOKUP_OBJECT (mainwin, pausebtn, "pausebtn"); GLADE_HOOKUP_OBJECT (mainwin, image3, "image3"); GLADE_HOOKUP_OBJECT (mainwin, prevbtn, "prevbtn"); GLADE_HOOKUP_OBJECT (mainwin, image4, "image4"); GLADE_HOOKUP_OBJECT (mainwin, nextbtn, "nextbtn"); GLADE_HOOKUP_OBJECT (mainwin, image5, "image5"); GLADE_HOOKUP_OBJECT (mainwin, seekbar, "seekbar"); GLADE_HOOKUP_OBJECT (mainwin, volumebar, "volumebar"); GLADE_HOOKUP_OBJECT (mainwin, tabstrip, "tabstrip"); GLADE_HOOKUP_OBJECT (mainwin, frame1, "frame1"); GLADE_HOOKUP_OBJECT (mainwin, playlist, "playlist"); GLADE_HOOKUP_OBJECT (mainwin, plugins_bottom_vbox, "plugins_bottom_vbox"); GLADE_HOOKUP_OBJECT (mainwin, statusbar, "statusbar"); gtk_window_add_accel_group (GTK_WINDOW (mainwin), accel_group); return mainwin; } GtkWidget* create_searchwin (void) { GtkWidget *searchwin; GtkWidget *vbox4; GtkWidget *searchentry; GtkWidget *frame2; GtkWidget *searchlist; searchwin = gtk_window_new (GTK_WINDOW_TOPLEVEL); gtk_widget_set_events (searchwin, GDK_KEY_PRESS_MASK); gtk_window_set_title (GTK_WINDOW (searchwin), _("Search")); gtk_window_set_skip_taskbar_hint (GTK_WINDOW (searchwin), TRUE); gtk_window_set_skip_pager_hint (GTK_WINDOW (searchwin), TRUE); vbox4 = gtk_vbox_new (FALSE, 0); gtk_widget_show (vbox4); gtk_container_add (GTK_CONTAINER (searchwin), vbox4); gtk_container_set_border_width (GTK_CONTAINER (vbox4), 4); searchentry = gtk_entry_new (); gtk_widget_show (searchentry); gtk_box_pack_start (GTK_BOX (vbox4), searchentry, FALSE, FALSE, 0); gtk_entry_set_invisible_char (GTK_ENTRY (searchentry), 8226); gtk_entry_set_activates_default (GTK_ENTRY (searchentry), TRUE); frame2 = gtk_frame_new (NULL); gtk_widget_show (frame2); gtk_box_pack_start (GTK_BOX (vbox4), frame2, TRUE, TRUE, 0); searchlist = create_ddb_listview_widget ("searchlist", "", "", 0, 0); gtk_widget_show (searchlist); gtk_container_add (GTK_CONTAINER (frame2), searchlist); GTK_WIDGET_UNSET_FLAGS (searchlist, GTK_CAN_FOCUS); GTK_WIDGET_UNSET_FLAGS (searchlist, GTK_CAN_DEFAULT); g_signal_connect ((gpointer) searchwin, "key_press_event", G_CALLBACK (on_searchwin_key_press_event), NULL); g_signal_connect ((gpointer) searchwin, "delete_event", G_CALLBACK (gtk_widget_hide_on_delete), NULL); g_signal_connect ((gpointer) searchwin, "configure_event", G_CALLBACK (on_searchwin_configure_event), NULL); g_signal_connect ((gpointer) searchwin, "window_state_event", G_CALLBACK (on_searchwin_window_state_event), NULL); g_signal_connect ((gpointer) searchentry, "changed", G_CALLBACK (on_searchentry_changed), NULL); /* Store pointers to all widgets, for use by lookup_widget(). */ GLADE_HOOKUP_OBJECT_NO_REF (searchwin, searchwin, "searchwin"); GLADE_HOOKUP_OBJECT (searchwin, vbox4, "vbox4"); GLADE_HOOKUP_OBJECT (searchwin, searchentry, "searchentry"); GLADE_HOOKUP_OBJECT (searchwin, frame2, "frame2"); GLADE_HOOKUP_OBJECT (searchwin, searchlist, "searchlist"); return searchwin; } GtkWidget* create_traymenu (void) { GtkWidget *traymenu; GtkWidget *stop2; GtkWidget *image59; GtkWidget *play2; GtkWidget *image60; GtkWidget *pause2; GtkWidget *image61; GtkWidget *previous2; GtkWidget *image62; GtkWidget *next2; GtkWidget *image63; GtkWidget *play_random1; GtkWidget *separator4; GtkWidget *about3; GtkWidget *image64; GtkWidget *separator3; GtkWidget *quit; GtkWidget *image65; traymenu = gtk_menu_new (); stop2 = gtk_image_menu_item_new_with_mnemonic (_("Stop")); gtk_widget_show (stop2); gtk_container_add (GTK_CONTAINER (traymenu), stop2); image59 = gtk_image_new_from_stock ("gtk-media-stop", GTK_ICON_SIZE_MENU); gtk_widget_show (image59); gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (stop2), image59); play2 = gtk_image_menu_item_new_with_mnemonic (_("Play")); gtk_widget_show (play2); gtk_container_add (GTK_CONTAINER (traymenu), play2); image60 = gtk_image_new_from_stock ("gtk-media-play", GTK_ICON_SIZE_MENU); gtk_widget_show (image60); gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (play2), image60); pause2 = gtk_image_menu_item_new_with_mnemonic (_("Pause")); gtk_widget_show (pause2); gtk_container_add (GTK_CONTAINER (traymenu), pause2); image61 = gtk_image_new_from_stock ("gtk-media-pause", GTK_ICON_SIZE_MENU); gtk_widget_show (image61); gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (pause2), image61); previous2 = gtk_image_menu_item_new_with_mnemonic (_("Previous")); gtk_widget_show (previous2); gtk_container_add (GTK_CONTAINER (traymenu), previous2); image62 = gtk_image_new_from_stock ("gtk-media-previous", GTK_ICON_SIZE_MENU); gtk_widget_show (image62); gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (previous2), image62); next2 = gtk_image_menu_item_new_with_mnemonic (_("Next")); gtk_widget_show (next2); gtk_container_add (GTK_CONTAINER (traymenu), next2); image63 = gtk_image_new_from_stock ("gtk-media-next", GTK_ICON_SIZE_MENU); gtk_widget_show (image63); gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (next2), image63); play_random1 = gtk_menu_item_new_with_mnemonic (_("Play Random")); gtk_widget_show (play_random1); gtk_container_add (GTK_CONTAINER (traymenu), play_random1); separator4 = gtk_separator_menu_item_new (); gtk_widget_show (separator4); gtk_container_add (GTK_CONTAINER (traymenu), separator4); gtk_widget_set_sensitive (separator4, FALSE); about3 = gtk_image_menu_item_new_with_mnemonic (_("About")); gtk_widget_show (about3); gtk_container_add (GTK_CONTAINER (traymenu), about3); image64 = gtk_image_new_from_stock ("gtk-about", GTK_ICON_SIZE_MENU); gtk_widget_show (image64); gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (about3), image64); separator3 = gtk_separator_menu_item_new (); gtk_widget_show (separator3); gtk_container_add (GTK_CONTAINER (traymenu), separator3); gtk_widget_set_sensitive (separator3, FALSE); quit = gtk_image_menu_item_new_with_mnemonic (_("Quit")); gtk_widget_show (quit); gtk_container_add (GTK_CONTAINER (traymenu), quit); image65 = gtk_image_new_from_stock ("gtk-quit", GTK_ICON_SIZE_MENU); gtk_widget_show (image65); gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (quit), image65); g_signal_connect ((gpointer) stop2, "activate", G_CALLBACK (on_stopbtn_clicked), NULL); g_signal_connect ((gpointer) play2, "activate", G_CALLBACK (on_playbtn_clicked), NULL); g_signal_connect ((gpointer) pause2, "activate", G_CALLBACK (on_pausebtn_clicked), NULL); g_signal_connect ((gpointer) previous2, "activate", G_CALLBACK (on_prevbtn_clicked), NULL); g_signal_connect ((gpointer) next2, "activate", G_CALLBACK (on_nextbtn_clicked), NULL); g_signal_connect ((gpointer) play_random1, "activate", G_CALLBACK (on_playrand_clicked), NULL); g_signal_connect ((gpointer) about3, "activate", G_CALLBACK (on_about1_activate), NULL); g_signal_connect ((gpointer) quit, "activate", G_CALLBACK (on_quit_activate), NULL); /* Store pointers to all widgets, for use by lookup_widget(). */ GLADE_HOOKUP_OBJECT_NO_REF (traymenu, traymenu, "traymenu"); GLADE_HOOKUP_OBJECT (traymenu, stop2, "stop2"); GLADE_HOOKUP_OBJECT (traymenu, image59, "image59"); GLADE_HOOKUP_OBJECT (traymenu, play2, "play2"); GLADE_HOOKUP_OBJECT (traymenu, image60, "image60"); GLADE_HOOKUP_OBJECT (traymenu, pause2, "pause2"); GLADE_HOOKUP_OBJECT (traymenu, image61, "image61"); GLADE_HOOKUP_OBJECT (traymenu, previous2, "previous2"); GLADE_HOOKUP_OBJECT (traymenu, image62, "image62"); GLADE_HOOKUP_OBJECT (traymenu, next2, "next2"); GLADE_HOOKUP_OBJECT (traymenu, image63, "image63"); GLADE_HOOKUP_OBJECT (traymenu, play_random1, "play_random1"); GLADE_HOOKUP_OBJECT (traymenu, separator4, "separator4"); GLADE_HOOKUP_OBJECT (traymenu, about3, "about3"); GLADE_HOOKUP_OBJECT (traymenu, image64, "image64"); GLADE_HOOKUP_OBJECT (traymenu, separator3, "separator3"); GLADE_HOOKUP_OBJECT (traymenu, quit, "quit"); GLADE_HOOKUP_OBJECT (traymenu, image65, "image65"); return traymenu; } GtkWidget* create_addprogress (void) { GtkWidget *addprogress; GtkWidget *vbox6; GtkWidget *progresstitle; GtkWidget *hbox7; GtkWidget *label22; GtkWidget *button3; addprogress = gtk_window_new (GTK_WINDOW_TOPLEVEL); gtk_container_set_border_width (GTK_CONTAINER (addprogress), 12); gtk_window_set_title (GTK_WINDOW (addprogress), _("Adding files...")); gtk_window_set_position (GTK_WINDOW (addprogress), GTK_WIN_POS_CENTER_ON_PARENT); gtk_window_set_modal (GTK_WINDOW (addprogress), TRUE); gtk_window_set_skip_taskbar_hint (GTK_WINDOW (addprogress), TRUE); gtk_window_set_skip_pager_hint (GTK_WINDOW (addprogress), TRUE); vbox6 = gtk_vbox_new (FALSE, 8); gtk_widget_show (vbox6); gtk_container_add (GTK_CONTAINER (addprogress), vbox6); progresstitle = gtk_entry_new (); gtk_widget_show (progresstitle); gtk_box_pack_start (GTK_BOX (vbox6), progresstitle, TRUE, FALSE, 0); gtk_widget_set_size_request (progresstitle, 500, -1); GTK_WIDGET_UNSET_FLAGS (progresstitle, GTK_CAN_FOCUS); gtk_editable_set_editable (GTK_EDITABLE (progresstitle), FALSE); gtk_entry_set_invisible_char (GTK_ENTRY (progresstitle), 8226); hbox7 = gtk_hbox_new (FALSE, 0); gtk_widget_show (hbox7); gtk_box_pack_start (GTK_BOX (vbox6), hbox7, FALSE, TRUE, 2); label22 = gtk_label_new (""); gtk_widget_show (label22); gtk_box_pack_start (GTK_BOX (hbox7), label22, TRUE, FALSE, 0); button3 = gtk_button_new_from_stock ("gtk-cancel"); gtk_widget_show (button3); gtk_box_pack_start (GTK_BOX (hbox7), button3, FALSE, FALSE, 0); g_signal_connect ((gpointer) addprogress, "delete_event", G_CALLBACK (on_addprogress_delete_event), NULL); g_signal_connect ((gpointer) button3, "clicked", G_CALLBACK (on_progress_abort), NULL); /* Store pointers to all widgets, for use by lookup_widget(). */ GLADE_HOOKUP_OBJECT_NO_REF (addprogress, addprogress, "addprogress"); GLADE_HOOKUP_OBJECT (addprogress, vbox6, "vbox6"); GLADE_HOOKUP_OBJECT (addprogress, progresstitle, "progresstitle"); GLADE_HOOKUP_OBJECT (addprogress, hbox7, "hbox7"); GLADE_HOOKUP_OBJECT (addprogress, label22, "label22"); GLADE_HOOKUP_OBJECT (addprogress, button3, "button3"); return addprogress; } GtkWidget* create_helpwindow (void) { GtkWidget *helpwindow; GtkWidget *scrolledwindow1; GtkWidget *helptext; helpwindow = gtk_window_new (GTK_WINDOW_TOPLEVEL); gtk_widget_set_size_request (helpwindow, 600, 400); gtk_widget_set_events (helpwindow, GDK_KEY_PRESS_MASK); gtk_window_set_title (GTK_WINDOW (helpwindow), _("Help")); gtk_window_set_modal (GTK_WINDOW (helpwindow), TRUE); gtk_window_set_destroy_with_parent (GTK_WINDOW (helpwindow), TRUE); gtk_window_set_skip_taskbar_hint (GTK_WINDOW (helpwindow), TRUE); gtk_window_set_skip_pager_hint (GTK_WINDOW (helpwindow), TRUE); scrolledwindow1 = gtk_scrolled_window_new (NULL, NULL); gtk_widget_show (scrolledwindow1); gtk_container_add (GTK_CONTAINER (helpwindow), scrolledwindow1); gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolledwindow1), GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC); helptext = gtk_text_view_new (); gtk_widget_show (helptext); gtk_container_add (GTK_CONTAINER (scrolledwindow1), helptext); gtk_text_view_set_editable (GTK_TEXT_VIEW (helptext), FALSE); gtk_text_view_set_wrap_mode (GTK_TEXT_VIEW (helptext), GTK_WRAP_WORD); gtk_text_view_set_left_margin (GTK_TEXT_VIEW (helptext), 10); gtk_text_view_set_right_margin (GTK_TEXT_VIEW (helptext), 10); g_signal_connect ((gpointer) helpwindow, "key_press_event", G_CALLBACK (on_helpwindow_key_press_event), NULL); /* Store pointers to all widgets, for use by lookup_widget(). */ GLADE_HOOKUP_OBJECT_NO_REF (helpwindow, helpwindow, "helpwindow"); GLADE_HOOKUP_OBJECT (helpwindow, scrolledwindow1, "scrolledwindow1"); GLADE_HOOKUP_OBJECT (helpwindow, helptext, "helptext"); return helpwindow; } GtkWidget* create_trackproperties (void) { GtkWidget *trackproperties; GtkWidget *notebook3; GtkWidget *vbox16; GtkWidget *scrolledwindow5; GtkWidget *metalist; GtkWidget *hbuttonbox1; GtkWidget *write_tags; GtkWidget *alignment11; GtkWidget *hbox52; GtkWidget *image390; GtkWidget *label88; GtkWidget *closebtn; GtkWidget *alignment12; GtkWidget *hbox53; GtkWidget *image391; GtkWidget *label89; GtkWidget *label64; GtkWidget *vbox24; GtkWidget *scrolledwindow6; GtkWidget *properties; GtkWidget *hbuttonbox2; GtkWidget *button2; GtkWidget *alignment13; GtkWidget *hbox54; GtkWidget *image392; GtkWidget *label90; GtkWidget *label80; trackproperties = gtk_window_new (GTK_WINDOW_TOPLEVEL); gtk_widget_set_size_request (trackproperties, 400, 400); gtk_window_set_title (GTK_WINDOW (trackproperties), _("Track Properties")); gtk_window_set_skip_taskbar_hint (GTK_WINDOW (trackproperties), TRUE); gtk_window_set_skip_pager_hint (GTK_WINDOW (trackproperties), TRUE); notebook3 = gtk_notebook_new (); gtk_widget_show (notebook3); gtk_container_add (GTK_CONTAINER (trackproperties), notebook3); vbox16 = gtk_vbox_new (FALSE, 8); gtk_widget_show (vbox16); gtk_container_add (GTK_CONTAINER (notebook3), vbox16); gtk_container_set_border_width (GTK_CONTAINER (vbox16), 12); scrolledwindow5 = gtk_scrolled_window_new (NULL, NULL); gtk_widget_show (scrolledwindow5); gtk_box_pack_start (GTK_BOX (vbox16), scrolledwindow5, TRUE, TRUE, 0); gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolledwindow5), GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC); gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (scrolledwindow5), GTK_SHADOW_IN); metalist = gtk_tree_view_new (); gtk_widget_show (metalist); gtk_container_add (GTK_CONTAINER (scrolledwindow5), metalist); gtk_tree_view_set_rules_hint (GTK_TREE_VIEW (metalist), TRUE); hbuttonbox1 = gtk_hbutton_box_new (); gtk_widget_show (hbuttonbox1); gtk_box_pack_start (GTK_BOX (vbox16), hbuttonbox1, FALSE, FALSE, 0); gtk_button_box_set_layout (GTK_BUTTON_BOX (hbuttonbox1), GTK_BUTTONBOX_END); write_tags = gtk_button_new (); gtk_widget_show (write_tags); gtk_container_add (GTK_CONTAINER (hbuttonbox1), write_tags); GTK_WIDGET_SET_FLAGS (write_tags, GTK_CAN_DEFAULT); alignment11 = gtk_alignment_new (0.5, 0.5, 0, 0); gtk_widget_show (alignment11); gtk_container_add (GTK_CONTAINER (write_tags), alignment11); hbox52 = gtk_hbox_new (FALSE, 2); gtk_widget_show (hbox52); gtk_container_add (GTK_CONTAINER (alignment11), hbox52); image390 = gtk_image_new_from_stock ("gtk-apply", GTK_ICON_SIZE_BUTTON); gtk_widget_show (image390); gtk_box_pack_start (GTK_BOX (hbox52), image390, FALSE, FALSE, 0); label88 = gtk_label_new_with_mnemonic (_("_Apply")); gtk_widget_show (label88); gtk_box_pack_start (GTK_BOX (hbox52), label88, FALSE, FALSE, 0); closebtn = gtk_button_new (); gtk_widget_show (closebtn); gtk_container_add (GTK_CONTAINER (hbuttonbox1), closebtn); GTK_WIDGET_SET_FLAGS (closebtn, GTK_CAN_DEFAULT); alignment12 = gtk_alignment_new (0.5, 0.5, 0, 0); gtk_widget_show (alignment12); gtk_container_add (GTK_CONTAINER (closebtn), alignment12); hbox53 = gtk_hbox_new (FALSE, 2); gtk_widget_show (hbox53); gtk_container_add (GTK_CONTAINER (alignment12), hbox53); image391 = gtk_image_new_from_stock ("gtk-close", GTK_ICON_SIZE_BUTTON); gtk_widget_show (image391); gtk_box_pack_start (GTK_BOX (hbox53), image391, FALSE, FALSE, 0); label89 = gtk_label_new_with_mnemonic (_("_Close")); gtk_widget_show (label89); gtk_box_pack_start (GTK_BOX (hbox53), label89, FALSE, FALSE, 0); label64 = gtk_label_new (_("Metadata")); gtk_widget_show (label64); gtk_notebook_set_tab_label (GTK_NOTEBOOK (notebook3), gtk_notebook_get_nth_page (GTK_NOTEBOOK (notebook3), 0), label64); vbox24 = gtk_vbox_new (FALSE, 8); gtk_widget_show (vbox24); gtk_container_add (GTK_CONTAINER (notebook3), vbox24); gtk_container_set_border_width (GTK_CONTAINER (vbox24), 12); scrolledwindow6 = gtk_scrolled_window_new (NULL, NULL); gtk_widget_show (scrolledwindow6); gtk_box_pack_start (GTK_BOX (vbox24), scrolledwindow6, TRUE, TRUE, 0); gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolledwindow6), GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC); gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (scrolledwindow6), GTK_SHADOW_IN); properties = gtk_tree_view_new (); gtk_widget_show (properties); gtk_container_add (GTK_CONTAINER (scrolledwindow6), properties); gtk_tree_view_set_rules_hint (GTK_TREE_VIEW (properties), TRUE); hbuttonbox2 = gtk_hbutton_box_new (); gtk_widget_show (hbuttonbox2); gtk_box_pack_start (GTK_BOX (vbox24), hbuttonbox2, FALSE, FALSE, 0); gtk_button_box_set_layout (GTK_BUTTON_BOX (hbuttonbox2), GTK_BUTTONBOX_END); button2 = gtk_button_new (); gtk_widget_show (button2); gtk_container_add (GTK_CONTAINER (hbuttonbox2), button2); GTK_WIDGET_SET_FLAGS (button2, GTK_CAN_DEFAULT); alignment13 = gtk_alignment_new (0.5, 0.5, 0, 0); gtk_widget_show (alignment13); gtk_container_add (GTK_CONTAINER (button2), alignment13); hbox54 = gtk_hbox_new (FALSE, 2); gtk_widget_show (hbox54); gtk_container_add (GTK_CONTAINER (alignment13), hbox54); image392 = gtk_image_new_from_stock ("gtk-close", GTK_ICON_SIZE_BUTTON); gtk_widget_show (image392); gtk_box_pack_start (GTK_BOX (hbox54), image392, FALSE, FALSE, 0); label90 = gtk_label_new_with_mnemonic (_("_Close")); gtk_widget_show (label90); gtk_box_pack_start (GTK_BOX (hbox54), label90, FALSE, FALSE, 0); label80 = gtk_label_new (_("Properties")); gtk_widget_show (label80); gtk_notebook_set_tab_label (GTK_NOTEBOOK (notebook3), gtk_notebook_get_nth_page (GTK_NOTEBOOK (notebook3), 1), label80); g_signal_connect ((gpointer) trackproperties, "key_press_event", G_CALLBACK (on_trackproperties_key_press_event), NULL); g_signal_connect ((gpointer) trackproperties, "delete_event", G_CALLBACK (on_trackproperties_delete_event), NULL); g_signal_connect ((gpointer) write_tags, "clicked", G_CALLBACK (on_write_tags_clicked), NULL); g_signal_connect ((gpointer) closebtn, "clicked", G_CALLBACK (on_closebtn_clicked), NULL); g_signal_connect ((gpointer) button2, "clicked", G_CALLBACK (on_closebtn_clicked), NULL); /* Store pointers to all widgets, for use by lookup_widget(). */ GLADE_HOOKUP_OBJECT_NO_REF (trackproperties, trackproperties, "trackproperties"); GLADE_HOOKUP_OBJECT (trackproperties, notebook3, "notebook3"); GLADE_HOOKUP_OBJECT (trackproperties, vbox16, "vbox16"); GLADE_HOOKUP_OBJECT (trackproperties, scrolledwindow5, "scrolledwindow5"); GLADE_HOOKUP_OBJECT (trackproperties, metalist, "metalist"); GLADE_HOOKUP_OBJECT (trackproperties, hbuttonbox1, "hbuttonbox1"); GLADE_HOOKUP_OBJECT (trackproperties, write_tags, "write_tags"); GLADE_HOOKUP_OBJECT (trackproperties, alignment11, "alignment11"); GLADE_HOOKUP_OBJECT (trackproperties, hbox52, "hbox52"); GLADE_HOOKUP_OBJECT (trackproperties, image390, "image390"); GLADE_HOOKUP_OBJECT (trackproperties, label88, "label88"); GLADE_HOOKUP_OBJECT (trackproperties, closebtn, "closebtn"); GLADE_HOOKUP_OBJECT (trackproperties, alignment12, "alignment12"); GLADE_HOOKUP_OBJECT (trackproperties, hbox53, "hbox53"); GLADE_HOOKUP_OBJECT (trackproperties, image391, "image391"); GLADE_HOOKUP_OBJECT (trackproperties, label89, "label89"); GLADE_HOOKUP_OBJECT (trackproperties, label64, "label64"); GLADE_HOOKUP_OBJECT (trackproperties, vbox24, "vbox24"); GLADE_HOOKUP_OBJECT (trackproperties, scrolledwindow6, "scrolledwindow6"); GLADE_HOOKUP_OBJECT (trackproperties, properties, "properties"); GLADE_HOOKUP_OBJECT (trackproperties, hbuttonbox2, "hbuttonbox2"); GLADE_HOOKUP_OBJECT (trackproperties, button2, "button2"); GLADE_HOOKUP_OBJECT (trackproperties, alignment13, "alignment13"); GLADE_HOOKUP_OBJECT (trackproperties, hbox54, "hbox54"); GLADE_HOOKUP_OBJECT (trackproperties, image392, "image392"); GLADE_HOOKUP_OBJECT (trackproperties, label90, "label90"); GLADE_HOOKUP_OBJECT (trackproperties, label80, "label80"); return trackproperties; } GtkWidget* create_editcolumndlg (void) { GtkWidget *editcolumndlg; GtkWidget *dialog_vbox1; GtkWidget *vbox14; GtkWidget *hbox29; GtkWidget *label26; GtkWidget *title; GtkWidget *hbox30; GtkWidget *label37; GtkWidget *id; GtkWidget *hbox31; GtkWidget *fmtlabel; GtkWidget *format; GtkWidget *hbox32; GtkWidget *label38; GtkWidget *align; GtkWidget *label25; GtkWidget *dialog_action_area1; GtkWidget *cancelbutton1; GtkWidget *alignment9; GtkWidget *hbox50; GtkWidget *image388; GtkWidget *label86; GtkWidget *okbutton1; GtkWidget *alignment8; GtkWidget *hbox49; GtkWidget *image387; GtkWidget *label85; editcolumndlg = gtk_dialog_new (); gtk_container_set_border_width (GTK_CONTAINER (editcolumndlg), 12); gtk_window_set_title (GTK_WINDOW (editcolumndlg), _("editcolumndlg")); gtk_window_set_modal (GTK_WINDOW (editcolumndlg), TRUE); gtk_window_set_type_hint (GTK_WINDOW (editcolumndlg), GDK_WINDOW_TYPE_HINT_DIALOG); dialog_vbox1 = GTK_DIALOG (editcolumndlg)->vbox; gtk_widget_show (dialog_vbox1); vbox14 = gtk_vbox_new (FALSE, 8); gtk_widget_show (vbox14); gtk_box_pack_start (GTK_BOX (dialog_vbox1), vbox14, TRUE, TRUE, 0); hbox29 = gtk_hbox_new (FALSE, 8); gtk_widget_show (hbox29); gtk_box_pack_start (GTK_BOX (vbox14), hbox29, FALSE, FALSE, 0); label26 = gtk_label_new (_("Title:")); gtk_widget_show (label26); gtk_box_pack_start (GTK_BOX (hbox29), label26, FALSE, FALSE, 0); gtk_misc_set_alignment (GTK_MISC (label26), 0, 0.5); title = gtk_entry_new (); gtk_widget_show (title); gtk_box_pack_start (GTK_BOX (hbox29), title, TRUE, TRUE, 0); gtk_entry_set_text (GTK_ENTRY (title), _("Enter new column title here")); gtk_entry_set_invisible_char (GTK_ENTRY (title), 9679); gtk_entry_set_activates_default (GTK_ENTRY (title), TRUE); hbox30 = gtk_hbox_new (FALSE, 8); gtk_widget_show (hbox30); gtk_box_pack_start (GTK_BOX (vbox14), hbox30, FALSE, FALSE, 0); label37 = gtk_label_new (_("Type:")); gtk_widget_show (label37); gtk_box_pack_start (GTK_BOX (hbox30), label37, FALSE, FALSE, 0); gtk_misc_set_alignment (GTK_MISC (label37), 0, 0.5); id = gtk_combo_box_new_text (); gtk_widget_show (id); gtk_box_pack_start (GTK_BOX (hbox30), id, TRUE, TRUE, 0); gtk_combo_box_append_text (GTK_COMBO_BOX (id), _("Item Index")); gtk_combo_box_append_text (GTK_COMBO_BOX (id), _("Playing")); gtk_combo_box_append_text (GTK_COMBO_BOX (id), _("Album Art")); gtk_combo_box_append_text (GTK_COMBO_BOX (id), _("Artist - Album")); gtk_combo_box_append_text (GTK_COMBO_BOX (id), _("Artist")); gtk_combo_box_append_text (GTK_COMBO_BOX (id), _("Album")); gtk_combo_box_append_text (GTK_COMBO_BOX (id), _("Title")); gtk_combo_box_append_text (GTK_COMBO_BOX (id), _("Length")); gtk_combo_box_append_text (GTK_COMBO_BOX (id), _("Track")); gtk_combo_box_append_text (GTK_COMBO_BOX (id), _("Band / Album Artist")); gtk_combo_box_append_text (GTK_COMBO_BOX (id), _("Custom")); hbox31 = gtk_hbox_new (FALSE, 8); gtk_widget_show (hbox31); gtk_box_pack_start (GTK_BOX (vbox14), hbox31, FALSE, FALSE, 0); fmtlabel = gtk_label_new (_("Format:")); gtk_widget_show (fmtlabel); gtk_box_pack_start (GTK_BOX (hbox31), fmtlabel, FALSE, FALSE, 0); gtk_misc_set_alignment (GTK_MISC (fmtlabel), 0, 0.5); format = gtk_entry_new (); gtk_widget_show (format); gtk_box_pack_start (GTK_BOX (hbox31), format, TRUE, TRUE, 0); gtk_entry_set_invisible_char (GTK_ENTRY (format), 9679); gtk_entry_set_activates_default (GTK_ENTRY (format), TRUE); hbox32 = gtk_hbox_new (FALSE, 8); gtk_widget_show (hbox32); gtk_box_pack_start (GTK_BOX (vbox14), hbox32, FALSE, FALSE, 0); label38 = gtk_label_new (_("Alignment:")); gtk_widget_show (label38); gtk_box_pack_start (GTK_BOX (hbox32), label38, FALSE, FALSE, 0); gtk_misc_set_alignment (GTK_MISC (label38), 0, 0.5); align = gtk_combo_box_new_text (); gtk_widget_show (align); gtk_box_pack_start (GTK_BOX (hbox32), align, TRUE, TRUE, 0); gtk_combo_box_append_text (GTK_COMBO_BOX (align), _("Left")); gtk_combo_box_append_text (GTK_COMBO_BOX (align), _("Right")); label25 = gtk_label_new (_("Format conversions (start with %):\n [a]rtist, [t]itle, al[b]um, [B]and, [C]omposer\n track[n]umber, [N]totaltracks,\n [l]ength, [y]ear, [g]enre, [c]omment,\n copy[r]ight, [f]ilename, [F]ullPathname, [T]ags,\n [d]irectory, [D]irectoryWithPath\nExample: %a - %t [%l]")); gtk_widget_show (label25); gtk_box_pack_start (GTK_BOX (vbox14), label25, TRUE, TRUE, 0); GTK_WIDGET_SET_FLAGS (label25, GTK_CAN_FOCUS); gtk_label_set_use_markup (GTK_LABEL (label25), TRUE); gtk_label_set_selectable (GTK_LABEL (label25), TRUE); gtk_misc_set_alignment (GTK_MISC (label25), 0.1, 0.5); dialog_action_area1 = GTK_DIALOG (editcolumndlg)->action_area; gtk_widget_show (dialog_action_area1); gtk_button_box_set_layout (GTK_BUTTON_BOX (dialog_action_area1), GTK_BUTTONBOX_END); cancelbutton1 = gtk_button_new (); gtk_widget_show (cancelbutton1); gtk_dialog_add_action_widget (GTK_DIALOG (editcolumndlg), cancelbutton1, GTK_RESPONSE_CANCEL); GTK_WIDGET_SET_FLAGS (cancelbutton1, GTK_CAN_DEFAULT); alignment9 = gtk_alignment_new (0.5, 0.5, 0, 0); gtk_widget_show (alignment9); gtk_container_add (GTK_CONTAINER (cancelbutton1), alignment9); hbox50 = gtk_hbox_new (FALSE, 2); gtk_widget_show (hbox50); gtk_container_add (GTK_CONTAINER (alignment9), hbox50); image388 = gtk_image_new_from_stock ("gtk-cancel", GTK_ICON_SIZE_BUTTON); gtk_widget_show (image388); gtk_box_pack_start (GTK_BOX (hbox50), image388, FALSE, FALSE, 0); label86 = gtk_label_new_with_mnemonic (_("_Cancel")); gtk_widget_show (label86); gtk_box_pack_start (GTK_BOX (hbox50), label86, FALSE, FALSE, 0); okbutton1 = gtk_button_new (); gtk_widget_show (okbutton1); gtk_dialog_add_action_widget (GTK_DIALOG (editcolumndlg), okbutton1, GTK_RESPONSE_OK); GTK_WIDGET_SET_FLAGS (okbutton1, GTK_CAN_DEFAULT); alignment8 = gtk_alignment_new (0.5, 0.5, 0, 0); gtk_widget_show (alignment8); gtk_container_add (GTK_CONTAINER (okbutton1), alignment8); hbox49 = gtk_hbox_new (FALSE, 2); gtk_widget_show (hbox49); gtk_container_add (GTK_CONTAINER (alignment8), hbox49); image387 = gtk_image_new_from_stock ("gtk-ok", GTK_ICON_SIZE_BUTTON); gtk_widget_show (image387); gtk_box_pack_start (GTK_BOX (hbox49), image387, FALSE, FALSE, 0); label85 = gtk_label_new_with_mnemonic (_("_OK")); gtk_widget_show (label85); gtk_box_pack_start (GTK_BOX (hbox49), label85, FALSE, FALSE, 0); g_signal_connect ((gpointer) id, "changed", G_CALLBACK (on_column_id_changed), NULL); /* Store pointers to all widgets, for use by lookup_widget(). */ GLADE_HOOKUP_OBJECT_NO_REF (editcolumndlg, editcolumndlg, "editcolumndlg"); GLADE_HOOKUP_OBJECT_NO_REF (editcolumndlg, dialog_vbox1, "dialog_vbox1"); GLADE_HOOKUP_OBJECT (editcolumndlg, vbox14, "vbox14"); GLADE_HOOKUP_OBJECT (editcolumndlg, hbox29, "hbox29"); GLADE_HOOKUP_OBJECT (editcolumndlg, label26, "label26"); GLADE_HOOKUP_OBJECT (editcolumndlg, title, "title"); GLADE_HOOKUP_OBJECT (editcolumndlg, hbox30, "hbox30"); GLADE_HOOKUP_OBJECT (editcolumndlg, label37, "label37"); GLADE_HOOKUP_OBJECT (editcolumndlg, id, "id"); GLADE_HOOKUP_OBJECT (editcolumndlg, hbox31, "hbox31"); GLADE_HOOKUP_OBJECT (editcolumndlg, fmtlabel, "fmtlabel"); GLADE_HOOKUP_OBJECT (editcolumndlg, format, "format"); GLADE_HOOKUP_OBJECT (editcolumndlg, hbox32, "hbox32"); GLADE_HOOKUP_OBJECT (editcolumndlg, label38, "label38"); GLADE_HOOKUP_OBJECT (editcolumndlg, align, "align"); GLADE_HOOKUP_OBJECT (editcolumndlg, label25, "label25"); GLADE_HOOKUP_OBJECT_NO_REF (editcolumndlg, dialog_action_area1, "dialog_action_area1"); GLADE_HOOKUP_OBJECT (editcolumndlg, cancelbutton1, "cancelbutton1"); GLADE_HOOKUP_OBJECT (editcolumndlg, alignment9, "alignment9"); GLADE_HOOKUP_OBJECT (editcolumndlg, hbox50, "hbox50"); GLADE_HOOKUP_OBJECT (editcolumndlg, image388, "image388"); GLADE_HOOKUP_OBJECT (editcolumndlg, label86, "label86"); GLADE_HOOKUP_OBJECT (editcolumndlg, okbutton1, "okbutton1"); GLADE_HOOKUP_OBJECT (editcolumndlg, alignment8, "alignment8"); GLADE_HOOKUP_OBJECT (editcolumndlg, hbox49, "hbox49"); GLADE_HOOKUP_OBJECT (editcolumndlg, image387, "image387"); GLADE_HOOKUP_OBJECT (editcolumndlg, label85, "label85"); return editcolumndlg; } GtkWidget* create_prefwin (void) { GtkWidget *prefwin; GtkWidget *dialog_vbox2; GtkWidget *notebook; GtkWidget *vbox10; GtkWidget *hbox11; GtkWidget *label23; GtkWidget *pref_output_plugin; GtkWidget *hbox12; GtkWidget *label4; GtkWidget *pref_soundcard; GtkWidget *Sound; GtkWidget *vbox8; GtkWidget *pref_dynsamplerate; GtkWidget *hbox9; GtkWidget *label6; GtkWidget *pref_src_quality; GtkWidget *hbox10; GtkWidget *label8; GtkWidget *pref_replaygain_mode; GtkWidget *pref_replaygain_scale; GtkWidget *hbox66; GtkWidget *cli_add_to_playlist; GtkWidget *cli_playlist_name; GtkWidget *resume_last_session; GtkWidget *label39; GtkWidget *vbox9; GtkWidget *pref_close_send_to_tray; GtkWidget *mmb_delete_playlist; GtkWidget *hide_tray_icon; GtkWidget *embolden_current; GtkWidget *hide_delete_from_disk; GtkWidget *hbox64; GtkWidget *label101; GtkWidget *titlebar_format_playing; GtkWidget *hbox65; GtkWidget *label102; GtkWidget *titlebar_format_stopped; GtkWidget *label2; GtkWidget *notebook4; GtkWidget *vbox21; GtkWidget *override_bar_colors; GtkWidget *bar_colors_group; GtkWidget *label43; GtkWidget *label47; GtkWidget *bar_foreground; GtkWidget *bar_background; GtkWidget *label73; GtkWidget *vbox22; GtkWidget *override_tabstrip_colors; GtkWidget *tabstrip_colors_group; GtkWidget *label45; GtkWidget *label46; GtkWidget *label44; GtkWidget *tabstrip_mid; GtkWidget *tabstrip_light; GtkWidget *tabstrip_dark; GtkWidget *tabstrip_base; GtkWidget *label76; GtkWidget *label74; GtkWidget *vbox23; GtkWidget *override_listview_colors; GtkWidget *listview_colors_group; GtkWidget *label58; GtkWidget *label59; GtkWidget *listview_even_row; GtkWidget *listview_odd_row; GtkWidget *label77; GtkWidget *label78; GtkWidget *listview_selected_row; GtkWidget *listview_text; GtkWidget *label61; GtkWidget *listview_selected_text; GtkWidget *label62; GtkWidget *listview_cursor; GtkWidget *label75; GtkWidget *label100; GtkWidget *vbox11; GtkWidget *pref_network_enableproxy; GtkWidget *hbox13; GtkWidget *label18; GtkWidget *pref_network_proxyaddress; GtkWidget *hbox14; GtkWidget *label19; GtkWidget *pref_network_proxyport; GtkWidget *hbox15; GtkWidget *label20; GtkWidget *pref_network_proxytype; GtkWidget *hbox61; GtkWidget *label97; GtkWidget *proxyuser; GtkWidget *hbox62; GtkWidget *label98; GtkWidget *proxypassword; GtkWidget *label16; GtkWidget *vbox18; GtkWidget *frame5; GtkWidget *alignment3; GtkWidget *vbox19; GtkWidget *hbox38; GtkWidget *write_id3v2; GtkWidget *write_id3v1; GtkWidget *write_apev2; GtkWidget *hbox40; GtkWidget *strip_id3v2; GtkWidget *strip_id3v1; GtkWidget *strip_apev2; GtkWidget *hbox36; GtkWidget *label69; GtkWidget *id3v2_version; GtkWidget *hbox39; GtkWidget *label71; GtkWidget *id3v1_encoding; GtkWidget *label68; GtkWidget *hbox41; GtkWidget *frame6; GtkWidget *alignment4; GtkWidget *vbox20; GtkWidget *hbox37; GtkWidget *ape_write_id3v2; GtkWidget *ape_write_apev2; GtkWidget *hbox45; GtkWidget *ape_strip_id3v2; GtkWidget *ape_strip_apev2; GtkWidget *label70; GtkWidget *frame7; GtkWidget *alignment5; GtkWidget *vbox_wv; GtkWidget *hbox44; GtkWidget *wv_write_apev2; GtkWidget *wv_write_id3v1; GtkWidget *hbox43; GtkWidget *wv_strip_apev2; GtkWidget *wv_strip_id3v1; GtkWidget *label79; GtkWidget *label67; GtkWidget *hpaned1; GtkWidget *scrolledwindow2; GtkWidget *pref_pluginlist; GtkWidget *vbox12; GtkWidget *hbox16; GtkWidget *label11; GtkWidget *pref_plugin_descr; GtkWidget *hbox17; GtkWidget *label12; GtkWidget *pref_plugin_author; GtkWidget *hbox18; GtkWidget *label13; GtkWidget *pref_plugin_email; GtkWidget *hbox19; GtkWidget *label14; GtkWidget *pref_plugin_website; GtkWidget *hbox20; GtkWidget *configure_plugin; GtkWidget *alignment15; GtkWidget *hbox56; GtkWidget *image394; GtkWidget *label92; GtkWidget *label3; GtkWidget *dialog_action_area2; GtkWidget *closebutton1; GtkWidget *alignment14; GtkWidget *hbox55; GtkWidget *image393; GtkWidget *label91; prefwin = gtk_dialog_new (); gtk_widget_set_size_request (prefwin, 630, 400); gtk_container_set_border_width (GTK_CONTAINER (prefwin), 12); gtk_window_set_title (GTK_WINDOW (prefwin), _("Preferences")); gtk_window_set_default_size (GTK_WINDOW (prefwin), 630, 400); gtk_window_set_type_hint (GTK_WINDOW (prefwin), GDK_WINDOW_TYPE_HINT_DIALOG); dialog_vbox2 = GTK_DIALOG (prefwin)->vbox; gtk_widget_show (dialog_vbox2); notebook = gtk_notebook_new (); gtk_widget_show (notebook); gtk_box_pack_start (GTK_BOX (dialog_vbox2), notebook, TRUE, TRUE, 0); gtk_notebook_set_scrollable (GTK_NOTEBOOK (notebook), TRUE); vbox10 = gtk_vbox_new (FALSE, 8); gtk_widget_show (vbox10); gtk_container_add (GTK_CONTAINER (notebook), vbox10); gtk_container_set_border_width (GTK_CONTAINER (vbox10), 12); hbox11 = gtk_hbox_new (FALSE, 8); gtk_widget_show (hbox11); gtk_box_pack_start (GTK_BOX (vbox10), hbox11, FALSE, FALSE, 0); label23 = gtk_label_new (_("Output plugin:")); gtk_widget_show (label23); gtk_box_pack_start (GTK_BOX (hbox11), label23, FALSE, FALSE, 0); gtk_misc_set_alignment (GTK_MISC (label23), 0, 0.5); pref_output_plugin = gtk_combo_box_new_text (); gtk_widget_show (pref_output_plugin); gtk_box_pack_start (GTK_BOX (hbox11), pref_output_plugin, TRUE, TRUE, 0); hbox12 = gtk_hbox_new (FALSE, 8); gtk_widget_show (hbox12); gtk_box_pack_start (GTK_BOX (vbox10), hbox12, FALSE, FALSE, 0); label4 = gtk_label_new (_("Output device:")); gtk_widget_show (label4); gtk_box_pack_start (GTK_BOX (hbox12), label4, FALSE, FALSE, 0); gtk_misc_set_alignment (GTK_MISC (label4), 0, 0.5); pref_soundcard = gtk_combo_box_new_text (); gtk_widget_show (pref_soundcard); gtk_box_pack_start (GTK_BOX (hbox12), pref_soundcard, TRUE, TRUE, 0); Sound = gtk_label_new (_("Sound")); gtk_widget_show (Sound); gtk_notebook_set_tab_label (GTK_NOTEBOOK (notebook), gtk_notebook_get_nth_page (GTK_NOTEBOOK (notebook), 0), Sound); vbox8 = gtk_vbox_new (FALSE, 8); gtk_widget_show (vbox8); gtk_container_add (GTK_CONTAINER (notebook), vbox8); gtk_container_set_border_width (GTK_CONTAINER (vbox8), 12); pref_dynsamplerate = gtk_check_button_new_with_mnemonic (_("Allow dynamic samplerate switching")); gtk_widget_show (pref_dynsamplerate); gtk_box_pack_start (GTK_BOX (vbox8), pref_dynsamplerate, FALSE, FALSE, 0); hbox9 = gtk_hbox_new (FALSE, 8); gtk_widget_show (hbox9); gtk_box_pack_start (GTK_BOX (vbox8), hbox9, FALSE, FALSE, 0); label6 = gtk_label_new (_("Samplerate conversion quality:")); gtk_widget_show (label6); gtk_box_pack_start (GTK_BOX (hbox9), label6, FALSE, FALSE, 0); gtk_label_set_justify (GTK_LABEL (label6), GTK_JUSTIFY_RIGHT); gtk_misc_set_alignment (GTK_MISC (label6), 0, 0.5); pref_src_quality = gtk_combo_box_new_text (); gtk_widget_show (pref_src_quality); gtk_box_pack_start (GTK_BOX (hbox9), pref_src_quality, TRUE, TRUE, 0); gtk_combo_box_append_text (GTK_COMBO_BOX (pref_src_quality), "sinc_best_quality"); gtk_combo_box_append_text (GTK_COMBO_BOX (pref_src_quality), "sinc_medium_quality"); gtk_combo_box_append_text (GTK_COMBO_BOX (pref_src_quality), "sinc_fastest"); gtk_combo_box_append_text (GTK_COMBO_BOX (pref_src_quality), "zero_order_hold"); gtk_combo_box_append_text (GTK_COMBO_BOX (pref_src_quality), "linear"); hbox10 = gtk_hbox_new (FALSE, 8); gtk_widget_show (hbox10); gtk_box_pack_start (GTK_BOX (vbox8), hbox10, FALSE, FALSE, 0); label8 = gtk_label_new (_("Replaygain mode:")); gtk_widget_show (label8); gtk_box_pack_start (GTK_BOX (hbox10), label8, FALSE, FALSE, 0); gtk_misc_set_alignment (GTK_MISC (label8), 0, 0.5); pref_replaygain_mode = gtk_combo_box_new_text (); gtk_widget_show (pref_replaygain_mode); gtk_box_pack_start (GTK_BOX (hbox10), pref_replaygain_mode, TRUE, TRUE, 0); gtk_widget_set_size_request (pref_replaygain_mode, 337, -1); gtk_combo_box_append_text (GTK_COMBO_BOX (pref_replaygain_mode), _("Disable")); gtk_combo_box_append_text (GTK_COMBO_BOX (pref_replaygain_mode), _("Track")); gtk_combo_box_append_text (GTK_COMBO_BOX (pref_replaygain_mode), _("Album")); pref_replaygain_scale = gtk_check_button_new_with_mnemonic (_("Replaygain peak scale")); gtk_widget_show (pref_replaygain_scale); gtk_box_pack_start (GTK_BOX (vbox8), pref_replaygain_scale, FALSE, FALSE, 0); hbox66 = gtk_hbox_new (FALSE, 8); gtk_widget_show (hbox66); gtk_box_pack_start (GTK_BOX (vbox8), hbox66, FALSE, FALSE, 0); cli_add_to_playlist = gtk_check_button_new_with_mnemonic (_("Add files from command line (or file manager) to this playlist:")); gtk_widget_show (cli_add_to_playlist); gtk_box_pack_start (GTK_BOX (hbox66), cli_add_to_playlist, FALSE, FALSE, 0); cli_playlist_name = gtk_entry_new (); gtk_widget_show (cli_playlist_name); gtk_box_pack_start (GTK_BOX (hbox66), cli_playlist_name, TRUE, TRUE, 0); gtk_entry_set_invisible_char (GTK_ENTRY (cli_playlist_name), 9679); resume_last_session = gtk_check_button_new_with_mnemonic (_("Resume previous session on startup")); gtk_widget_show (resume_last_session); gtk_box_pack_start (GTK_BOX (vbox8), resume_last_session, FALSE, FALSE, 0); label39 = gtk_label_new (_("Playback")); gtk_widget_show (label39); gtk_notebook_set_tab_label (GTK_NOTEBOOK (notebook), gtk_notebook_get_nth_page (GTK_NOTEBOOK (notebook), 1), label39); vbox9 = gtk_vbox_new (FALSE, 8); gtk_widget_show (vbox9); gtk_container_add (GTK_CONTAINER (notebook), vbox9); gtk_container_set_border_width (GTK_CONTAINER (vbox9), 12); pref_close_send_to_tray = gtk_check_button_new_with_mnemonic (_("Close minimizes to tray")); gtk_widget_show (pref_close_send_to_tray); gtk_box_pack_start (GTK_BOX (vbox9), pref_close_send_to_tray, FALSE, FALSE, 0); mmb_delete_playlist = gtk_check_button_new_with_mnemonic (_("Middle mouse button closes playlist")); gtk_widget_show (mmb_delete_playlist); gtk_box_pack_start (GTK_BOX (vbox9), mmb_delete_playlist, FALSE, FALSE, 0); hide_tray_icon = gtk_check_button_new_with_mnemonic (_("Hide system tray icon")); gtk_widget_show (hide_tray_icon); gtk_box_pack_start (GTK_BOX (vbox9), hide_tray_icon, FALSE, FALSE, 0); embolden_current = gtk_check_button_new_with_mnemonic (_("Use bold font for currently playing track")); gtk_widget_show (embolden_current); gtk_box_pack_start (GTK_BOX (vbox9), embolden_current, FALSE, FALSE, 0); hide_delete_from_disk = gtk_check_button_new_with_mnemonic (_("Hide \"Delete from disk\" context menu item")); gtk_widget_show (hide_delete_from_disk); gtk_box_pack_start (GTK_BOX (vbox9), hide_delete_from_disk, FALSE, FALSE, 0); hbox64 = gtk_hbox_new (FALSE, 8); gtk_widget_show (hbox64); gtk_box_pack_start (GTK_BOX (vbox9), hbox64, FALSE, FALSE, 0); label101 = gtk_label_new (_("Titlebar text while playing:")); gtk_widget_show (label101); gtk_box_pack_start (GTK_BOX (hbox64), label101, FALSE, FALSE, 0); gtk_misc_set_alignment (GTK_MISC (label101), 0, 0.5); titlebar_format_playing = gtk_entry_new (); gtk_widget_show (titlebar_format_playing); gtk_box_pack_start (GTK_BOX (hbox64), titlebar_format_playing, TRUE, TRUE, 0); gtk_entry_set_invisible_char (GTK_ENTRY (titlebar_format_playing), 8226); hbox65 = gtk_hbox_new (FALSE, 8); gtk_widget_show (hbox65); gtk_box_pack_start (GTK_BOX (vbox9), hbox65, FALSE, FALSE, 0); label102 = gtk_label_new (_("Titlebar text while stopped:")); gtk_widget_show (label102); gtk_box_pack_start (GTK_BOX (hbox65), label102, FALSE, FALSE, 0); gtk_misc_set_alignment (GTK_MISC (label102), 0, 0.5); titlebar_format_stopped = gtk_entry_new (); gtk_widget_show (titlebar_format_stopped); gtk_box_pack_start (GTK_BOX (hbox65), titlebar_format_stopped, TRUE, TRUE, 0); gtk_entry_set_invisible_char (GTK_ENTRY (titlebar_format_stopped), 8226); label2 = gtk_label_new (_("GUI")); gtk_widget_show (label2); gtk_notebook_set_tab_label (GTK_NOTEBOOK (notebook), gtk_notebook_get_nth_page (GTK_NOTEBOOK (notebook), 2), label2); notebook4 = gtk_notebook_new (); gtk_widget_show (notebook4); gtk_container_add (GTK_CONTAINER (notebook), notebook4); gtk_container_set_border_width (GTK_CONTAINER (notebook4), 12); gtk_notebook_set_scrollable (GTK_NOTEBOOK (notebook4), TRUE); vbox21 = gtk_vbox_new (FALSE, 8); gtk_widget_show (vbox21); gtk_container_add (GTK_CONTAINER (notebook4), vbox21); gtk_container_set_border_width (GTK_CONTAINER (vbox21), 12); override_bar_colors = gtk_check_button_new_with_mnemonic (_("Override")); gtk_widget_show (override_bar_colors); gtk_box_pack_start (GTK_BOX (vbox21), override_bar_colors, FALSE, FALSE, 0); bar_colors_group = gtk_table_new (2, 2, TRUE); gtk_widget_show (bar_colors_group); gtk_box_pack_start (GTK_BOX (vbox21), bar_colors_group, TRUE, TRUE, 0); gtk_table_set_col_spacings (GTK_TABLE (bar_colors_group), 8); label43 = gtk_label_new (_("Foreground")); gtk_widget_show (label43); gtk_table_attach (GTK_TABLE (bar_colors_group), label43, 0, 1, 0, 1, (GtkAttachOptions) (GTK_EXPAND), (GtkAttachOptions) (0), 0, 0); gtk_misc_set_alignment (GTK_MISC (label43), 0, 0.5); label47 = gtk_label_new (_("Background")); gtk_widget_show (label47); gtk_table_attach (GTK_TABLE (bar_colors_group), label47, 1, 2, 0, 1, (GtkAttachOptions) (GTK_EXPAND), (GtkAttachOptions) (0), 0, 0); gtk_misc_set_alignment (GTK_MISC (label47), 0, 0.5); bar_foreground = gtk_color_button_new (); gtk_widget_show (bar_foreground); gtk_table_attach (GTK_TABLE (bar_colors_group), bar_foreground, 0, 1, 1, 2, (GtkAttachOptions) (GTK_EXPAND), (GtkAttachOptions) (0), 0, 0); bar_background = gtk_color_button_new (); gtk_widget_show (bar_background); gtk_table_attach (GTK_TABLE (bar_colors_group), bar_background, 1, 2, 1, 2, (GtkAttachOptions) (GTK_EXPAND), (GtkAttachOptions) (0), 0, 0); label73 = gtk_label_new (_("Seekbar/Volumebar colors")); gtk_widget_show (label73); gtk_notebook_set_tab_label (GTK_NOTEBOOK (notebook4), gtk_notebook_get_nth_page (GTK_NOTEBOOK (notebook4), 0), label73); vbox22 = gtk_vbox_new (FALSE, 8); gtk_widget_show (vbox22); gtk_container_add (GTK_CONTAINER (notebook4), vbox22); gtk_container_set_border_width (GTK_CONTAINER (vbox22), 12); override_tabstrip_colors = gtk_check_button_new_with_mnemonic (_("Override")); gtk_widget_show (override_tabstrip_colors); gtk_box_pack_start (GTK_BOX (vbox22), override_tabstrip_colors, FALSE, FALSE, 0); tabstrip_colors_group = gtk_table_new (2, 4, TRUE); gtk_widget_show (tabstrip_colors_group); gtk_box_pack_start (GTK_BOX (vbox22), tabstrip_colors_group, TRUE, TRUE, 0); gtk_table_set_col_spacings (GTK_TABLE (tabstrip_colors_group), 8); label45 = gtk_label_new (_("Middle")); gtk_widget_show (label45); gtk_table_attach (GTK_TABLE (tabstrip_colors_group), label45, 0, 1, 0, 1, (GtkAttachOptions) (GTK_EXPAND), (GtkAttachOptions) (0), 0, 0); gtk_misc_set_alignment (GTK_MISC (label45), 0, 0.5); label46 = gtk_label_new (_("Light")); gtk_widget_show (label46); gtk_table_attach (GTK_TABLE (tabstrip_colors_group), label46, 1, 2, 0, 1, (GtkAttachOptions) (GTK_EXPAND), (GtkAttachOptions) (0), 0, 0); gtk_misc_set_alignment (GTK_MISC (label46), 0, 0.5); label44 = gtk_label_new (_("Dark")); gtk_widget_show (label44); gtk_table_attach (GTK_TABLE (tabstrip_colors_group), label44, 2, 3, 0, 1, (GtkAttachOptions) (GTK_EXPAND), (GtkAttachOptions) (0), 0, 0); gtk_misc_set_alignment (GTK_MISC (label44), 0, 0.5); tabstrip_mid = gtk_color_button_new (); gtk_widget_show (tabstrip_mid); gtk_table_attach (GTK_TABLE (tabstrip_colors_group), tabstrip_mid, 0, 1, 1, 2, (GtkAttachOptions) (GTK_EXPAND), (GtkAttachOptions) (0), 0, 0); tabstrip_light = gtk_color_button_new (); gtk_widget_show (tabstrip_light); gtk_table_attach (GTK_TABLE (tabstrip_colors_group), tabstrip_light, 1, 2, 1, 2, (GtkAttachOptions) (GTK_EXPAND), (GtkAttachOptions) (0), 0, 0); tabstrip_dark = gtk_color_button_new (); gtk_widget_show (tabstrip_dark); gtk_table_attach (GTK_TABLE (tabstrip_colors_group), tabstrip_dark, 2, 3, 1, 2, (GtkAttachOptions) (GTK_EXPAND), (GtkAttachOptions) (0), 0, 0); tabstrip_base = gtk_color_button_new (); gtk_widget_show (tabstrip_base); gtk_table_attach (GTK_TABLE (tabstrip_colors_group), tabstrip_base, 3, 4, 1, 2, (GtkAttachOptions) (GTK_EXPAND), (GtkAttachOptions) (0), 0, 0); label76 = gtk_label_new (_("Base")); gtk_widget_show (label76); gtk_table_attach (GTK_TABLE (tabstrip_colors_group), label76, 3, 4, 0, 1, (GtkAttachOptions) (GTK_EXPAND), (GtkAttachOptions) (0), 0, 0); gtk_misc_set_alignment (GTK_MISC (label76), 0, 0.5); label74 = gtk_label_new (_("Tab strip colors")); gtk_widget_show (label74); gtk_notebook_set_tab_label (GTK_NOTEBOOK (notebook4), gtk_notebook_get_nth_page (GTK_NOTEBOOK (notebook4), 1), label74); vbox23 = gtk_vbox_new (FALSE, 8); gtk_widget_show (vbox23); gtk_container_add (GTK_CONTAINER (notebook4), vbox23); gtk_container_set_border_width (GTK_CONTAINER (vbox23), 12); override_listview_colors = gtk_check_button_new_with_mnemonic (_("Override (looses GTK treeview theming, but speeds up rendering)")); gtk_widget_show (override_listview_colors); gtk_box_pack_start (GTK_BOX (vbox23), override_listview_colors, FALSE, FALSE, 0); listview_colors_group = gtk_table_new (2, 6, TRUE); gtk_widget_show (listview_colors_group); gtk_box_pack_start (GTK_BOX (vbox23), listview_colors_group, TRUE, TRUE, 0); gtk_table_set_col_spacings (GTK_TABLE (listview_colors_group), 8); label58 = gtk_label_new (_("Even row")); gtk_widget_show (label58); gtk_table_attach (GTK_TABLE (listview_colors_group), label58, 0, 1, 0, 1, (GtkAttachOptions) (GTK_EXPAND), (GtkAttachOptions) (0), 0, 0); gtk_misc_set_alignment (GTK_MISC (label58), 0, 0.5); label59 = gtk_label_new (_("Odd row")); gtk_widget_show (label59); gtk_table_attach (GTK_TABLE (listview_colors_group), label59, 1, 2, 0, 1, (GtkAttachOptions) (GTK_EXPAND), (GtkAttachOptions) (0), 0, 0); gtk_misc_set_alignment (GTK_MISC (label59), 0, 0.5); listview_even_row = gtk_color_button_new (); gtk_widget_show (listview_even_row); gtk_table_attach (GTK_TABLE (listview_colors_group), listview_even_row, 0, 1, 1, 2, (GtkAttachOptions) (GTK_EXPAND), (GtkAttachOptions) (0), 0, 0); listview_odd_row = gtk_color_button_new (); gtk_widget_show (listview_odd_row); gtk_table_attach (GTK_TABLE (listview_colors_group), listview_odd_row, 1, 2, 1, 2, (GtkAttachOptions) (GTK_EXPAND), (GtkAttachOptions) (0), 0, 0); label77 = gtk_label_new (_("Text")); gtk_widget_show (label77); gtk_table_attach (GTK_TABLE (listview_colors_group), label77, 3, 4, 0, 1, (GtkAttachOptions) (GTK_EXPAND), (GtkAttachOptions) (0), 0, 0); gtk_misc_set_alignment (GTK_MISC (label77), 0, 0.5); label78 = gtk_label_new (_("Selected row")); gtk_widget_show (label78); gtk_table_attach (GTK_TABLE (listview_colors_group), label78, 2, 3, 0, 1, (GtkAttachOptions) (GTK_EXPAND), (GtkAttachOptions) (0), 0, 0); gtk_misc_set_alignment (GTK_MISC (label78), 0, 0.5); listview_selected_row = gtk_color_button_new (); gtk_widget_show (listview_selected_row); gtk_table_attach (GTK_TABLE (listview_colors_group), listview_selected_row, 2, 3, 1, 2, (GtkAttachOptions) (GTK_EXPAND), (GtkAttachOptions) (0), 0, 0); listview_text = gtk_color_button_new (); gtk_widget_show (listview_text); gtk_table_attach (GTK_TABLE (listview_colors_group), listview_text, 3, 4, 1, 2, (GtkAttachOptions) (GTK_EXPAND), (GtkAttachOptions) (0), 0, 0); label61 = gtk_label_new (_("Selected text")); gtk_widget_show (label61); gtk_table_attach (GTK_TABLE (listview_colors_group), label61, 4, 5, 0, 1, (GtkAttachOptions) (GTK_EXPAND), (GtkAttachOptions) (0), 0, 0); gtk_misc_set_alignment (GTK_MISC (label61), 0, 0.5); listview_selected_text = gtk_color_button_new (); gtk_widget_show (listview_selected_text); gtk_table_attach (GTK_TABLE (listview_colors_group), listview_selected_text, 4, 5, 1, 2, (GtkAttachOptions) (GTK_EXPAND), (GtkAttachOptions) (0), 0, 0); label62 = gtk_label_new (_("Cursor")); gtk_widget_show (label62); gtk_table_attach (GTK_TABLE (listview_colors_group), label62, 5, 6, 0, 1, (GtkAttachOptions) (GTK_EXPAND), (GtkAttachOptions) (0), 0, 0); gtk_misc_set_alignment (GTK_MISC (label62), 0, 0.5); listview_cursor = gtk_color_button_new (); gtk_widget_show (listview_cursor); gtk_table_attach (GTK_TABLE (listview_colors_group), listview_cursor, 5, 6, 1, 2, (GtkAttachOptions) (GTK_EXPAND), (GtkAttachOptions) (0), 0, 0); label75 = gtk_label_new (_("Playlist colors")); gtk_widget_show (label75); gtk_notebook_set_tab_label (GTK_NOTEBOOK (notebook4), gtk_notebook_get_nth_page (GTK_NOTEBOOK (notebook4), 2), label75); label100 = gtk_label_new (_("Colors")); gtk_widget_show (label100); gtk_notebook_set_tab_label (GTK_NOTEBOOK (notebook), gtk_notebook_get_nth_page (GTK_NOTEBOOK (notebook), 3), label100); vbox11 = gtk_vbox_new (FALSE, 8); gtk_widget_show (vbox11); gtk_container_add (GTK_CONTAINER (notebook), vbox11); gtk_container_set_border_width (GTK_CONTAINER (vbox11), 12); pref_network_enableproxy = gtk_check_button_new_with_mnemonic (_("Enable Proxy Server")); gtk_widget_show (pref_network_enableproxy); gtk_box_pack_start (GTK_BOX (vbox11), pref_network_enableproxy, FALSE, FALSE, 0); hbox13 = gtk_hbox_new (FALSE, 8); gtk_widget_show (hbox13); gtk_box_pack_start (GTK_BOX (vbox11), hbox13, FALSE, FALSE, 0); label18 = gtk_label_new (_("Proxy Server Address:")); gtk_widget_show (label18); gtk_box_pack_start (GTK_BOX (hbox13), label18, FALSE, FALSE, 0); gtk_misc_set_alignment (GTK_MISC (label18), 0, 0.5); pref_network_proxyaddress = gtk_entry_new (); gtk_widget_show (pref_network_proxyaddress); gtk_box_pack_start (GTK_BOX (hbox13), pref_network_proxyaddress, TRUE, TRUE, 0); gtk_entry_set_invisible_char (GTK_ENTRY (pref_network_proxyaddress), 8226); hbox14 = gtk_hbox_new (FALSE, 8); gtk_widget_show (hbox14); gtk_box_pack_start (GTK_BOX (vbox11), hbox14, FALSE, FALSE, 0); label19 = gtk_label_new (_("Proxy Server Port:")); gtk_widget_show (label19); gtk_box_pack_start (GTK_BOX (hbox14), label19, FALSE, FALSE, 0); gtk_misc_set_alignment (GTK_MISC (label19), 0, 0.5); pref_network_proxyport = gtk_entry_new (); gtk_widget_show (pref_network_proxyport); gtk_box_pack_start (GTK_BOX (hbox14), pref_network_proxyport, TRUE, TRUE, 0); gtk_entry_set_invisible_char (GTK_ENTRY (pref_network_proxyport), 8226); hbox15 = gtk_hbox_new (FALSE, 8); gtk_widget_show (hbox15); gtk_box_pack_start (GTK_BOX (vbox11), hbox15, FALSE, FALSE, 0); label20 = gtk_label_new (_("Proxy Type:")); gtk_widget_show (label20); gtk_box_pack_start (GTK_BOX (hbox15), label20, FALSE, FALSE, 0); gtk_misc_set_alignment (GTK_MISC (label20), 0, 0.5); pref_network_proxytype = gtk_combo_box_new_text (); gtk_widget_show (pref_network_proxytype); gtk_box_pack_start (GTK_BOX (hbox15), pref_network_proxytype, TRUE, TRUE, 0); gtk_combo_box_append_text (GTK_COMBO_BOX (pref_network_proxytype), "HTTP"); gtk_combo_box_append_text (GTK_COMBO_BOX (pref_network_proxytype), "HTTP_1_0"); gtk_combo_box_append_text (GTK_COMBO_BOX (pref_network_proxytype), "SOCKS4"); gtk_combo_box_append_text (GTK_COMBO_BOX (pref_network_proxytype), "SOCKS5"); gtk_combo_box_append_text (GTK_COMBO_BOX (pref_network_proxytype), "SOCKS4A"); gtk_combo_box_append_text (GTK_COMBO_BOX (pref_network_proxytype), "SOCKS5_HOSTNAME"); hbox61 = gtk_hbox_new (FALSE, 8); gtk_widget_show (hbox61); gtk_box_pack_start (GTK_BOX (vbox11), hbox61, FALSE, FALSE, 0); label97 = gtk_label_new (_("Proxy Username:")); gtk_widget_show (label97); gtk_box_pack_start (GTK_BOX (hbox61), label97, FALSE, FALSE, 0); proxyuser = gtk_entry_new (); gtk_widget_show (proxyuser); gtk_box_pack_start (GTK_BOX (hbox61), proxyuser, TRUE, TRUE, 0); gtk_entry_set_invisible_char (GTK_ENTRY (proxyuser), 9679); hbox62 = gtk_hbox_new (FALSE, 8); gtk_widget_show (hbox62); gtk_box_pack_start (GTK_BOX (vbox11), hbox62, FALSE, FALSE, 0); label98 = gtk_label_new (_("Proxy Password:")); gtk_widget_show (label98); gtk_box_pack_start (GTK_BOX (hbox62), label98, FALSE, FALSE, 0); proxypassword = gtk_entry_new (); gtk_widget_show (proxypassword); gtk_box_pack_start (GTK_BOX (hbox62), proxypassword, TRUE, TRUE, 0); gtk_entry_set_visibility (GTK_ENTRY (proxypassword), FALSE); gtk_entry_set_invisible_char (GTK_ENTRY (proxypassword), 9679); label16 = gtk_label_new (_("Network")); gtk_widget_show (label16); gtk_notebook_set_tab_label (GTK_NOTEBOOK (notebook), gtk_notebook_get_nth_page (GTK_NOTEBOOK (notebook), 4), label16); vbox18 = gtk_vbox_new (FALSE, 0); gtk_widget_show (vbox18); gtk_container_add (GTK_CONTAINER (notebook), vbox18); gtk_container_set_border_width (GTK_CONTAINER (vbox18), 12); frame5 = gtk_frame_new (NULL); gtk_widget_show (frame5); gtk_box_pack_start (GTK_BOX (vbox18), frame5, FALSE, TRUE, 0); gtk_frame_set_shadow_type (GTK_FRAME (frame5), GTK_SHADOW_NONE); alignment3 = gtk_alignment_new (0.5, 0.5, 1, 1); gtk_widget_show (alignment3); gtk_container_add (GTK_CONTAINER (frame5), alignment3); gtk_alignment_set_padding (GTK_ALIGNMENT (alignment3), 0, 0, 12, 0); vbox19 = gtk_vbox_new (FALSE, 8); gtk_widget_show (vbox19); gtk_container_add (GTK_CONTAINER (alignment3), vbox19); gtk_container_set_border_width (GTK_CONTAINER (vbox19), 12); hbox38 = gtk_hbox_new (FALSE, 8); gtk_widget_show (hbox38); gtk_box_pack_start (GTK_BOX (vbox19), hbox38, FALSE, FALSE, 0); write_id3v2 = gtk_check_button_new_with_mnemonic (_("Write ID3v2")); gtk_widget_show (write_id3v2); gtk_box_pack_start (GTK_BOX (hbox38), write_id3v2, FALSE, FALSE, 0); write_id3v1 = gtk_check_button_new_with_mnemonic (_("Write ID3v1")); gtk_widget_show (write_id3v1); gtk_box_pack_start (GTK_BOX (hbox38), write_id3v1, FALSE, FALSE, 0); write_apev2 = gtk_check_button_new_with_mnemonic (_("Write APEv2")); gtk_widget_show (write_apev2); gtk_box_pack_start (GTK_BOX (hbox38), write_apev2, FALSE, FALSE, 0); hbox40 = gtk_hbox_new (FALSE, 8); gtk_widget_show (hbox40); gtk_box_pack_start (GTK_BOX (vbox19), hbox40, FALSE, FALSE, 0); strip_id3v2 = gtk_check_button_new_with_mnemonic (_("Strip ID3v2")); gtk_widget_show (strip_id3v2); gtk_box_pack_start (GTK_BOX (hbox40), strip_id3v2, FALSE, FALSE, 0); strip_id3v1 = gtk_check_button_new_with_mnemonic (_("Strip ID3v1")); gtk_widget_show (strip_id3v1); gtk_box_pack_start (GTK_BOX (hbox40), strip_id3v1, FALSE, FALSE, 0); strip_apev2 = gtk_check_button_new_with_mnemonic (_("Strip APEv2")); gtk_widget_show (strip_apev2); gtk_box_pack_start (GTK_BOX (hbox40), strip_apev2, FALSE, FALSE, 0); hbox36 = gtk_hbox_new (FALSE, 8); gtk_widget_show (hbox36); gtk_box_pack_start (GTK_BOX (vbox19), hbox36, TRUE, TRUE, 0); label69 = gtk_label_new (_("ID3v2 version")); gtk_widget_show (label69); gtk_box_pack_start (GTK_BOX (hbox36), label69, FALSE, FALSE, 0); id3v2_version = gtk_combo_box_new_text (); gtk_widget_show (id3v2_version); gtk_box_pack_start (GTK_BOX (hbox36), id3v2_version, TRUE, TRUE, 0); gtk_combo_box_append_text (GTK_COMBO_BOX (id3v2_version), _("2.3 (Recommended)")); gtk_combo_box_append_text (GTK_COMBO_BOX (id3v2_version), _("2.4")); hbox39 = gtk_hbox_new (FALSE, 8); gtk_widget_show (hbox39); gtk_box_pack_start (GTK_BOX (vbox19), hbox39, TRUE, TRUE, 0); label71 = gtk_label_new (_("ID3v1 character encoding (default is iso8859-1)")); gtk_widget_show (label71); gtk_box_pack_start (GTK_BOX (hbox39), label71, FALSE, FALSE, 0); id3v1_encoding = gtk_entry_new (); gtk_widget_show (id3v1_encoding); gtk_box_pack_start (GTK_BOX (hbox39), id3v1_encoding, TRUE, TRUE, 0); gtk_entry_set_invisible_char (GTK_ENTRY (id3v1_encoding), 9679); label68 = gtk_label_new ("MP3"); gtk_widget_show (label68); gtk_frame_set_label_widget (GTK_FRAME (frame5), label68); gtk_label_set_use_markup (GTK_LABEL (label68), TRUE); hbox41 = gtk_hbox_new (TRUE, 0); gtk_widget_show (hbox41); gtk_box_pack_start (GTK_BOX (vbox18), hbox41, FALSE, TRUE, 0); frame6 = gtk_frame_new (NULL); gtk_widget_show (frame6); gtk_box_pack_start (GTK_BOX (hbox41), frame6, TRUE, TRUE, 0); gtk_frame_set_shadow_type (GTK_FRAME (frame6), GTK_SHADOW_NONE); alignment4 = gtk_alignment_new (0.5, 0.5, 1, 1); gtk_widget_show (alignment4); gtk_container_add (GTK_CONTAINER (frame6), alignment4); gtk_alignment_set_padding (GTK_ALIGNMENT (alignment4), 0, 0, 12, 0); vbox20 = gtk_vbox_new (FALSE, 8); gtk_widget_show (vbox20); gtk_container_add (GTK_CONTAINER (alignment4), vbox20); gtk_container_set_border_width (GTK_CONTAINER (vbox20), 12); hbox37 = gtk_hbox_new (FALSE, 8); gtk_widget_show (hbox37); gtk_box_pack_start (GTK_BOX (vbox20), hbox37, TRUE, TRUE, 0); ape_write_id3v2 = gtk_check_button_new_with_mnemonic (_("Write ID3v2.4")); gtk_widget_show (ape_write_id3v2); gtk_box_pack_start (GTK_BOX (hbox37), ape_write_id3v2, FALSE, FALSE, 0); ape_write_apev2 = gtk_check_button_new_with_mnemonic (_("Write APEv2")); gtk_widget_show (ape_write_apev2); gtk_box_pack_start (GTK_BOX (hbox37), ape_write_apev2, FALSE, FALSE, 0); hbox45 = gtk_hbox_new (FALSE, 8); gtk_widget_show (hbox45); gtk_box_pack_start (GTK_BOX (vbox20), hbox45, TRUE, TRUE, 0); ape_strip_id3v2 = gtk_check_button_new_with_mnemonic (_("Strip ID3v2")); gtk_widget_show (ape_strip_id3v2); gtk_box_pack_start (GTK_BOX (hbox45), ape_strip_id3v2, FALSE, FALSE, 0); ape_strip_apev2 = gtk_check_button_new_with_mnemonic (_("Strip APEv2")); gtk_widget_show (ape_strip_apev2); gtk_box_pack_start (GTK_BOX (hbox45), ape_strip_apev2, FALSE, FALSE, 0); label70 = gtk_label_new ("APE"); gtk_widget_show (label70); gtk_frame_set_label_widget (GTK_FRAME (frame6), label70); gtk_label_set_use_markup (GTK_LABEL (label70), TRUE); frame7 = gtk_frame_new (NULL); gtk_widget_show (frame7); gtk_box_pack_start (GTK_BOX (hbox41), frame7, TRUE, TRUE, 0); gtk_frame_set_shadow_type (GTK_FRAME (frame7), GTK_SHADOW_NONE); alignment5 = gtk_alignment_new (0.5, 0.5, 1, 1); gtk_widget_show (alignment5); gtk_container_add (GTK_CONTAINER (frame7), alignment5); gtk_alignment_set_padding (GTK_ALIGNMENT (alignment5), 0, 0, 12, 0); vbox_wv = gtk_vbox_new (FALSE, 8); gtk_widget_show (vbox_wv); gtk_container_add (GTK_CONTAINER (alignment5), vbox_wv); gtk_container_set_border_width (GTK_CONTAINER (vbox_wv), 12); hbox44 = gtk_hbox_new (FALSE, 8); gtk_widget_show (hbox44); gtk_box_pack_start (GTK_BOX (vbox_wv), hbox44, FALSE, FALSE, 0); wv_write_apev2 = gtk_check_button_new_with_mnemonic (_("Write APEv2")); gtk_widget_show (wv_write_apev2); gtk_box_pack_start (GTK_BOX (hbox44), wv_write_apev2, FALSE, FALSE, 0); wv_write_id3v1 = gtk_check_button_new_with_mnemonic (_("Write ID3v1")); gtk_widget_show (wv_write_id3v1); gtk_box_pack_start (GTK_BOX (hbox44), wv_write_id3v1, FALSE, FALSE, 0); hbox43 = gtk_hbox_new (FALSE, 8); gtk_widget_show (hbox43); gtk_box_pack_start (GTK_BOX (vbox_wv), hbox43, FALSE, FALSE, 0); wv_strip_apev2 = gtk_check_button_new_with_mnemonic (_("Strip APEv2")); gtk_widget_show (wv_strip_apev2); gtk_box_pack_start (GTK_BOX (hbox43), wv_strip_apev2, FALSE, FALSE, 0); wv_strip_id3v1 = gtk_check_button_new_with_mnemonic (_("Strip ID3v1")); gtk_widget_show (wv_strip_id3v1); gtk_box_pack_start (GTK_BOX (hbox43), wv_strip_id3v1, FALSE, FALSE, 0); label79 = gtk_label_new ("WavPack"); gtk_widget_show (label79); gtk_frame_set_label_widget (GTK_FRAME (frame7), label79); gtk_label_set_use_markup (GTK_LABEL (label79), TRUE); label67 = gtk_label_new (_("Tag writer")); gtk_widget_show (label67); gtk_notebook_set_tab_label (GTK_NOTEBOOK (notebook), gtk_notebook_get_nth_page (GTK_NOTEBOOK (notebook), 5), label67); hpaned1 = gtk_hpaned_new (); gtk_widget_show (hpaned1); gtk_container_add (GTK_CONTAINER (notebook), hpaned1); gtk_container_set_border_width (GTK_CONTAINER (hpaned1), 12); scrolledwindow2 = gtk_scrolled_window_new (NULL, NULL); gtk_widget_show (scrolledwindow2); gtk_paned_pack1 (GTK_PANED (hpaned1), scrolledwindow2, FALSE, FALSE); gtk_widget_set_size_request (scrolledwindow2, 280, -1); gtk_container_set_border_width (GTK_CONTAINER (scrolledwindow2), 3); gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolledwindow2), GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC); gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (scrolledwindow2), GTK_SHADOW_IN); pref_pluginlist = gtk_tree_view_new (); gtk_widget_show (pref_pluginlist); gtk_container_add (GTK_CONTAINER (scrolledwindow2), pref_pluginlist); gtk_tree_view_set_rules_hint (GTK_TREE_VIEW (pref_pluginlist), TRUE); vbox12 = gtk_vbox_new (FALSE, 8); gtk_widget_show (vbox12); gtk_paned_pack2 (GTK_PANED (hpaned1), vbox12, TRUE, TRUE); gtk_container_set_border_width (GTK_CONTAINER (vbox12), 12); hbox16 = gtk_hbox_new (FALSE, 8); gtk_widget_show (hbox16); gtk_box_pack_start (GTK_BOX (vbox12), hbox16, FALSE, FALSE, 0); label11 = gtk_label_new (_("Description:")); gtk_widget_show (label11); gtk_box_pack_start (GTK_BOX (hbox16), label11, FALSE, FALSE, 0); gtk_misc_set_alignment (GTK_MISC (label11), 0, 0.5); pref_plugin_descr = gtk_entry_new (); gtk_widget_show (pref_plugin_descr); gtk_box_pack_start (GTK_BOX (hbox16), pref_plugin_descr, TRUE, TRUE, 0); gtk_editable_set_editable (GTK_EDITABLE (pref_plugin_descr), FALSE); gtk_entry_set_invisible_char (GTK_ENTRY (pref_plugin_descr), 9679); hbox17 = gtk_hbox_new (FALSE, 8); gtk_widget_show (hbox17); gtk_box_pack_start (GTK_BOX (vbox12), hbox17, FALSE, FALSE, 0); label12 = gtk_label_new (_("Author(s):")); gtk_widget_show (label12); gtk_box_pack_start (GTK_BOX (hbox17), label12, FALSE, FALSE, 0); gtk_misc_set_alignment (GTK_MISC (label12), 0, 0.5); pref_plugin_author = gtk_entry_new (); gtk_widget_show (pref_plugin_author); gtk_box_pack_start (GTK_BOX (hbox17), pref_plugin_author, TRUE, TRUE, 0); gtk_editable_set_editable (GTK_EDITABLE (pref_plugin_author), FALSE); gtk_entry_set_invisible_char (GTK_ENTRY (pref_plugin_author), 9679); hbox18 = gtk_hbox_new (FALSE, 8); gtk_widget_show (hbox18); gtk_box_pack_start (GTK_BOX (vbox12), hbox18, FALSE, FALSE, 0); label13 = gtk_label_new (_("Email:")); gtk_widget_show (label13); gtk_box_pack_start (GTK_BOX (hbox18), label13, FALSE, FALSE, 0); gtk_misc_set_alignment (GTK_MISC (label13), 0, 0.5); pref_plugin_email = gtk_entry_new (); gtk_widget_show (pref_plugin_email); gtk_box_pack_start (GTK_BOX (hbox18), pref_plugin_email, TRUE, TRUE, 0); gtk_editable_set_editable (GTK_EDITABLE (pref_plugin_email), FALSE); gtk_entry_set_invisible_char (GTK_ENTRY (pref_plugin_email), 9679); hbox19 = gtk_hbox_new (FALSE, 8); gtk_widget_show (hbox19); gtk_box_pack_start (GTK_BOX (vbox12), hbox19, FALSE, FALSE, 0); label14 = gtk_label_new (_("Website:")); gtk_widget_show (label14); gtk_box_pack_start (GTK_BOX (hbox19), label14, FALSE, FALSE, 0); gtk_misc_set_alignment (GTK_MISC (label14), 0, 0.5); pref_plugin_website = gtk_entry_new (); gtk_widget_show (pref_plugin_website); gtk_box_pack_start (GTK_BOX (hbox19), pref_plugin_website, TRUE, TRUE, 0); gtk_editable_set_editable (GTK_EDITABLE (pref_plugin_website), FALSE); gtk_entry_set_invisible_char (GTK_ENTRY (pref_plugin_website), 9679); hbox20 = gtk_hbox_new (FALSE, 0); gtk_widget_show (hbox20); gtk_box_pack_start (GTK_BOX (vbox12), hbox20, FALSE, FALSE, 0); configure_plugin = gtk_button_new (); gtk_widget_show (configure_plugin); gtk_box_pack_start (GTK_BOX (hbox20), configure_plugin, TRUE, FALSE, 0); alignment15 = gtk_alignment_new (0.5, 0.5, 0, 0); gtk_widget_show (alignment15); gtk_container_add (GTK_CONTAINER (configure_plugin), alignment15); hbox56 = gtk_hbox_new (FALSE, 2); gtk_widget_show (hbox56); gtk_container_add (GTK_CONTAINER (alignment15), hbox56); image394 = gtk_image_new_from_stock ("gtk-preferences", GTK_ICON_SIZE_BUTTON); gtk_widget_show (image394); gtk_box_pack_start (GTK_BOX (hbox56), image394, FALSE, FALSE, 0); label92 = gtk_label_new_with_mnemonic (_("Configure")); gtk_widget_show (label92); gtk_box_pack_start (GTK_BOX (hbox56), label92, FALSE, FALSE, 0); label3 = gtk_label_new (_("Plugins")); gtk_widget_show (label3); gtk_notebook_set_tab_label (GTK_NOTEBOOK (notebook), gtk_notebook_get_nth_page (GTK_NOTEBOOK (notebook), 6), label3); gtk_misc_set_alignment (GTK_MISC (label3), 0.48, 0.5); dialog_action_area2 = GTK_DIALOG (prefwin)->action_area; gtk_widget_show (dialog_action_area2); gtk_button_box_set_layout (GTK_BUTTON_BOX (dialog_action_area2), GTK_BUTTONBOX_END); closebutton1 = gtk_button_new (); gtk_widget_show (closebutton1); gtk_dialog_add_action_widget (GTK_DIALOG (prefwin), closebutton1, GTK_RESPONSE_CLOSE); GTK_WIDGET_SET_FLAGS (closebutton1, GTK_CAN_DEFAULT); alignment14 = gtk_alignment_new (0.5, 0.5, 0, 0); gtk_widget_show (alignment14); gtk_container_add (GTK_CONTAINER (closebutton1), alignment14); hbox55 = gtk_hbox_new (FALSE, 2); gtk_widget_show (hbox55); gtk_container_add (GTK_CONTAINER (alignment14), hbox55); image393 = gtk_image_new_from_stock ("gtk-close", GTK_ICON_SIZE_BUTTON); gtk_widget_show (image393); gtk_box_pack_start (GTK_BOX (hbox55), image393, FALSE, FALSE, 0); label91 = gtk_label_new_with_mnemonic (_("_Close")); gtk_widget_show (label91); gtk_box_pack_start (GTK_BOX (hbox55), label91, FALSE, FALSE, 0); g_signal_connect ((gpointer) pref_dynsamplerate, "clicked", G_CALLBACK (on_pref_dynsamplerate_clicked), NULL); g_signal_connect ((gpointer) pref_src_quality, "changed", G_CALLBACK (on_pref_src_quality_changed), NULL); g_signal_connect ((gpointer) pref_replaygain_mode, "changed", G_CALLBACK (on_pref_replaygain_mode_changed), NULL); g_signal_connect ((gpointer) pref_replaygain_scale, "clicked", G_CALLBACK (on_pref_replaygain_scale_clicked), NULL); g_signal_connect ((gpointer) cli_add_to_playlist, "toggled", G_CALLBACK (on_cli_add_to_playlist_toggled), NULL); g_signal_connect ((gpointer) cli_playlist_name, "changed", G_CALLBACK (on_cli_playlist_name_changed), NULL); g_signal_connect ((gpointer) resume_last_session, "toggled", G_CALLBACK (on_resume_last_session_toggled), NULL); g_signal_connect ((gpointer) pref_close_send_to_tray, "clicked", G_CALLBACK (on_pref_close_send_to_tray_clicked), NULL); g_signal_connect ((gpointer) mmb_delete_playlist, "toggled", G_CALLBACK (on_mmb_delete_playlist_toggled), NULL); g_signal_connect ((gpointer) hide_tray_icon, "toggled", G_CALLBACK (on_hide_tray_icon_toggled), NULL); g_signal_connect ((gpointer) embolden_current, "toggled", G_CALLBACK (on_embolden_current_toggled), NULL); g_signal_connect ((gpointer) hide_delete_from_disk, "toggled", G_CALLBACK (on_hide_delete_from_disk_toggled), NULL); g_signal_connect ((gpointer) titlebar_format_playing, "changed", G_CALLBACK (on_titlebar_format_playing_changed), NULL); g_signal_connect ((gpointer) titlebar_format_stopped, "changed", G_CALLBACK (on_titlebar_format_stopped_changed), NULL); g_signal_connect ((gpointer) override_bar_colors, "toggled", G_CALLBACK (on_override_bar_colors_toggled), NULL); g_signal_connect ((gpointer) bar_foreground, "color_set", G_CALLBACK (on_bar_foreground_color_set), NULL); g_signal_connect ((gpointer) bar_background, "color_set", G_CALLBACK (on_bar_background_color_set), NULL); g_signal_connect ((gpointer) override_tabstrip_colors, "toggled", G_CALLBACK (on_override_tabstrip_colors_toggled), NULL); g_signal_connect ((gpointer) tabstrip_mid, "color_set", G_CALLBACK (on_tabstrip_mid_color_set), NULL); g_signal_connect ((gpointer) tabstrip_light, "color_set", G_CALLBACK (on_tabstrip_light_color_set), NULL); g_signal_connect ((gpointer) tabstrip_dark, "color_set", G_CALLBACK (on_tabstrip_dark_color_set), NULL); g_signal_connect ((gpointer) tabstrip_base, "color_set", G_CALLBACK (on_tabstrip_base_color_set), NULL); g_signal_connect ((gpointer) override_listview_colors, "toggled", G_CALLBACK (on_override_listview_colors_toggled), NULL); g_signal_connect ((gpointer) listview_even_row, "color_set", G_CALLBACK (on_listview_even_row_color_set), NULL); g_signal_connect ((gpointer) listview_odd_row, "color_set", G_CALLBACK (on_listview_odd_row_color_set), NULL); g_signal_connect ((gpointer) listview_selected_row, "color_set", G_CALLBACK (on_listview_selected_row_color_set), NULL); g_signal_connect ((gpointer) listview_text, "color_set", G_CALLBACK (on_listview_text_color_set), NULL); g_signal_connect ((gpointer) listview_selected_text, "color_set", G_CALLBACK (on_listview_selected_text_color_set), NULL); g_signal_connect ((gpointer) listview_cursor, "color_set", G_CALLBACK (on_listview_cursor_color_set), NULL); g_signal_connect ((gpointer) pref_network_enableproxy, "clicked", G_CALLBACK (on_pref_network_enableproxy_clicked), NULL); g_signal_connect ((gpointer) pref_network_proxyaddress, "changed", G_CALLBACK (on_pref_network_proxyaddress_changed), NULL); g_signal_connect ((gpointer) pref_network_proxyport, "changed", G_CALLBACK (on_pref_network_proxyport_changed), NULL); g_signal_connect ((gpointer) pref_network_proxytype, "changed", G_CALLBACK (on_pref_network_proxytype_changed), NULL); g_signal_connect ((gpointer) proxyuser, "changed", G_CALLBACK (on_proxyuser_changed), NULL); g_signal_connect ((gpointer) proxypassword, "changed", G_CALLBACK (on_proxypassword_changed), NULL); g_signal_connect ((gpointer) write_id3v2, "toggled", G_CALLBACK (on_write_id3v2_toggled), NULL); g_signal_connect ((gpointer) write_id3v1, "toggled", G_CALLBACK (on_write_id3v1_toggled), NULL); g_signal_connect ((gpointer) write_apev2, "toggled", G_CALLBACK (on_write_apev2_toggled), NULL); g_signal_connect ((gpointer) strip_id3v2, "toggled", G_CALLBACK (on_strip_id3v2_toggled), NULL); g_signal_connect ((gpointer) strip_id3v1, "toggled", G_CALLBACK (on_strip_id3v1_toggled), NULL); g_signal_connect ((gpointer) strip_apev2, "toggled", G_CALLBACK (on_strip_apev2_toggled), NULL); g_signal_connect ((gpointer) id3v2_version, "changed", G_CALLBACK (on_id3v2_version_changed), NULL); g_signal_connect ((gpointer) id3v1_encoding, "changed", G_CALLBACK (on_id3v1_encoding_changed), NULL); g_signal_connect ((gpointer) ape_write_id3v2, "toggled", G_CALLBACK (on_ape_write_id3v2_toggled), NULL); g_signal_connect ((gpointer) ape_write_apev2, "toggled", G_CALLBACK (on_ape_write_apev2_toggled), NULL); g_signal_connect ((gpointer) ape_strip_id3v2, "toggled", G_CALLBACK (on_ape_strip_id3v2_toggled), NULL); g_signal_connect ((gpointer) ape_strip_apev2, "toggled", G_CALLBACK (on_ape_strip_apev2_toggled), NULL); g_signal_connect ((gpointer) wv_write_apev2, "toggled", G_CALLBACK (on_wv_write_apev2_toggled), NULL); g_signal_connect ((gpointer) wv_write_id3v1, "toggled", G_CALLBACK (on_wv_write_id3v1_toggled), NULL); g_signal_connect ((gpointer) wv_strip_apev2, "toggled", G_CALLBACK (on_wv_strip_apev2_toggled), NULL); g_signal_connect ((gpointer) wv_strip_id3v1, "toggled", G_CALLBACK (on_wv_strip_id3v1_toggled), NULL); g_signal_connect ((gpointer) pref_pluginlist, "cursor_changed", G_CALLBACK (on_pref_pluginlist_cursor_changed), NULL); g_signal_connect ((gpointer) configure_plugin, "clicked", G_CALLBACK (on_configure_plugin_clicked), NULL); /* Store pointers to all widgets, for use by lookup_widget(). */ GLADE_HOOKUP_OBJECT_NO_REF (prefwin, prefwin, "prefwin"); GLADE_HOOKUP_OBJECT_NO_REF (prefwin, dialog_vbox2, "dialog_vbox2"); GLADE_HOOKUP_OBJECT (prefwin, notebook, "notebook"); GLADE_HOOKUP_OBJECT (prefwin, vbox10, "vbox10"); GLADE_HOOKUP_OBJECT (prefwin, hbox11, "hbox11"); GLADE_HOOKUP_OBJECT (prefwin, label23, "label23"); GLADE_HOOKUP_OBJECT (prefwin, pref_output_plugin, "pref_output_plugin"); GLADE_HOOKUP_OBJECT (prefwin, hbox12, "hbox12"); GLADE_HOOKUP_OBJECT (prefwin, label4, "label4"); GLADE_HOOKUP_OBJECT (prefwin, pref_soundcard, "pref_soundcard"); GLADE_HOOKUP_OBJECT (prefwin, Sound, "Sound"); GLADE_HOOKUP_OBJECT (prefwin, vbox8, "vbox8"); GLADE_HOOKUP_OBJECT (prefwin, pref_dynsamplerate, "pref_dynsamplerate"); GLADE_HOOKUP_OBJECT (prefwin, hbox9, "hbox9"); GLADE_HOOKUP_OBJECT (prefwin, label6, "label6"); GLADE_HOOKUP_OBJECT (prefwin, pref_src_quality, "pref_src_quality"); GLADE_HOOKUP_OBJECT (prefwin, hbox10, "hbox10"); GLADE_HOOKUP_OBJECT (prefwin, label8, "label8"); GLADE_HOOKUP_OBJECT (prefwin, pref_replaygain_mode, "pref_replaygain_mode"); GLADE_HOOKUP_OBJECT (prefwin, pref_replaygain_scale, "pref_replaygain_scale"); GLADE_HOOKUP_OBJECT (prefwin, hbox66, "hbox66"); GLADE_HOOKUP_OBJECT (prefwin, cli_add_to_playlist, "cli_add_to_playlist"); GLADE_HOOKUP_OBJECT (prefwin, cli_playlist_name, "cli_playlist_name"); GLADE_HOOKUP_OBJECT (prefwin, resume_last_session, "resume_last_session"); GLADE_HOOKUP_OBJECT (prefwin, label39, "label39"); GLADE_HOOKUP_OBJECT (prefwin, vbox9, "vbox9"); GLADE_HOOKUP_OBJECT (prefwin, pref_close_send_to_tray, "pref_close_send_to_tray"); GLADE_HOOKUP_OBJECT (prefwin, mmb_delete_playlist, "mmb_delete_playlist"); GLADE_HOOKUP_OBJECT (prefwin, hide_tray_icon, "hide_tray_icon"); GLADE_HOOKUP_OBJECT (prefwin, embolden_current, "embolden_current"); GLADE_HOOKUP_OBJECT (prefwin, hide_delete_from_disk, "hide_delete_from_disk"); GLADE_HOOKUP_OBJECT (prefwin, hbox64, "hbox64"); GLADE_HOOKUP_OBJECT (prefwin, label101, "label101"); GLADE_HOOKUP_OBJECT (prefwin, titlebar_format_playing, "titlebar_format_playing"); GLADE_HOOKUP_OBJECT (prefwin, hbox65, "hbox65"); GLADE_HOOKUP_OBJECT (prefwin, label102, "label102"); GLADE_HOOKUP_OBJECT (prefwin, titlebar_format_stopped, "titlebar_format_stopped"); GLADE_HOOKUP_OBJECT (prefwin, label2, "label2"); GLADE_HOOKUP_OBJECT (prefwin, notebook4, "notebook4"); GLADE_HOOKUP_OBJECT (prefwin, vbox21, "vbox21"); GLADE_HOOKUP_OBJECT (prefwin, override_bar_colors, "override_bar_colors"); GLADE_HOOKUP_OBJECT (prefwin, bar_colors_group, "bar_colors_group"); GLADE_HOOKUP_OBJECT (prefwin, label43, "label43"); GLADE_HOOKUP_OBJECT (prefwin, label47, "label47"); GLADE_HOOKUP_OBJECT (prefwin, bar_foreground, "bar_foreground"); GLADE_HOOKUP_OBJECT (prefwin, bar_background, "bar_background"); GLADE_HOOKUP_OBJECT (prefwin, label73, "label73"); GLADE_HOOKUP_OBJECT (prefwin, vbox22, "vbox22"); GLADE_HOOKUP_OBJECT (prefwin, override_tabstrip_colors, "override_tabstrip_colors"); GLADE_HOOKUP_OBJECT (prefwin, tabstrip_colors_group, "tabstrip_colors_group"); GLADE_HOOKUP_OBJECT (prefwin, label45, "label45"); GLADE_HOOKUP_OBJECT (prefwin, label46, "label46"); GLADE_HOOKUP_OBJECT (prefwin, label44, "label44"); GLADE_HOOKUP_OBJECT (prefwin, tabstrip_mid, "tabstrip_mid"); GLADE_HOOKUP_OBJECT (prefwin, tabstrip_light, "tabstrip_light"); GLADE_HOOKUP_OBJECT (prefwin, tabstrip_dark, "tabstrip_dark"); GLADE_HOOKUP_OBJECT (prefwin, tabstrip_base, "tabstrip_base"); GLADE_HOOKUP_OBJECT (prefwin, label76, "label76"); GLADE_HOOKUP_OBJECT (prefwin, label74, "label74"); GLADE_HOOKUP_OBJECT (prefwin, vbox23, "vbox23"); GLADE_HOOKUP_OBJECT (prefwin, override_listview_colors, "override_listview_colors"); GLADE_HOOKUP_OBJECT (prefwin, listview_colors_group, "listview_colors_group"); GLADE_HOOKUP_OBJECT (prefwin, label58, "label58"); GLADE_HOOKUP_OBJECT (prefwin, label59, "label59"); GLADE_HOOKUP_OBJECT (prefwin, listview_even_row, "listview_even_row"); GLADE_HOOKUP_OBJECT (prefwin, listview_odd_row, "listview_odd_row"); GLADE_HOOKUP_OBJECT (prefwin, label77, "label77"); GLADE_HOOKUP_OBJECT (prefwin, label78, "label78"); GLADE_HOOKUP_OBJECT (prefwin, listview_selected_row, "listview_selected_row"); GLADE_HOOKUP_OBJECT (prefwin, listview_text, "listview_text"); GLADE_HOOKUP_OBJECT (prefwin, label61, "label61"); GLADE_HOOKUP_OBJECT (prefwin, listview_selected_text, "listview_selected_text"); GLADE_HOOKUP_OBJECT (prefwin, label62, "label62"); GLADE_HOOKUP_OBJECT (prefwin, listview_cursor, "listview_cursor"); GLADE_HOOKUP_OBJECT (prefwin, label75, "label75"); GLADE_HOOKUP_OBJECT (prefwin, label100, "label100"); GLADE_HOOKUP_OBJECT (prefwin, vbox11, "vbox11"); GLADE_HOOKUP_OBJECT (prefwin, pref_network_enableproxy, "pref_network_enableproxy"); GLADE_HOOKUP_OBJECT (prefwin, hbox13, "hbox13"); GLADE_HOOKUP_OBJECT (prefwin, label18, "label18"); GLADE_HOOKUP_OBJECT (prefwin, pref_network_proxyaddress, "pref_network_proxyaddress"); GLADE_HOOKUP_OBJECT (prefwin, hbox14, "hbox14"); GLADE_HOOKUP_OBJECT (prefwin, label19, "label19"); GLADE_HOOKUP_OBJECT (prefwin, pref_network_proxyport, "pref_network_proxyport"); GLADE_HOOKUP_OBJECT (prefwin, hbox15, "hbox15"); GLADE_HOOKUP_OBJECT (prefwin, label20, "label20"); GLADE_HOOKUP_OBJECT (prefwin, pref_network_proxytype, "pref_network_proxytype"); GLADE_HOOKUP_OBJECT (prefwin, hbox61, "hbox61"); GLADE_HOOKUP_OBJECT (prefwin, label97, "label97"); GLADE_HOOKUP_OBJECT (prefwin, proxyuser, "proxyuser"); GLADE_HOOKUP_OBJECT (prefwin, hbox62, "hbox62"); GLADE_HOOKUP_OBJECT (prefwin, label98, "label98"); GLADE_HOOKUP_OBJECT (prefwin, proxypassword, "proxypassword"); GLADE_HOOKUP_OBJECT (prefwin, label16, "label16"); GLADE_HOOKUP_OBJECT (prefwin, vbox18, "vbox18"); GLADE_HOOKUP_OBJECT (prefwin, frame5, "frame5"); GLADE_HOOKUP_OBJECT (prefwin, alignment3, "alignment3"); GLADE_HOOKUP_OBJECT (prefwin, vbox19, "vbox19"); GLADE_HOOKUP_OBJECT (prefwin, hbox38, "hbox38"); GLADE_HOOKUP_OBJECT (prefwin, write_id3v2, "write_id3v2"); GLADE_HOOKUP_OBJECT (prefwin, write_id3v1, "write_id3v1"); GLADE_HOOKUP_OBJECT (prefwin, write_apev2, "write_apev2"); GLADE_HOOKUP_OBJECT (prefwin, hbox40, "hbox40"); GLADE_HOOKUP_OBJECT (prefwin, strip_id3v2, "strip_id3v2"); GLADE_HOOKUP_OBJECT (prefwin, strip_id3v1, "strip_id3v1"); GLADE_HOOKUP_OBJECT (prefwin, strip_apev2, "strip_apev2"); GLADE_HOOKUP_OBJECT (prefwin, hbox36, "hbox36"); GLADE_HOOKUP_OBJECT (prefwin, label69, "label69"); GLADE_HOOKUP_OBJECT (prefwin, id3v2_version, "id3v2_version"); GLADE_HOOKUP_OBJECT (prefwin, hbox39, "hbox39"); GLADE_HOOKUP_OBJECT (prefwin, label71, "label71"); GLADE_HOOKUP_OBJECT (prefwin, id3v1_encoding, "id3v1_encoding"); GLADE_HOOKUP_OBJECT (prefwin, label68, "label68"); GLADE_HOOKUP_OBJECT (prefwin, hbox41, "hbox41"); GLADE_HOOKUP_OBJECT (prefwin, frame6, "frame6"); GLADE_HOOKUP_OBJECT (prefwin, alignment4, "alignment4"); GLADE_HOOKUP_OBJECT (prefwin, vbox20, "vbox20"); GLADE_HOOKUP_OBJECT (prefwin, hbox37, "hbox37"); GLADE_HOOKUP_OBJECT (prefwin, ape_write_id3v2, "ape_write_id3v2"); GLADE_HOOKUP_OBJECT (prefwin, ape_write_apev2, "ape_write_apev2"); GLADE_HOOKUP_OBJECT (prefwin, hbox45, "hbox45"); GLADE_HOOKUP_OBJECT (prefwin, ape_strip_id3v2, "ape_strip_id3v2"); GLADE_HOOKUP_OBJECT (prefwin, ape_strip_apev2, "ape_strip_apev2"); GLADE_HOOKUP_OBJECT (prefwin, label70, "label70"); GLADE_HOOKUP_OBJECT (prefwin, frame7, "frame7"); GLADE_HOOKUP_OBJECT (prefwin, alignment5, "alignment5"); GLADE_HOOKUP_OBJECT (prefwin, vbox_wv, "vbox_wv"); GLADE_HOOKUP_OBJECT (prefwin, hbox44, "hbox44"); GLADE_HOOKUP_OBJECT (prefwin, wv_write_apev2, "wv_write_apev2"); GLADE_HOOKUP_OBJECT (prefwin, wv_write_id3v1, "wv_write_id3v1"); GLADE_HOOKUP_OBJECT (prefwin, hbox43, "hbox43"); GLADE_HOOKUP_OBJECT (prefwin, wv_strip_apev2, "wv_strip_apev2"); GLADE_HOOKUP_OBJECT (prefwin, wv_strip_id3v1, "wv_strip_id3v1"); GLADE_HOOKUP_OBJECT (prefwin, label79, "label79"); GLADE_HOOKUP_OBJECT (prefwin, label67, "label67"); GLADE_HOOKUP_OBJECT (prefwin, hpaned1, "hpaned1"); GLADE_HOOKUP_OBJECT (prefwin, scrolledwindow2, "scrolledwindow2"); GLADE_HOOKUP_OBJECT (prefwin, pref_pluginlist, "pref_pluginlist"); GLADE_HOOKUP_OBJECT (prefwin, vbox12, "vbox12"); GLADE_HOOKUP_OBJECT (prefwin, hbox16, "hbox16"); GLADE_HOOKUP_OBJECT (prefwin, label11, "label11"); GLADE_HOOKUP_OBJECT (prefwin, pref_plugin_descr, "pref_plugin_descr"); GLADE_HOOKUP_OBJECT (prefwin, hbox17, "hbox17"); GLADE_HOOKUP_OBJECT (prefwin, label12, "label12"); GLADE_HOOKUP_OBJECT (prefwin, pref_plugin_author, "pref_plugin_author"); GLADE_HOOKUP_OBJECT (prefwin, hbox18, "hbox18"); GLADE_HOOKUP_OBJECT (prefwin, label13, "label13"); GLADE_HOOKUP_OBJECT (prefwin, pref_plugin_email, "pref_plugin_email"); GLADE_HOOKUP_OBJECT (prefwin, hbox19, "hbox19"); GLADE_HOOKUP_OBJECT (prefwin, label14, "label14"); GLADE_HOOKUP_OBJECT (prefwin, pref_plugin_website, "pref_plugin_website"); GLADE_HOOKUP_OBJECT (prefwin, hbox20, "hbox20"); GLADE_HOOKUP_OBJECT (prefwin, configure_plugin, "configure_plugin"); GLADE_HOOKUP_OBJECT (prefwin, alignment15, "alignment15"); GLADE_HOOKUP_OBJECT (prefwin, hbox56, "hbox56"); GLADE_HOOKUP_OBJECT (prefwin, image394, "image394"); GLADE_HOOKUP_OBJECT (prefwin, label92, "label92"); GLADE_HOOKUP_OBJECT (prefwin, label3, "label3"); GLADE_HOOKUP_OBJECT_NO_REF (prefwin, dialog_action_area2, "dialog_action_area2"); GLADE_HOOKUP_OBJECT (prefwin, closebutton1, "closebutton1"); GLADE_HOOKUP_OBJECT (prefwin, alignment14, "alignment14"); GLADE_HOOKUP_OBJECT (prefwin, hbox55, "hbox55"); GLADE_HOOKUP_OBJECT (prefwin, image393, "image393"); GLADE_HOOKUP_OBJECT (prefwin, label91, "label91"); return prefwin; } GtkWidget* create_editplaylistdlg (void) { GtkWidget *editplaylistdlg; GtkWidget *dialog_vbox3; GtkWidget *vbox15; GtkWidget *hbox33; GtkWidget *label40; GtkWidget *title; GtkWidget *dialog_action_area3; GtkWidget *cancelbutton2; GtkWidget *alignment17; GtkWidget *hbox58; GtkWidget *image396; GtkWidget *label94; GtkWidget *okbutton2; GtkWidget *alignment16; GtkWidget *hbox57; GtkWidget *image395; GtkWidget *label93; editplaylistdlg = gtk_dialog_new (); gtk_container_set_border_width (GTK_CONTAINER (editplaylistdlg), 8); gtk_window_set_title (GTK_WINDOW (editplaylistdlg), _("editplaylistdlg")); gtk_window_set_destroy_with_parent (GTK_WINDOW (editplaylistdlg), TRUE); gtk_window_set_type_hint (GTK_WINDOW (editplaylistdlg), GDK_WINDOW_TYPE_HINT_DIALOG); dialog_vbox3 = GTK_DIALOG (editplaylistdlg)->vbox; gtk_widget_show (dialog_vbox3); vbox15 = gtk_vbox_new (FALSE, 0); gtk_widget_show (vbox15); gtk_box_pack_start (GTK_BOX (dialog_vbox3), vbox15, TRUE, TRUE, 0); gtk_container_set_border_width (GTK_CONTAINER (vbox15), 4); hbox33 = gtk_hbox_new (FALSE, 8); gtk_widget_show (hbox33); gtk_box_pack_start (GTK_BOX (vbox15), hbox33, TRUE, TRUE, 0); label40 = gtk_label_new (_("Title:")); gtk_widget_show (label40); gtk_box_pack_start (GTK_BOX (hbox33), label40, FALSE, FALSE, 0); title = gtk_entry_new (); gtk_widget_show (title); gtk_box_pack_start (GTK_BOX (hbox33), title, TRUE, TRUE, 0); gtk_entry_set_invisible_char (GTK_ENTRY (title), 8226); gtk_entry_set_activates_default (GTK_ENTRY (title), TRUE); dialog_action_area3 = GTK_DIALOG (editplaylistdlg)->action_area; gtk_widget_show (dialog_action_area3); gtk_button_box_set_layout (GTK_BUTTON_BOX (dialog_action_area3), GTK_BUTTONBOX_END); cancelbutton2 = gtk_button_new (); gtk_widget_show (cancelbutton2); gtk_dialog_add_action_widget (GTK_DIALOG (editplaylistdlg), cancelbutton2, GTK_RESPONSE_CANCEL); GTK_WIDGET_SET_FLAGS (cancelbutton2, GTK_CAN_DEFAULT); alignment17 = gtk_alignment_new (0.5, 0.5, 0, 0); gtk_widget_show (alignment17); gtk_container_add (GTK_CONTAINER (cancelbutton2), alignment17); hbox58 = gtk_hbox_new (FALSE, 2); gtk_widget_show (hbox58); gtk_container_add (GTK_CONTAINER (alignment17), hbox58); image396 = gtk_image_new_from_stock ("gtk-cancel", GTK_ICON_SIZE_BUTTON); gtk_widget_show (image396); gtk_box_pack_start (GTK_BOX (hbox58), image396, FALSE, FALSE, 0); label94 = gtk_label_new_with_mnemonic (_("_Cancel")); gtk_widget_show (label94); gtk_box_pack_start (GTK_BOX (hbox58), label94, FALSE, FALSE, 0); okbutton2 = gtk_button_new (); gtk_widget_show (okbutton2); gtk_dialog_add_action_widget (GTK_DIALOG (editplaylistdlg), okbutton2, GTK_RESPONSE_OK); GTK_WIDGET_SET_FLAGS (okbutton2, GTK_CAN_DEFAULT); alignment16 = gtk_alignment_new (0.5, 0.5, 0, 0); gtk_widget_show (alignment16); gtk_container_add (GTK_CONTAINER (okbutton2), alignment16); hbox57 = gtk_hbox_new (FALSE, 2); gtk_widget_show (hbox57); gtk_container_add (GTK_CONTAINER (alignment16), hbox57); image395 = gtk_image_new_from_stock ("gtk-ok", GTK_ICON_SIZE_BUTTON); gtk_widget_show (image395); gtk_box_pack_start (GTK_BOX (hbox57), image395, FALSE, FALSE, 0); label93 = gtk_label_new_with_mnemonic (_("_OK")); gtk_widget_show (label93); gtk_box_pack_start (GTK_BOX (hbox57), label93, FALSE, FALSE, 0); /* Store pointers to all widgets, for use by lookup_widget(). */ GLADE_HOOKUP_OBJECT_NO_REF (editplaylistdlg, editplaylistdlg, "editplaylistdlg"); GLADE_HOOKUP_OBJECT_NO_REF (editplaylistdlg, dialog_vbox3, "dialog_vbox3"); GLADE_HOOKUP_OBJECT (editplaylistdlg, vbox15, "vbox15"); GLADE_HOOKUP_OBJECT (editplaylistdlg, hbox33, "hbox33"); GLADE_HOOKUP_OBJECT (editplaylistdlg, label40, "label40"); GLADE_HOOKUP_OBJECT (editplaylistdlg, title, "title"); GLADE_HOOKUP_OBJECT_NO_REF (editplaylistdlg, dialog_action_area3, "dialog_action_area3"); GLADE_HOOKUP_OBJECT (editplaylistdlg, cancelbutton2, "cancelbutton2"); GLADE_HOOKUP_OBJECT (editplaylistdlg, alignment17, "alignment17"); GLADE_HOOKUP_OBJECT (editplaylistdlg, hbox58, "hbox58"); GLADE_HOOKUP_OBJECT (editplaylistdlg, image396, "image396"); GLADE_HOOKUP_OBJECT (editplaylistdlg, label94, "label94"); GLADE_HOOKUP_OBJECT (editplaylistdlg, okbutton2, "okbutton2"); GLADE_HOOKUP_OBJECT (editplaylistdlg, alignment16, "alignment16"); GLADE_HOOKUP_OBJECT (editplaylistdlg, hbox57, "hbox57"); GLADE_HOOKUP_OBJECT (editplaylistdlg, image395, "image395"); GLADE_HOOKUP_OBJECT (editplaylistdlg, label93, "label93"); return editplaylistdlg; } GtkWidget* create_addlocationdlg (void) { GtkWidget *addlocationdlg; GtkWidget *dialog_vbox4; GtkWidget *hbox34; GtkWidget *label41; GtkWidget *addlocation_entry; GtkWidget *addlocation_actionarea; GtkWidget *cancelbutton3; GtkWidget *alignment18; GtkWidget *hbox59; GtkWidget *image397; GtkWidget *label95; GtkWidget *okbutton3; GtkWidget *alignment19; GtkWidget *hbox60; GtkWidget *image398; GtkWidget *label96; addlocationdlg = gtk_dialog_new (); gtk_container_set_border_width (GTK_CONTAINER (addlocationdlg), 8); gtk_window_set_title (GTK_WINDOW (addlocationdlg), _("Add location")); gtk_window_set_type_hint (GTK_WINDOW (addlocationdlg), GDK_WINDOW_TYPE_HINT_DIALOG); dialog_vbox4 = GTK_DIALOG (addlocationdlg)->vbox; gtk_widget_show (dialog_vbox4); hbox34 = gtk_hbox_new (FALSE, 8); gtk_widget_show (hbox34); gtk_box_pack_start (GTK_BOX (dialog_vbox4), hbox34, TRUE, TRUE, 0); gtk_container_set_border_width (GTK_CONTAINER (hbox34), 4); label41 = gtk_label_new (_("URL:")); gtk_widget_show (label41); gtk_box_pack_start (GTK_BOX (hbox34), label41, FALSE, FALSE, 0); addlocation_entry = gtk_entry_new (); gtk_widget_show (addlocation_entry); gtk_box_pack_start (GTK_BOX (hbox34), addlocation_entry, TRUE, TRUE, 0); gtk_widget_set_size_request (addlocation_entry, 297, -1); gtk_entry_set_invisible_char (GTK_ENTRY (addlocation_entry), 8226); gtk_entry_set_activates_default (GTK_ENTRY (addlocation_entry), TRUE); addlocation_actionarea = GTK_DIALOG (addlocationdlg)->action_area; gtk_widget_show (addlocation_actionarea); gtk_button_box_set_layout (GTK_BUTTON_BOX (addlocation_actionarea), GTK_BUTTONBOX_END); cancelbutton3 = gtk_button_new (); gtk_widget_show (cancelbutton3); gtk_dialog_add_action_widget (GTK_DIALOG (addlocationdlg), cancelbutton3, GTK_RESPONSE_CANCEL); GTK_WIDGET_SET_FLAGS (cancelbutton3, GTK_CAN_DEFAULT); alignment18 = gtk_alignment_new (0.5, 0.5, 0, 0); gtk_widget_show (alignment18); gtk_container_add (GTK_CONTAINER (cancelbutton3), alignment18); hbox59 = gtk_hbox_new (FALSE, 2); gtk_widget_show (hbox59); gtk_container_add (GTK_CONTAINER (alignment18), hbox59); image397 = gtk_image_new_from_stock ("gtk-cancel", GTK_ICON_SIZE_BUTTON); gtk_widget_show (image397); gtk_box_pack_start (GTK_BOX (hbox59), image397, FALSE, FALSE, 0); label95 = gtk_label_new_with_mnemonic (_("_Cancel")); gtk_widget_show (label95); gtk_box_pack_start (GTK_BOX (hbox59), label95, FALSE, FALSE, 0); okbutton3 = gtk_button_new (); gtk_widget_show (okbutton3); gtk_dialog_add_action_widget (GTK_DIALOG (addlocationdlg), okbutton3, GTK_RESPONSE_OK); GTK_WIDGET_SET_FLAGS (okbutton3, GTK_CAN_DEFAULT); alignment19 = gtk_alignment_new (0.5, 0.5, 0, 0); gtk_widget_show (alignment19); gtk_container_add (GTK_CONTAINER (okbutton3), alignment19); hbox60 = gtk_hbox_new (FALSE, 2); gtk_widget_show (hbox60); gtk_container_add (GTK_CONTAINER (alignment19), hbox60); image398 = gtk_image_new_from_stock ("gtk-ok", GTK_ICON_SIZE_BUTTON); gtk_widget_show (image398); gtk_box_pack_start (GTK_BOX (hbox60), image398, FALSE, FALSE, 0); label96 = gtk_label_new_with_mnemonic (_("_OK")); gtk_widget_show (label96); gtk_box_pack_start (GTK_BOX (hbox60), label96, FALSE, FALSE, 0); /* Store pointers to all widgets, for use by lookup_widget(). */ GLADE_HOOKUP_OBJECT_NO_REF (addlocationdlg, addlocationdlg, "addlocationdlg"); GLADE_HOOKUP_OBJECT_NO_REF (addlocationdlg, dialog_vbox4, "dialog_vbox4"); GLADE_HOOKUP_OBJECT (addlocationdlg, hbox34, "hbox34"); GLADE_HOOKUP_OBJECT (addlocationdlg, label41, "label41"); GLADE_HOOKUP_OBJECT (addlocationdlg, addlocation_entry, "addlocation_entry"); GLADE_HOOKUP_OBJECT_NO_REF (addlocationdlg, addlocation_actionarea, "addlocation_actionarea"); GLADE_HOOKUP_OBJECT (addlocationdlg, cancelbutton3, "cancelbutton3"); GLADE_HOOKUP_OBJECT (addlocationdlg, alignment18, "alignment18"); GLADE_HOOKUP_OBJECT (addlocationdlg, hbox59, "hbox59"); GLADE_HOOKUP_OBJECT (addlocationdlg, image397, "image397"); GLADE_HOOKUP_OBJECT (addlocationdlg, label95, "label95"); GLADE_HOOKUP_OBJECT (addlocationdlg, okbutton3, "okbutton3"); GLADE_HOOKUP_OBJECT (addlocationdlg, alignment19, "alignment19"); GLADE_HOOKUP_OBJECT (addlocationdlg, hbox60, "hbox60"); GLADE_HOOKUP_OBJECT (addlocationdlg, image398, "image398"); GLADE_HOOKUP_OBJECT (addlocationdlg, label96, "label96"); return addlocationdlg; } GtkWidget* create_groupbydlg (void) { GtkWidget *groupbydlg; GtkWidget *dialog_vbox5; GtkWidget *vbox25; GtkWidget *hbox46; GtkWidget *label81; GtkWidget *format; GtkWidget *label82; GtkWidget *dialog_action_area4; GtkWidget *cancelbutton4; GtkWidget *alignment7; GtkWidget *hbox48; GtkWidget *image386; GtkWidget *label84; GtkWidget *okbutton4; GtkWidget *alignment6; GtkWidget *hbox47; GtkWidget *image385; GtkWidget *label83; groupbydlg = gtk_dialog_new (); gtk_window_set_title (GTK_WINDOW (groupbydlg), _("Group By")); gtk_window_set_type_hint (GTK_WINDOW (groupbydlg), GDK_WINDOW_TYPE_HINT_DIALOG); dialog_vbox5 = GTK_DIALOG (groupbydlg)->vbox; gtk_widget_show (dialog_vbox5); vbox25 = gtk_vbox_new (FALSE, 8); gtk_widget_show (vbox25); gtk_box_pack_start (GTK_BOX (dialog_vbox5), vbox25, TRUE, TRUE, 0); gtk_container_set_border_width (GTK_CONTAINER (vbox25), 12); hbox46 = gtk_hbox_new (FALSE, 8); gtk_widget_show (hbox46); gtk_box_pack_start (GTK_BOX (vbox25), hbox46, FALSE, FALSE, 0); label81 = gtk_label_new (_("Format:")); gtk_widget_show (label81); gtk_box_pack_start (GTK_BOX (hbox46), label81, FALSE, FALSE, 0); format = gtk_entry_new (); gtk_widget_show (format); gtk_box_pack_start (GTK_BOX (hbox46), format, TRUE, TRUE, 0); gtk_entry_set_invisible_char (GTK_ENTRY (format), 9679); gtk_entry_set_activates_default (GTK_ENTRY (format), TRUE); label82 = gtk_label_new (_("Format conversions (start with %):\n [a]rtist, [t]itle, al[b]um, [B]and, [C]omposer\n track[n]umber, [N]totaltracks,\n [l]ength, [y]ear, [g]enre, [c]omment,\n copy[r]ight, [f]ilename, [T]ags\nExample: %a - %t [%l]")); gtk_widget_show (label82); gtk_box_pack_start (GTK_BOX (vbox25), label82, FALSE, FALSE, 0); GTK_WIDGET_SET_FLAGS (label82, GTK_CAN_FOCUS); gtk_label_set_use_markup (GTK_LABEL (label82), TRUE); gtk_label_set_selectable (GTK_LABEL (label82), TRUE); gtk_misc_set_alignment (GTK_MISC (label82), 0.1, 0.5); dialog_action_area4 = GTK_DIALOG (groupbydlg)->action_area; gtk_widget_show (dialog_action_area4); gtk_button_box_set_layout (GTK_BUTTON_BOX (dialog_action_area4), GTK_BUTTONBOX_END); cancelbutton4 = gtk_button_new (); gtk_widget_show (cancelbutton4); gtk_dialog_add_action_widget (GTK_DIALOG (groupbydlg), cancelbutton4, GTK_RESPONSE_CANCEL); GTK_WIDGET_SET_FLAGS (cancelbutton4, GTK_CAN_DEFAULT); alignment7 = gtk_alignment_new (0.5, 0.5, 0, 0); gtk_widget_show (alignment7); gtk_container_add (GTK_CONTAINER (cancelbutton4), alignment7); hbox48 = gtk_hbox_new (FALSE, 2); gtk_widget_show (hbox48); gtk_container_add (GTK_CONTAINER (alignment7), hbox48); image386 = gtk_image_new_from_stock ("gtk-cancel", GTK_ICON_SIZE_BUTTON); gtk_widget_show (image386); gtk_box_pack_start (GTK_BOX (hbox48), image386, FALSE, FALSE, 0); label84 = gtk_label_new_with_mnemonic (_("_Cancel")); gtk_widget_show (label84); gtk_box_pack_start (GTK_BOX (hbox48), label84, FALSE, FALSE, 0); okbutton4 = gtk_button_new (); gtk_widget_show (okbutton4); gtk_dialog_add_action_widget (GTK_DIALOG (groupbydlg), okbutton4, GTK_RESPONSE_OK); GTK_WIDGET_SET_FLAGS (okbutton4, GTK_CAN_DEFAULT); alignment6 = gtk_alignment_new (0.5, 0.5, 0, 0); gtk_widget_show (alignment6); gtk_container_add (GTK_CONTAINER (okbutton4), alignment6); hbox47 = gtk_hbox_new (FALSE, 2); gtk_widget_show (hbox47); gtk_container_add (GTK_CONTAINER (alignment6), hbox47); image385 = gtk_image_new_from_stock ("gtk-ok", GTK_ICON_SIZE_BUTTON); gtk_widget_show (image385); gtk_box_pack_start (GTK_BOX (hbox47), image385, FALSE, FALSE, 0); label83 = gtk_label_new_with_mnemonic (_("_OK")); gtk_widget_show (label83); gtk_box_pack_start (GTK_BOX (hbox47), label83, FALSE, FALSE, 0); /* Store pointers to all widgets, for use by lookup_widget(). */ GLADE_HOOKUP_OBJECT_NO_REF (groupbydlg, groupbydlg, "groupbydlg"); GLADE_HOOKUP_OBJECT_NO_REF (groupbydlg, dialog_vbox5, "dialog_vbox5"); GLADE_HOOKUP_OBJECT (groupbydlg, vbox25, "vbox25"); GLADE_HOOKUP_OBJECT (groupbydlg, hbox46, "hbox46"); GLADE_HOOKUP_OBJECT (groupbydlg, label81, "label81"); GLADE_HOOKUP_OBJECT (groupbydlg, format, "format"); GLADE_HOOKUP_OBJECT (groupbydlg, label82, "label82"); GLADE_HOOKUP_OBJECT_NO_REF (groupbydlg, dialog_action_area4, "dialog_action_area4"); GLADE_HOOKUP_OBJECT (groupbydlg, cancelbutton4, "cancelbutton4"); GLADE_HOOKUP_OBJECT (groupbydlg, alignment7, "alignment7"); GLADE_HOOKUP_OBJECT (groupbydlg, hbox48, "hbox48"); GLADE_HOOKUP_OBJECT (groupbydlg, image386, "image386"); GLADE_HOOKUP_OBJECT (groupbydlg, label84, "label84"); GLADE_HOOKUP_OBJECT (groupbydlg, okbutton4, "okbutton4"); GLADE_HOOKUP_OBJECT (groupbydlg, alignment6, "alignment6"); GLADE_HOOKUP_OBJECT (groupbydlg, hbox47, "hbox47"); GLADE_HOOKUP_OBJECT (groupbydlg, image385, "image385"); GLADE_HOOKUP_OBJECT (groupbydlg, label83, "label83"); return groupbydlg; }