/* * 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 *image512; GtkWidget *separator2; GtkWidget *add_files; GtkWidget *image513; GtkWidget *add_folders; GtkWidget *image514; GtkWidget *add_location1; GtkWidget *separatormenuitem1; GtkWidget *new_playlist1; GtkWidget *playlist_load; GtkWidget *playlist_save; GtkWidget *playlist_save_as; GtkWidget *separator8; GtkWidget *quit; GtkWidget *image515; GtkWidget *Edit; GtkWidget *Edit_menu; GtkWidget *clear1; GtkWidget *image516; GtkWidget *select_all1; GtkWidget *deselect_all1; GtkWidget *invert_selection1; GtkWidget *Selection; GtkWidget *Selection_menu; GtkWidget *remove1; GtkWidget *image517; GtkWidget *crop1; GtkWidget *find1; GtkWidget *sort_by1; GtkWidget *sort_by1_menu; GtkWidget *album1; GtkWidget *artist1; GtkWidget *date1; GtkWidget *custom2; 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_shuffle_albums; 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 *image518; GtkWidget *changelog1; GtkWidget *separator10; GtkWidget *gpl1; GtkWidget *lgpl1; GtkWidget *separator9; GtkWidget *about1; GtkWidget *image519; GtkWidget *translators1; GtkWidget *image520; 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); image512 = gtk_image_new_from_stock ("gtk-open", GTK_ICON_SIZE_MENU); gtk_widget_show (image512); gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (open), image512); 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); image513 = gtk_image_new_from_stock ("gtk-add", GTK_ICON_SIZE_MENU); gtk_widget_show (image513); gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (add_files), image513); 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); image514 = gtk_image_new_from_stock ("gtk-add", GTK_ICON_SIZE_MENU); gtk_widget_show (image514); gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (add_folders), image514); 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); image515 = gtk_image_new_from_stock ("gtk-quit", GTK_ICON_SIZE_MENU); gtk_widget_show (image515); gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (quit), image515); 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); image516 = gtk_image_new_from_stock ("gtk-clear", GTK_ICON_SIZE_MENU); gtk_widget_show (image516); gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (clear1), image516); 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); image517 = gtk_image_new_from_stock ("gtk-remove", GTK_ICON_SIZE_MENU); gtk_widget_show (image517); gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (remove1), image517); 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); sort_by1 = gtk_menu_item_new_with_mnemonic (_("Sort By")); gtk_widget_show (sort_by1); gtk_container_add (GTK_CONTAINER (Edit_menu), sort_by1); sort_by1_menu = gtk_menu_new (); gtk_menu_item_set_submenu (GTK_MENU_ITEM (sort_by1), sort_by1_menu); album1 = gtk_menu_item_new_with_mnemonic (_("Album")); gtk_widget_show (album1); gtk_container_add (GTK_CONTAINER (sort_by1_menu), album1); artist1 = gtk_menu_item_new_with_mnemonic (_("Artist")); gtk_widget_show (artist1); gtk_container_add (GTK_CONTAINER (sort_by1_menu), artist1); date1 = gtk_menu_item_new_with_mnemonic (_("Date")); gtk_widget_show (date1); gtk_container_add (GTK_CONTAINER (sort_by1_menu), date1); custom2 = gtk_menu_item_new_with_mnemonic (_("Custom")); gtk_widget_show (custom2); gtk_container_add (GTK_CONTAINER (sort_by1_menu), custom2); 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 tracks")); 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_shuffle_albums = gtk_radio_menu_item_new_with_mnemonic (order_linear_group, _("Shuffle albums")); order_linear_group = gtk_radio_menu_item_get_group (GTK_RADIO_MENU_ITEM (order_shuffle_albums)); gtk_widget_show (order_shuffle_albums); gtk_container_add (GTK_CONTAINER (Order_menu), order_shuffle_albums); gtk_check_menu_item_set_active (GTK_CHECK_MENU_ITEM (order_shuffle_albums), 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); image518 = gtk_image_new_from_stock ("gtk-help", GTK_ICON_SIZE_MENU); gtk_widget_show (image518); gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (help1), image518); 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); image519 = gtk_image_new_from_stock ("gtk-about", GTK_ICON_SIZE_MENU); gtk_widget_show (image519); gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (about1), image519); translators1 = gtk_image_menu_item_new_with_mnemonic (_("_Translators")); gtk_widget_show (translators1); gtk_container_add (GTK_CONTAINER (Help_menu), translators1); image520 = gtk_image_new_from_stock ("gtk-about", GTK_ICON_SIZE_MENU); gtk_widget_show (image520); gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (translators1), image520); 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) album1, "activate", G_CALLBACK (on_album1_activate), NULL); g_signal_connect ((gpointer) artist1, "activate", G_CALLBACK (on_artist1_activate), NULL); g_signal_connect ((gpointer) date1, "activate", G_CALLBACK (on_date1_activate), NULL); g_signal_connect ((gpointer) custom2, "activate", G_CALLBACK (on_custom2_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_shuffle_albums, "activate", G_CALLBACK (on_order_shuffle_albums_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, image512, "image512"); GLADE_HOOKUP_OBJECT (mainwin, separator2, "separator2"); GLADE_HOOKUP_OBJECT (mainwin, add_files, "add_files"); GLADE_HOOKUP_OBJECT (mainwin, image513, "image513"); GLADE_HOOKUP_OBJECT (mainwin, add_folders, "add_folders"); GLADE_HOOKUP_OBJECT (mainwin, image514, "image514"); 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, image515, "image515"); GLADE_HOOKUP_OBJECT (mainwin, Edit, "Edit"); GLADE_HOOKUP_OBJECT (mainwin, Edit_menu, "Edit_menu"); GLADE_HOOKUP_OBJECT (mainwin, clear1, "clear1"); GLADE_HOOKUP_OBJECT (mainwin, image516, "image516"); 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, image517, "image517"); GLADE_HOOKUP_OBJECT (mainwin, crop1, "crop1"); GLADE_HOOKUP_OBJECT (mainwin, find1, "find1"); GLADE_HOOKUP_OBJECT (mainwin, sort_by1, "sort_by1"); GLADE_HOOKUP_OBJECT (mainwin, sort_by1_menu, "sort_by1_menu"); GLADE_HOOKUP_OBJECT (mainwin, album1, "album1"); GLADE_HOOKUP_OBJECT (mainwin, artist1, "artist1"); GLADE_HOOKUP_OBJECT (mainwin, date1, "date1"); GLADE_HOOKUP_OBJECT (mainwin, custom2, "custom2"); 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_shuffle_albums, "order_shuffle_albums"); 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, image518, "image518"); 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, image519, "image519"); GLADE_HOOKUP_OBJECT (mainwin, translators1, "translators1"); GLADE_HOOKUP_OBJECT (mainwin, image520, "image520"); 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_progressdlg (void) { GtkWidget *progressdlg; GtkWidget *vbox6; GtkWidget *progresstitle; GtkWidget *hbox7; GtkWidget *label22; GtkWidget *cancelbtn; progressdlg = gtk_window_new (GTK_WINDOW_TOPLEVEL); gtk_container_set_border_width (GTK_CONTAINER (progressdlg), 12); gtk_window_set_title (GTK_WINDOW (progressdlg), "progressdlg"); gtk_window_set_position (GTK_WINDOW (progressdlg), GTK_WIN_POS_CENTER_ON_PARENT); gtk_window_set_modal (GTK_WINDOW (progressdlg), TRUE); gtk_window_set_skip_taskbar_hint (GTK_WINDOW (progressdlg), TRUE); gtk_window_set_skip_pager_hint (GTK_WINDOW (progressdlg), TRUE); vbox6 = gtk_vbox_new (FALSE, 8); gtk_widget_show (vbox6); gtk_container_add (GTK_CONTAINER (progressdlg), 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); cancelbtn = gtk_button_new_from_stock ("gtk-cancel"); gtk_widget_show (cancelbtn); gtk_box_pack_start (GTK_BOX (hbox7), cancelbtn, FALSE, FALSE, 0); /* Store pointers to all widgets, for use by lookup_widget(). */ GLADE_HOOKUP_OBJECT_NO_REF (progressdlg, progressdlg, "progressdlg"); GLADE_HOOKUP_OBJECT (progressdlg, vbox6, "vbox6"); GLADE_HOOKUP_OBJECT (progressdlg, progresstitle, "progresstitle"); GLADE_HOOKUP_OBJECT (progressdlg, hbox7, "hbox7"); GLADE_HOOKUP_OBJECT (progressdlg, label22, "label22"); GLADE_HOOKUP_OBJECT (progressdlg, cancelbtn, "cancelbtn"); return progressdlg; } 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 *hbox98; GtkWidget *settings; GtkWidget *alignment24; GtkWidget *hbox99; GtkWidget *image522; GtkWidget *label123; 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_position (GTK_WINDOW (trackproperties), GTK_WIN_POS_MOUSE); 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); hbox98 = gtk_hbox_new (FALSE, 0); gtk_widget_show (hbox98); gtk_box_pack_start (GTK_BOX (vbox16), hbox98, FALSE, FALSE, 0); settings = gtk_button_new (); gtk_widget_show (settings); gtk_box_pack_start (GTK_BOX (hbox98), settings, FALSE, FALSE, 0); alignment24 = gtk_alignment_new (0.5, 0.5, 0, 0); gtk_widget_show (alignment24); gtk_container_add (GTK_CONTAINER (settings), alignment24); hbox99 = gtk_hbox_new (FALSE, 2); gtk_widget_show (hbox99); gtk_container_add (GTK_CONTAINER (alignment24), hbox99); image522 = gtk_image_new_from_stock ("gtk-preferences", GTK_ICON_SIZE_BUTTON); gtk_widget_show (image522); gtk_box_pack_start (GTK_BOX (hbox99), image522, FALSE, FALSE, 0); label123 = gtk_label_new_with_mnemonic (_("Settings")); gtk_widget_show (label123); gtk_box_pack_start (GTK_BOX (hbox99), label123, FALSE, FALSE, 0); hbuttonbox1 = gtk_hbutton_box_new (); gtk_widget_show (hbuttonbox1); gtk_box_pack_start (GTK_BOX (hbox98), hbuttonbox1, TRUE, TRUE, 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) trackproperties, "configure_event", G_CALLBACK (on_trackproperties_configure_event), NULL); g_signal_connect ((gpointer) trackproperties, "window_state_event", G_CALLBACK (on_trackproperties_window_state_event), NULL); g_signal_connect ((gpointer) metalist, "button_press_event", G_CALLBACK (on_metalist_button_press_event), NULL); g_signal_connect ((gpointer) settings, "clicked", G_CALLBACK (on_tagwriter_settings_clicked), 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, hbox98, "hbox98"); GLADE_HOOKUP_OBJECT (trackproperties, settings, "settings"); GLADE_HOOKUP_OBJECT (trackproperties, alignment24, "alignment24"); GLADE_HOOKUP_OBJECT (trackproperties, hbox99, "hbox99"); GLADE_HOOKUP_OBJECT (trackproperties, image522, "image522"); GLADE_HOOKUP_OBJECT (trackproperties, label123, "label123"); 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 *hbox74; GtkWidget *format; GtkWidget *title_formatting_help_link; GtkWidget *hbox32; GtkWidget *label38; GtkWidget *align; 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), _("Duration")); gtk_combo_box_append_text (GTK_COMBO_BOX (id), _("Track No")); 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); hbox74 = gtk_hbox_new (FALSE, 0); gtk_widget_show (hbox74); gtk_box_pack_start (GTK_BOX (hbox31), hbox74, TRUE, TRUE, 0); format = gtk_entry_new (); gtk_widget_show (format); gtk_box_pack_start (GTK_BOX (hbox74), format, TRUE, TRUE, 0); gtk_entry_set_invisible_char (GTK_ENTRY (format), 9679); gtk_entry_set_activates_default (GTK_ENTRY (format), TRUE); title_formatting_help_link = title_formatting_help_link_create ("title_formatting_help_link", "", "", 0, 0); gtk_widget_show (title_formatting_help_link); gtk_box_pack_start (GTK_BOX (hbox74), title_formatting_help_link, TRUE, TRUE, 0); GTK_WIDGET_UNSET_FLAGS (title_formatting_help_link, GTK_CAN_FOCUS); GTK_WIDGET_UNSET_FLAGS (title_formatting_help_link, GTK_CAN_DEFAULT); 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")); 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, hbox74, "hbox74"); GLADE_HOOKUP_OBJECT (editcolumndlg, format, "format"); GLADE_HOOKUP_OBJECT (editcolumndlg, title_formatting_help_link, "title_formatting_help_link"); GLADE_HOOKUP_OBJECT (editcolumndlg, hbox32, "hbox32"); GLADE_HOOKUP_OBJECT (editcolumndlg, label38, "label38"); GLADE_HOOKUP_OBJECT (editcolumndlg, align, "align"); 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 *hbox10; GtkWidget *label8; GtkWidget *pref_replaygain_mode; GtkWidget *pref_replaygain_scale; GtkWidget *hbox100; GtkWidget *label124; GtkWidget *label125; GtkWidget *replaygain_preamp; GtkWidget *label126; GtkWidget *hbox66; GtkWidget *cli_add_to_playlist; GtkWidget *cli_playlist_name; GtkWidget *resume_last_session; GtkWidget *ignore_archives; GtkWidget *label39; GtkWidget *vbox29; GtkWidget *hbox80; GtkWidget *dsp_add; GtkWidget *dsp_remove; GtkWidget *dsp_configure; GtkWidget *hbox81; GtkWidget *scrolledwindow7; GtkWidget *dsp_listview; GtkWidget *vbox30; GtkWidget *dsp_up; GtkWidget *dsp_down; GtkWidget *hbox86; GtkWidget *label114; GtkWidget *dsp_preset; GtkWidget *dsp_preset_save; GtkWidget *dsp_preset_load; GtkWidget *label110; 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 *auto_name_playlist_from_folder; GtkWidget *hbox102; GtkWidget *label129; GtkWidget *gui_fps; GtkWidget *hbox64; GtkWidget *label101; GtkWidget *titlebar_format_playing; GtkWidget *hbox65; GtkWidget *label102; GtkWidget *titlebar_format_stopped; GtkWidget *hbox101; GtkWidget *label128; GtkWidget *gui_plugin; 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 *label127; GtkWidget *tabstrip_text; 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 *hpaned1; GtkWidget *scrolledwindow2; GtkWidget *pref_pluginlist; GtkWidget *vbox12; GtkWidget *scrolledwindow8; GtkWidget *plug_description; GtkWidget *hbox20; GtkWidget *configure_plugin; GtkWidget *alignment15; GtkWidget *hbox56; GtkWidget *image394; GtkWidget *label92; GtkWidget *plug_copyright; GtkWidget *alignment20; GtkWidget *hbox88; GtkWidget *image521; GtkWidget *label117; GtkWidget *weblink; GtkWidget *label3; GtkWidget *dialog_action_area2; GtkWidget *closebutton1; prefwin = gtk_dialog_new (); gtk_container_set_border_width (GTK_CONTAINER (prefwin), 12); gtk_window_set_title (GTK_WINDOW (prefwin), _("Preferences")); gtk_window_set_position (GTK_WINDOW (prefwin), GTK_WIN_POS_CENTER); 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); 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); hbox100 = gtk_hbox_new (FALSE, 8); gtk_widget_show (hbox100); gtk_box_pack_start (GTK_BOX (vbox8), hbox100, FALSE, FALSE, 0); label124 = gtk_label_new (_("Replaygain preamp:")); gtk_widget_show (label124); gtk_box_pack_start (GTK_BOX (hbox100), label124, FALSE, FALSE, 0); label125 = gtk_label_new (_("-12 dB")); gtk_widget_show (label125); gtk_box_pack_start (GTK_BOX (hbox100), label125, FALSE, FALSE, 0); replaygain_preamp = gtk_hscale_new (GTK_ADJUSTMENT (gtk_adjustment_new (0, -12, 12, 0, 0, 0))); gtk_widget_show (replaygain_preamp); gtk_box_pack_start (GTK_BOX (hbox100), replaygain_preamp, TRUE, TRUE, 0); gtk_scale_set_value_pos (GTK_SCALE (replaygain_preamp), GTK_POS_BOTTOM); gtk_scale_set_digits (GTK_SCALE (replaygain_preamp), 0); label126 = gtk_label_new (_("+12 dB")); gtk_widget_show (label126); gtk_box_pack_start (GTK_BOX (hbox100), label126, 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); ignore_archives = gtk_check_button_new_with_mnemonic (_("Don't add from archives when adding folders")); gtk_widget_show (ignore_archives); gtk_box_pack_start (GTK_BOX (vbox8), ignore_archives, 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); vbox29 = gtk_vbox_new (FALSE, 8); gtk_widget_show (vbox29); gtk_container_add (GTK_CONTAINER (notebook), vbox29); gtk_container_set_border_width (GTK_CONTAINER (vbox29), 12); hbox80 = gtk_hbox_new (TRUE, 8); gtk_widget_show (hbox80); gtk_box_pack_start (GTK_BOX (vbox29), hbox80, FALSE, TRUE, 0); dsp_add = gtk_button_new_from_stock ("gtk-add"); gtk_widget_show (dsp_add); gtk_box_pack_start (GTK_BOX (hbox80), dsp_add, FALSE, TRUE, 0); dsp_remove = gtk_button_new_from_stock ("gtk-remove"); gtk_widget_show (dsp_remove); gtk_box_pack_start (GTK_BOX (hbox80), dsp_remove, FALSE, TRUE, 0); dsp_configure = gtk_button_new_with_mnemonic (_("Configure")); gtk_widget_show (dsp_configure); gtk_box_pack_start (GTK_BOX (hbox80), dsp_configure, FALSE, TRUE, 0); hbox81 = gtk_hbox_new (FALSE, 8); gtk_widget_show (hbox81); gtk_box_pack_start (GTK_BOX (vbox29), hbox81, TRUE, TRUE, 0); scrolledwindow7 = gtk_scrolled_window_new (NULL, NULL); gtk_widget_show (scrolledwindow7); gtk_box_pack_start (GTK_BOX (hbox81), scrolledwindow7, TRUE, TRUE, 0); gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolledwindow7), GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC); gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (scrolledwindow7), GTK_SHADOW_IN); dsp_listview = gtk_tree_view_new (); gtk_widget_show (dsp_listview); gtk_container_add (GTK_CONTAINER (scrolledwindow7), dsp_listview); gtk_tree_view_set_headers_visible (GTK_TREE_VIEW (dsp_listview), FALSE); vbox30 = gtk_vbox_new (FALSE, 8); gtk_widget_show (vbox30); gtk_box_pack_start (GTK_BOX (hbox81), vbox30, FALSE, TRUE, 0); dsp_up = gtk_button_new_from_stock ("gtk-go-up"); gtk_widget_show (dsp_up); gtk_box_pack_start (GTK_BOX (vbox30), dsp_up, FALSE, FALSE, 0); dsp_down = gtk_button_new_from_stock ("gtk-go-down"); gtk_widget_show (dsp_down); gtk_box_pack_start (GTK_BOX (vbox30), dsp_down, FALSE, FALSE, 0); hbox86 = gtk_hbox_new (FALSE, 8); gtk_widget_show (hbox86); gtk_box_pack_start (GTK_BOX (vbox29), hbox86, FALSE, TRUE, 0); label114 = gtk_label_new (_("DSP Chain Preset")); gtk_widget_show (label114); gtk_box_pack_start (GTK_BOX (hbox86), label114, FALSE, FALSE, 0); dsp_preset = gtk_combo_box_entry_new_text (); gtk_widget_show (dsp_preset); gtk_box_pack_start (GTK_BOX (hbox86), dsp_preset, FALSE, TRUE, 0); dsp_preset_save = gtk_button_new_from_stock ("gtk-save"); gtk_widget_show (dsp_preset_save); gtk_box_pack_start (GTK_BOX (hbox86), dsp_preset_save, FALSE, FALSE, 0); dsp_preset_load = gtk_button_new_with_mnemonic (_("_Load")); gtk_widget_show (dsp_preset_load); gtk_box_pack_start (GTK_BOX (hbox86), dsp_preset_load, FALSE, FALSE, 0); label110 = gtk_label_new (_("DSP")); gtk_widget_show (label110); gtk_notebook_set_tab_label (GTK_NOTEBOOK (notebook), gtk_notebook_get_nth_page (GTK_NOTEBOOK (notebook), 2), label110); 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); auto_name_playlist_from_folder = gtk_check_button_new_with_mnemonic (_("Auto-name playlists when adding a single folder")); gtk_widget_show (auto_name_playlist_from_folder); gtk_box_pack_start (GTK_BOX (vbox9), auto_name_playlist_from_folder, FALSE, FALSE, 0); hbox102 = gtk_hbox_new (FALSE, 8); gtk_widget_show (hbox102); gtk_box_pack_start (GTK_BOX (vbox9), hbox102, FALSE, FALSE, 0); label129 = gtk_label_new (_("Interface refresh rate (times per second):")); gtk_widget_show (label129); gtk_box_pack_start (GTK_BOX (hbox102), label129, FALSE, FALSE, 0); gui_fps = gtk_hscale_new (GTK_ADJUSTMENT (gtk_adjustment_new (10, 1, 30, 0, 0, 0))); gtk_widget_show (gui_fps); gtk_box_pack_start (GTK_BOX (hbox102), gui_fps, TRUE, TRUE, 0); gtk_scale_set_value_pos (GTK_SCALE (gui_fps), GTK_POS_RIGHT); gtk_scale_set_digits (GTK_SCALE (gui_fps), 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); hbox101 = gtk_hbox_new (FALSE, 8); gtk_widget_show (hbox101); gtk_box_pack_start (GTK_BOX (vbox9), hbox101, FALSE, FALSE, 0); label128 = gtk_label_new (_("GUI Plugin (changing requires restart):")); gtk_widget_show (label128); gtk_box_pack_start (GTK_BOX (hbox101), label128, FALSE, FALSE, 0); gui_plugin = gtk_combo_box_new_text (); gtk_widget_show (gui_plugin); gtk_box_pack_start (GTK_BOX (hbox101), gui_plugin, TRUE, TRUE, 0); 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), 3), 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, 5, 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); label127 = gtk_label_new (_("Text")); gtk_widget_show (label127); gtk_table_attach (GTK_TABLE (tabstrip_colors_group), label127, 4, 5, 0, 1, (GtkAttachOptions) (GTK_EXPAND), (GtkAttachOptions) (0), 0, 0); gtk_misc_set_alignment (GTK_MISC (label127), 0, 0.5); tabstrip_text = gtk_color_button_new (); gtk_widget_show (tabstrip_text); gtk_table_attach (GTK_TABLE (tabstrip_colors_group), tabstrip_text, 4, 5, 1, 2, (GtkAttachOptions) (GTK_EXPAND), (GtkAttachOptions) (0), 0, 0); 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), 4), 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), 5), label16); 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); scrolledwindow8 = gtk_scrolled_window_new (NULL, NULL); gtk_widget_show (scrolledwindow8); gtk_box_pack_start (GTK_BOX (vbox12), scrolledwindow8, TRUE, TRUE, 0); gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolledwindow8), GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC); gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (scrolledwindow8), GTK_SHADOW_IN); plug_description = gtk_text_view_new (); gtk_widget_show (plug_description); gtk_container_add (GTK_CONTAINER (scrolledwindow8), plug_description); gtk_text_view_set_editable (GTK_TEXT_VIEW (plug_description), FALSE); gtk_text_view_set_cursor_visible (GTK_TEXT_VIEW (plug_description), FALSE); 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); gtk_widget_set_sensitive (configure_plugin, FALSE); 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); plug_copyright = gtk_button_new (); gtk_widget_show (plug_copyright); gtk_box_pack_start (GTK_BOX (hbox20), plug_copyright, TRUE, FALSE, 0); gtk_widget_set_sensitive (plug_copyright, FALSE); alignment20 = gtk_alignment_new (0.5, 0.5, 0, 0); gtk_widget_show (alignment20); gtk_container_add (GTK_CONTAINER (plug_copyright), alignment20); hbox88 = gtk_hbox_new (FALSE, 2); gtk_widget_show (hbox88); gtk_container_add (GTK_CONTAINER (alignment20), hbox88); image521 = gtk_image_new_from_stock ("gtk-about", GTK_ICON_SIZE_BUTTON); gtk_widget_show (image521); gtk_box_pack_start (GTK_BOX (hbox88), image521, FALSE, FALSE, 0); label117 = gtk_label_new_with_mnemonic (_("Copyright")); gtk_widget_show (label117); gtk_box_pack_start (GTK_BOX (hbox88), label117, FALSE, FALSE, 0); weblink = create_plugin_weblink ("weblink", "", "", 0, 0); gtk_widget_show (weblink); gtk_box_pack_start (GTK_BOX (hbox20), weblink, TRUE, FALSE, 0); GTK_WIDGET_UNSET_FLAGS (weblink, GTK_CAN_FOCUS); GTK_WIDGET_UNSET_FLAGS (weblink, GTK_CAN_DEFAULT); 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_from_stock ("gtk-close"); gtk_widget_show (closebutton1); gtk_dialog_add_action_widget (GTK_DIALOG (prefwin), closebutton1, GTK_RESPONSE_CLOSE); GTK_WIDGET_SET_FLAGS (closebutton1, GTK_CAN_DEFAULT); g_signal_connect ((gpointer) prefwin, "configure_event", G_CALLBACK (on_prefwin_configure_event), NULL); g_signal_connect ((gpointer) prefwin, "window_state_event", G_CALLBACK (on_prefwin_window_state_event), NULL); g_signal_connect ((gpointer) prefwin, "realize", G_CALLBACK (on_prefwin_realize), 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) replaygain_preamp, "value_changed", G_CALLBACK (on_replaygain_preamp_value_changed), 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) ignore_archives, "toggled", G_CALLBACK (on_ignore_archives_toggled), NULL); g_signal_connect ((gpointer) dsp_add, "clicked", G_CALLBACK (on_dsp_add_clicked), NULL); g_signal_connect ((gpointer) dsp_remove, "clicked", G_CALLBACK (on_dsp_remove_clicked), NULL); g_signal_connect ((gpointer) dsp_configure, "clicked", G_CALLBACK (on_dsp_configure_clicked), NULL); g_signal_connect ((gpointer) dsp_up, "clicked", G_CALLBACK (on_dsp_up_clicked), NULL); g_signal_connect ((gpointer) dsp_down, "clicked", G_CALLBACK (on_dsp_down_clicked), NULL); g_signal_connect ((gpointer) dsp_preset, "changed", G_CALLBACK (on_dsp_preset_changed), NULL); g_signal_connect ((gpointer) dsp_preset_save, "clicked", G_CALLBACK (on_dsp_preset_save_clicked), NULL); g_signal_connect ((gpointer) dsp_preset_load, "clicked", G_CALLBACK (on_dsp_preset_load_clicked), 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) auto_name_playlist_from_folder, "toggled", G_CALLBACK (on_auto_name_playlist_from_folder_toggled), NULL); g_signal_connect ((gpointer) gui_fps, "value_changed", G_CALLBACK (on_gui_fps_value_changed), 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) gui_plugin, "changed", G_CALLBACK (on_gui_plugin_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) tabstrip_text, "color_set", G_CALLBACK (on_tabstrip_text_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) 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); g_signal_connect ((gpointer) plug_copyright, "clicked", G_CALLBACK (on_plug_copyright_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, 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, hbox100, "hbox100"); GLADE_HOOKUP_OBJECT (prefwin, label124, "label124"); GLADE_HOOKUP_OBJECT (prefwin, label125, "label125"); GLADE_HOOKUP_OBJECT (prefwin, replaygain_preamp, "replaygain_preamp"); GLADE_HOOKUP_OBJECT (prefwin, label126, "label126"); 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, ignore_archives, "ignore_archives"); GLADE_HOOKUP_OBJECT (prefwin, label39, "label39"); GLADE_HOOKUP_OBJECT (prefwin, vbox29, "vbox29"); GLADE_HOOKUP_OBJECT (prefwin, hbox80, "hbox80"); GLADE_HOOKUP_OBJECT (prefwin, dsp_add, "dsp_add"); GLADE_HOOKUP_OBJECT (prefwin, dsp_remove, "dsp_remove"); GLADE_HOOKUP_OBJECT (prefwin, dsp_configure, "dsp_configure"); GLADE_HOOKUP_OBJECT (prefwin, hbox81, "hbox81"); GLADE_HOOKUP_OBJECT (prefwin, scrolledwindow7, "scrolledwindow7"); GLADE_HOOKUP_OBJECT (prefwin, dsp_listview, "dsp_listview"); GLADE_HOOKUP_OBJECT (prefwin, vbox30, "vbox30"); GLADE_HOOKUP_OBJECT (prefwin, dsp_up, "dsp_up"); GLADE_HOOKUP_OBJECT (prefwin, dsp_down, "dsp_down"); GLADE_HOOKUP_OBJECT (prefwin, hbox86, "hbox86"); GLADE_HOOKUP_OBJECT (prefwin, label114, "label114"); GLADE_HOOKUP_OBJECT (prefwin, dsp_preset, "dsp_preset"); GLADE_HOOKUP_OBJECT (prefwin, dsp_preset_save, "dsp_preset_save"); GLADE_HOOKUP_OBJECT (prefwin, dsp_preset_load, "dsp_preset_load"); GLADE_HOOKUP_OBJECT (prefwin, label110, "label110"); 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, auto_name_playlist_from_folder, "auto_name_playlist_from_folder"); GLADE_HOOKUP_OBJECT (prefwin, hbox102, "hbox102"); GLADE_HOOKUP_OBJECT (prefwin, label129, "label129"); GLADE_HOOKUP_OBJECT (prefwin, gui_fps, "gui_fps"); 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, hbox101, "hbox101"); GLADE_HOOKUP_OBJECT (prefwin, label128, "label128"); GLADE_HOOKUP_OBJECT (prefwin, gui_plugin, "gui_plugin"); 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, label127, "label127"); GLADE_HOOKUP_OBJECT (prefwin, tabstrip_text, "tabstrip_text"); 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, 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, scrolledwindow8, "scrolledwindow8"); GLADE_HOOKUP_OBJECT (prefwin, plug_description, "plug_description"); 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, plug_copyright, "plug_copyright"); GLADE_HOOKUP_OBJECT (prefwin, alignment20, "alignment20"); GLADE_HOOKUP_OBJECT (prefwin, hbox88, "hbox88"); GLADE_HOOKUP_OBJECT (prefwin, image521, "image521"); GLADE_HOOKUP_OBJECT (prefwin, label117, "label117"); GLADE_HOOKUP_OBJECT (prefwin, weblink, "weblink"); GLADE_HOOKUP_OBJECT (prefwin, label3, "label3"); GLADE_HOOKUP_OBJECT_NO_REF (prefwin, dialog_action_area2, "dialog_action_area2"); GLADE_HOOKUP_OBJECT (prefwin, closebutton1, "closebutton1"); return prefwin; } GtkWidget* create_entrydialog (void) { GtkWidget *entrydialog; GtkWidget *dialog_vbox3; GtkWidget *vbox15; GtkWidget *hbox33; GtkWidget *title_label; 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; entrydialog = gtk_dialog_new (); gtk_container_set_border_width (GTK_CONTAINER (entrydialog), 8); gtk_window_set_title (GTK_WINDOW (entrydialog), "EntryDialog"); gtk_window_set_destroy_with_parent (GTK_WINDOW (entrydialog), TRUE); gtk_window_set_type_hint (GTK_WINDOW (entrydialog), GDK_WINDOW_TYPE_HINT_DIALOG); dialog_vbox3 = GTK_DIALOG (entrydialog)->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); title_label = gtk_label_new (_("Title:")); gtk_widget_show (title_label); gtk_box_pack_start (GTK_BOX (hbox33), title_label, 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 (entrydialog)->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 (entrydialog), 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 (entrydialog), 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 (entrydialog, entrydialog, "entrydialog"); GLADE_HOOKUP_OBJECT_NO_REF (entrydialog, dialog_vbox3, "dialog_vbox3"); GLADE_HOOKUP_OBJECT (entrydialog, vbox15, "vbox15"); GLADE_HOOKUP_OBJECT (entrydialog, hbox33, "hbox33"); GLADE_HOOKUP_OBJECT (entrydialog, title_label, "title_label"); GLADE_HOOKUP_OBJECT (entrydialog, title, "title"); GLADE_HOOKUP_OBJECT_NO_REF (entrydialog, dialog_action_area3, "dialog_action_area3"); GLADE_HOOKUP_OBJECT (entrydialog, cancelbutton2, "cancelbutton2"); GLADE_HOOKUP_OBJECT (entrydialog, alignment17, "alignment17"); GLADE_HOOKUP_OBJECT (entrydialog, hbox58, "hbox58"); GLADE_HOOKUP_OBJECT (entrydialog, image396, "image396"); GLADE_HOOKUP_OBJECT (entrydialog, label94, "label94"); GLADE_HOOKUP_OBJECT (entrydialog, okbutton2, "okbutton2"); GLADE_HOOKUP_OBJECT (entrydialog, alignment16, "alignment16"); GLADE_HOOKUP_OBJECT (entrydialog, hbox57, "hbox57"); GLADE_HOOKUP_OBJECT (entrydialog, image395, "image395"); GLADE_HOOKUP_OBJECT (entrydialog, label93, "label93"); return entrydialog; } 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 *hbox75; GtkWidget *format; GtkWidget *custom1; 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); hbox75 = gtk_hbox_new (FALSE, 0); gtk_widget_show (hbox75); gtk_box_pack_start (GTK_BOX (hbox46), hbox75, TRUE, TRUE, 0); format = gtk_entry_new (); gtk_widget_show (format); gtk_box_pack_start (GTK_BOX (hbox75), format, TRUE, TRUE, 0); gtk_entry_set_invisible_char (GTK_ENTRY (format), 9679); gtk_entry_set_activates_default (GTK_ENTRY (format), TRUE); custom1 = title_formatting_help_link_create ("custom1", "", "", 0, 0); gtk_widget_show (custom1); gtk_box_pack_start (GTK_BOX (hbox75), custom1, TRUE, TRUE, 0); GTK_WIDGET_UNSET_FLAGS (custom1, GTK_CAN_FOCUS); GTK_WIDGET_UNSET_FLAGS (custom1, GTK_CAN_DEFAULT); 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, hbox75, "hbox75"); GLADE_HOOKUP_OBJECT (groupbydlg, format, "format"); GLADE_HOOKUP_OBJECT (groupbydlg, custom1, "custom1"); 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; } GtkWidget* create_sortbydlg (void) { GtkWidget *sortbydlg; GtkWidget *dialog_vbox8; GtkWidget *vbox28; GtkWidget *hbox76; GtkWidget *label108; GtkWidget *hbox77; GtkWidget *sortfmt; GtkWidget *custom3; GtkWidget *hbox78; GtkWidget *label109; GtkWidget *sortorder; GtkWidget *dialog_action_area7; GtkWidget *cancelbutton5; GtkWidget *okbutton5; sortbydlg = gtk_dialog_new (); gtk_window_set_title (GTK_WINDOW (sortbydlg), _("Sort by...")); gtk_window_set_modal (GTK_WINDOW (sortbydlg), TRUE); gtk_window_set_type_hint (GTK_WINDOW (sortbydlg), GDK_WINDOW_TYPE_HINT_DIALOG); dialog_vbox8 = GTK_DIALOG (sortbydlg)->vbox; gtk_widget_show (dialog_vbox8); vbox28 = gtk_vbox_new (FALSE, 8); gtk_widget_show (vbox28); gtk_box_pack_start (GTK_BOX (dialog_vbox8), vbox28, FALSE, FALSE, 0); gtk_container_set_border_width (GTK_CONTAINER (vbox28), 12); hbox76 = gtk_hbox_new (FALSE, 8); gtk_widget_show (hbox76); gtk_box_pack_start (GTK_BOX (vbox28), hbox76, FALSE, TRUE, 0); label108 = gtk_label_new (_("Format")); gtk_widget_show (label108); gtk_box_pack_start (GTK_BOX (hbox76), label108, FALSE, FALSE, 0); hbox77 = gtk_hbox_new (FALSE, 0); gtk_widget_show (hbox77); gtk_box_pack_start (GTK_BOX (hbox76), hbox77, TRUE, TRUE, 0); sortfmt = gtk_entry_new (); gtk_widget_show (sortfmt); gtk_box_pack_start (GTK_BOX (hbox77), sortfmt, TRUE, TRUE, 0); gtk_entry_set_invisible_char (GTK_ENTRY (sortfmt), 9679); custom3 = title_formatting_help_link_create ("custom3", "", "", 0, 0); gtk_widget_show (custom3); gtk_box_pack_start (GTK_BOX (hbox77), custom3, TRUE, TRUE, 0); GTK_WIDGET_UNSET_FLAGS (custom3, GTK_CAN_FOCUS); GTK_WIDGET_UNSET_FLAGS (custom3, GTK_CAN_DEFAULT); hbox78 = gtk_hbox_new (FALSE, 8); gtk_widget_show (hbox78); gtk_box_pack_start (GTK_BOX (vbox28), hbox78, TRUE, TRUE, 0); label109 = gtk_label_new (_("Order")); gtk_widget_show (label109); gtk_box_pack_start (GTK_BOX (hbox78), label109, FALSE, FALSE, 0); sortorder = gtk_combo_box_new_text (); gtk_widget_show (sortorder); gtk_box_pack_start (GTK_BOX (hbox78), sortorder, TRUE, TRUE, 0); gtk_combo_box_append_text (GTK_COMBO_BOX (sortorder), _("Ascending")); gtk_combo_box_append_text (GTK_COMBO_BOX (sortorder), _("Descending")); dialog_action_area7 = GTK_DIALOG (sortbydlg)->action_area; gtk_widget_show (dialog_action_area7); gtk_button_box_set_layout (GTK_BUTTON_BOX (dialog_action_area7), GTK_BUTTONBOX_END); cancelbutton5 = gtk_button_new_from_stock ("gtk-cancel"); gtk_widget_show (cancelbutton5); gtk_dialog_add_action_widget (GTK_DIALOG (sortbydlg), cancelbutton5, GTK_RESPONSE_CANCEL); GTK_WIDGET_SET_FLAGS (cancelbutton5, GTK_CAN_DEFAULT); okbutton5 = gtk_button_new_from_stock ("gtk-ok"); gtk_widget_show (okbutton5); gtk_dialog_add_action_widget (GTK_DIALOG (sortbydlg), okbutton5, GTK_RESPONSE_OK); GTK_WIDGET_SET_FLAGS (okbutton5, GTK_CAN_DEFAULT); g_signal_connect ((gpointer) sortfmt, "activate", G_CALLBACK (on_sortfmt_activate), NULL); /* Store pointers to all widgets, for use by lookup_widget(). */ GLADE_HOOKUP_OBJECT_NO_REF (sortbydlg, sortbydlg, "sortbydlg"); GLADE_HOOKUP_OBJECT_NO_REF (sortbydlg, dialog_vbox8, "dialog_vbox8"); GLADE_HOOKUP_OBJECT (sortbydlg, vbox28, "vbox28"); GLADE_HOOKUP_OBJECT (sortbydlg, hbox76, "hbox76"); GLADE_HOOKUP_OBJECT (sortbydlg, label108, "label108"); GLADE_HOOKUP_OBJECT (sortbydlg, hbox77, "hbox77"); GLADE_HOOKUP_OBJECT (sortbydlg, sortfmt, "sortfmt"); GLADE_HOOKUP_OBJECT (sortbydlg, custom3, "custom3"); GLADE_HOOKUP_OBJECT (sortbydlg, hbox78, "hbox78"); GLADE_HOOKUP_OBJECT (sortbydlg, label109, "label109"); GLADE_HOOKUP_OBJECT (sortbydlg, sortorder, "sortorder"); GLADE_HOOKUP_OBJECT_NO_REF (sortbydlg, dialog_action_area7, "dialog_action_area7"); GLADE_HOOKUP_OBJECT (sortbydlg, cancelbutton5, "cancelbutton5"); GLADE_HOOKUP_OBJECT (sortbydlg, okbutton5, "okbutton5"); return sortbydlg; } GtkWidget* create_select_dsp_plugin (void) { GtkWidget *select_dsp_plugin; GtkWidget *dialog_vbox10; GtkWidget *vbox31; GtkWidget *hbox85; GtkWidget *label113; GtkWidget *plugin; GtkWidget *dialog_action_area9; GtkWidget *cancelbutton7; GtkWidget *okbutton7; select_dsp_plugin = gtk_dialog_new (); gtk_window_set_title (GTK_WINDOW (select_dsp_plugin), _("Select DSP Plugin")); gtk_window_set_modal (GTK_WINDOW (select_dsp_plugin), TRUE); gtk_window_set_type_hint (GTK_WINDOW (select_dsp_plugin), GDK_WINDOW_TYPE_HINT_DIALOG); dialog_vbox10 = GTK_DIALOG (select_dsp_plugin)->vbox; gtk_widget_show (dialog_vbox10); vbox31 = gtk_vbox_new (FALSE, 8); gtk_widget_show (vbox31); gtk_box_pack_start (GTK_BOX (dialog_vbox10), vbox31, TRUE, TRUE, 0); gtk_container_set_border_width (GTK_CONTAINER (vbox31), 12); hbox85 = gtk_hbox_new (FALSE, 8); gtk_widget_show (hbox85); gtk_box_pack_start (GTK_BOX (vbox31), hbox85, FALSE, FALSE, 0); label113 = gtk_label_new (_("Plugin")); gtk_widget_show (label113); gtk_box_pack_start (GTK_BOX (hbox85), label113, FALSE, FALSE, 0); plugin = gtk_combo_box_new_text (); gtk_widget_show (plugin); gtk_box_pack_start (GTK_BOX (hbox85), plugin, TRUE, TRUE, 0); dialog_action_area9 = GTK_DIALOG (select_dsp_plugin)->action_area; gtk_widget_show (dialog_action_area9); gtk_button_box_set_layout (GTK_BUTTON_BOX (dialog_action_area9), GTK_BUTTONBOX_END); cancelbutton7 = gtk_button_new_from_stock ("gtk-cancel"); gtk_widget_show (cancelbutton7); gtk_dialog_add_action_widget (GTK_DIALOG (select_dsp_plugin), cancelbutton7, GTK_RESPONSE_CANCEL); GTK_WIDGET_SET_FLAGS (cancelbutton7, GTK_CAN_DEFAULT); okbutton7 = gtk_button_new_from_stock ("gtk-ok"); gtk_widget_show (okbutton7); gtk_dialog_add_action_widget (GTK_DIALOG (select_dsp_plugin), okbutton7, GTK_RESPONSE_OK); GTK_WIDGET_SET_FLAGS (okbutton7, GTK_CAN_DEFAULT); /* Store pointers to all widgets, for use by lookup_widget(). */ GLADE_HOOKUP_OBJECT_NO_REF (select_dsp_plugin, select_dsp_plugin, "select_dsp_plugin"); GLADE_HOOKUP_OBJECT_NO_REF (select_dsp_plugin, dialog_vbox10, "dialog_vbox10"); GLADE_HOOKUP_OBJECT (select_dsp_plugin, vbox31, "vbox31"); GLADE_HOOKUP_OBJECT (select_dsp_plugin, hbox85, "hbox85"); GLADE_HOOKUP_OBJECT (select_dsp_plugin, label113, "label113"); GLADE_HOOKUP_OBJECT (select_dsp_plugin, plugin, "plugin"); GLADE_HOOKUP_OBJECT_NO_REF (select_dsp_plugin, dialog_action_area9, "dialog_action_area9"); GLADE_HOOKUP_OBJECT (select_dsp_plugin, cancelbutton7, "cancelbutton7"); GLADE_HOOKUP_OBJECT (select_dsp_plugin, okbutton7, "okbutton7"); return select_dsp_plugin; } GtkWidget* create_tagwritersettings (void) { GtkWidget *tagwritersettings; GtkWidget *dialog_vbox11; GtkWidget *vbox32; GtkWidget *frame8; GtkWidget *alignment21; GtkWidget *vbox33; GtkWidget *hbox89; GtkWidget *write_id3v2; GtkWidget *write_id3v1; GtkWidget *write_apev2; GtkWidget *hbox90; GtkWidget *strip_id3v2; GtkWidget *strip_id3v1; GtkWidget *strip_apev2; GtkWidget *hbox91; GtkWidget *label118; GtkWidget *id3v2_version; GtkWidget *hbox92; GtkWidget *label119; GtkWidget *id3v1_encoding; GtkWidget *label120; GtkWidget *hbox93; GtkWidget *frame9; GtkWidget *alignment22; GtkWidget *vbox34; GtkWidget *hbox94; GtkWidget *ape_write_id3v2; GtkWidget *ape_write_apev2; GtkWidget *hbox95; GtkWidget *ape_strip_id3v2; GtkWidget *ape_strip_apev2; GtkWidget *label121; GtkWidget *frame10; GtkWidget *alignment23; GtkWidget *vbox35; GtkWidget *hbox96; GtkWidget *wv_write_apev2; GtkWidget *wv_write_id3v1; GtkWidget *hbox97; GtkWidget *wv_strip_apev2; GtkWidget *wv_strip_id3v1; GtkWidget *label122; GtkWidget *dialog_action_area10; GtkWidget *closebutton2; tagwritersettings = gtk_dialog_new (); gtk_container_set_border_width (GTK_CONTAINER (tagwritersettings), 12); gtk_window_set_title (GTK_WINDOW (tagwritersettings), _("Tag Writer Settings")); gtk_window_set_modal (GTK_WINDOW (tagwritersettings), TRUE); gtk_window_set_type_hint (GTK_WINDOW (tagwritersettings), GDK_WINDOW_TYPE_HINT_DIALOG); gtk_dialog_set_has_separator (GTK_DIALOG (tagwritersettings), FALSE); dialog_vbox11 = GTK_DIALOG (tagwritersettings)->vbox; gtk_widget_show (dialog_vbox11); vbox32 = gtk_vbox_new (FALSE, 0); gtk_widget_show (vbox32); gtk_box_pack_start (GTK_BOX (dialog_vbox11), vbox32, TRUE, TRUE, 0); frame8 = gtk_frame_new (NULL); gtk_widget_show (frame8); gtk_box_pack_start (GTK_BOX (vbox32), frame8, FALSE, TRUE, 0); gtk_frame_set_shadow_type (GTK_FRAME (frame8), GTK_SHADOW_NONE); alignment21 = gtk_alignment_new (0.5, 0.5, 1, 1); gtk_widget_show (alignment21); gtk_container_add (GTK_CONTAINER (frame8), alignment21); gtk_alignment_set_padding (GTK_ALIGNMENT (alignment21), 0, 0, 12, 0); vbox33 = gtk_vbox_new (FALSE, 8); gtk_widget_show (vbox33); gtk_container_add (GTK_CONTAINER (alignment21), vbox33); gtk_container_set_border_width (GTK_CONTAINER (vbox33), 12); hbox89 = gtk_hbox_new (FALSE, 8); gtk_widget_show (hbox89); gtk_box_pack_start (GTK_BOX (vbox33), hbox89, FALSE, FALSE, 0); write_id3v2 = gtk_check_button_new_with_mnemonic (_("Write ID3v2")); gtk_widget_show (write_id3v2); gtk_box_pack_start (GTK_BOX (hbox89), 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 (hbox89), 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 (hbox89), write_apev2, FALSE, FALSE, 0); hbox90 = gtk_hbox_new (FALSE, 8); gtk_widget_show (hbox90); gtk_box_pack_start (GTK_BOX (vbox33), hbox90, FALSE, FALSE, 0); strip_id3v2 = gtk_check_button_new_with_mnemonic (_("Strip ID3v2")); gtk_widget_show (strip_id3v2); gtk_box_pack_start (GTK_BOX (hbox90), 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 (hbox90), 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 (hbox90), strip_apev2, FALSE, FALSE, 0); hbox91 = gtk_hbox_new (FALSE, 8); gtk_widget_show (hbox91); gtk_box_pack_start (GTK_BOX (vbox33), hbox91, TRUE, TRUE, 0); label118 = gtk_label_new (_("ID3v2 version")); gtk_widget_show (label118); gtk_box_pack_start (GTK_BOX (hbox91), label118, FALSE, FALSE, 0); id3v2_version = gtk_combo_box_new_text (); gtk_widget_show (id3v2_version); gtk_box_pack_start (GTK_BOX (hbox91), 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")); hbox92 = gtk_hbox_new (FALSE, 8); gtk_widget_show (hbox92); gtk_box_pack_start (GTK_BOX (vbox33), hbox92, TRUE, TRUE, 0); label119 = gtk_label_new (_("ID3v1 character encoding (default is iso8859-1)")); gtk_widget_show (label119); gtk_box_pack_start (GTK_BOX (hbox92), label119, FALSE, FALSE, 0); id3v1_encoding = gtk_entry_new (); gtk_widget_show (id3v1_encoding); gtk_box_pack_start (GTK_BOX (hbox92), id3v1_encoding, TRUE, TRUE, 0); gtk_entry_set_invisible_char (GTK_ENTRY (id3v1_encoding), 9679); label120 = gtk_label_new ("MP3"); gtk_widget_show (label120); gtk_frame_set_label_widget (GTK_FRAME (frame8), label120); gtk_label_set_use_markup (GTK_LABEL (label120), TRUE); hbox93 = gtk_hbox_new (TRUE, 0); gtk_widget_show (hbox93); gtk_box_pack_start (GTK_BOX (vbox32), hbox93, FALSE, TRUE, 0); frame9 = gtk_frame_new (NULL); gtk_widget_show (frame9); gtk_box_pack_start (GTK_BOX (hbox93), frame9, TRUE, TRUE, 0); gtk_frame_set_shadow_type (GTK_FRAME (frame9), GTK_SHADOW_NONE); alignment22 = gtk_alignment_new (0.5, 0.5, 1, 1); gtk_widget_show (alignment22); gtk_container_add (GTK_CONTAINER (frame9), alignment22); gtk_alignment_set_padding (GTK_ALIGNMENT (alignment22), 0, 0, 12, 0); vbox34 = gtk_vbox_new (FALSE, 8); gtk_widget_show (vbox34); gtk_container_add (GTK_CONTAINER (alignment22), vbox34); gtk_container_set_border_width (GTK_CONTAINER (vbox34), 12); hbox94 = gtk_hbox_new (FALSE, 8); gtk_widget_show (hbox94); gtk_box_pack_start (GTK_BOX (vbox34), hbox94, 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 (hbox94), 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 (hbox94), ape_write_apev2, FALSE, FALSE, 0); hbox95 = gtk_hbox_new (FALSE, 8); gtk_widget_show (hbox95); gtk_box_pack_start (GTK_BOX (vbox34), hbox95, 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 (hbox95), 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 (hbox95), ape_strip_apev2, FALSE, FALSE, 0); label121 = gtk_label_new ("APE"); gtk_widget_show (label121); gtk_frame_set_label_widget (GTK_FRAME (frame9), label121); gtk_label_set_use_markup (GTK_LABEL (label121), TRUE); frame10 = gtk_frame_new (NULL); gtk_widget_show (frame10); gtk_box_pack_start (GTK_BOX (hbox93), frame10, TRUE, TRUE, 0); gtk_frame_set_shadow_type (GTK_FRAME (frame10), GTK_SHADOW_NONE); alignment23 = gtk_alignment_new (0.5, 0.5, 1, 1); gtk_widget_show (alignment23); gtk_container_add (GTK_CONTAINER (frame10), alignment23); gtk_alignment_set_padding (GTK_ALIGNMENT (alignment23), 0, 0, 12, 0); vbox35 = gtk_vbox_new (FALSE, 8); gtk_widget_show (vbox35); gtk_container_add (GTK_CONTAINER (alignment23), vbox35); gtk_container_set_border_width (GTK_CONTAINER (vbox35), 12); hbox96 = gtk_hbox_new (FALSE, 8); gtk_widget_show (hbox96); gtk_box_pack_start (GTK_BOX (vbox35), hbox96, 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 (hbox96), 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 (hbox96), wv_write_id3v1, FALSE, FALSE, 0); hbox97 = gtk_hbox_new (FALSE, 8); gtk_widget_show (hbox97); gtk_box_pack_start (GTK_BOX (vbox35), hbox97, 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 (hbox97), 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 (hbox97), wv_strip_id3v1, FALSE, FALSE, 0); label122 = gtk_label_new ("WavPack"); gtk_widget_show (label122); gtk_frame_set_label_widget (GTK_FRAME (frame10), label122); gtk_label_set_use_markup (GTK_LABEL (label122), TRUE); dialog_action_area10 = GTK_DIALOG (tagwritersettings)->action_area; gtk_widget_show (dialog_action_area10); gtk_button_box_set_layout (GTK_BUTTON_BOX (dialog_action_area10), GTK_BUTTONBOX_END); closebutton2 = gtk_button_new_from_stock ("gtk-close"); gtk_widget_show (closebutton2); gtk_dialog_add_action_widget (GTK_DIALOG (tagwritersettings), closebutton2, GTK_RESPONSE_CLOSE); GTK_WIDGET_SET_FLAGS (closebutton2, GTK_CAN_DEFAULT); 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); /* Store pointers to all widgets, for use by lookup_widget(). */ GLADE_HOOKUP_OBJECT_NO_REF (tagwritersettings, tagwritersettings, "tagwritersettings"); GLADE_HOOKUP_OBJECT_NO_REF (tagwritersettings, dialog_vbox11, "dialog_vbox11"); GLADE_HOOKUP_OBJECT (tagwritersettings, vbox32, "vbox32"); GLADE_HOOKUP_OBJECT (tagwritersettings, frame8, "frame8"); GLADE_HOOKUP_OBJECT (tagwritersettings, alignment21, "alignment21"); GLADE_HOOKUP_OBJECT (tagwritersettings, vbox33, "vbox33"); GLADE_HOOKUP_OBJECT (tagwritersettings, hbox89, "hbox89"); GLADE_HOOKUP_OBJECT (tagwritersettings, write_id3v2, "write_id3v2"); GLADE_HOOKUP_OBJECT (tagwritersettings, write_id3v1, "write_id3v1"); GLADE_HOOKUP_OBJECT (tagwritersettings, write_apev2, "write_apev2"); GLADE_HOOKUP_OBJECT (tagwritersettings, hbox90, "hbox90"); GLADE_HOOKUP_OBJECT (tagwritersettings, strip_id3v2, "strip_id3v2"); GLADE_HOOKUP_OBJECT (tagwritersettings, strip_id3v1, "strip_id3v1"); GLADE_HOOKUP_OBJECT (tagwritersettings, strip_apev2, "strip_apev2"); GLADE_HOOKUP_OBJECT (tagwritersettings, hbox91, "hbox91"); GLADE_HOOKUP_OBJECT (tagwritersettings, label118, "label118"); GLADE_HOOKUP_OBJECT (tagwritersettings, id3v2_version, "id3v2_version"); GLADE_HOOKUP_OBJECT (tagwritersettings, hbox92, "hbox92"); GLADE_HOOKUP_OBJECT (tagwritersettings, label119, "label119"); GLADE_HOOKUP_OBJECT (tagwritersettings, id3v1_encoding, "id3v1_encoding"); GLADE_HOOKUP_OBJECT (tagwritersettings, label120, "label120"); GLADE_HOOKUP_OBJECT (tagwritersettings, hbox93, "hbox93"); GLADE_HOOKUP_OBJECT (tagwritersettings, frame9, "frame9"); GLADE_HOOKUP_OBJECT (tagwritersettings, alignment22, "alignment22"); GLADE_HOOKUP_OBJECT (tagwritersettings, vbox34, "vbox34"); GLADE_HOOKUP_OBJECT (tagwritersettings, hbox94, "hbox94"); GLADE_HOOKUP_OBJECT (tagwritersettings, ape_write_id3v2, "ape_write_id3v2"); GLADE_HOOKUP_OBJECT (tagwritersettings, ape_write_apev2, "ape_write_apev2"); GLADE_HOOKUP_OBJECT (tagwritersettings, hbox95, "hbox95"); GLADE_HOOKUP_OBJECT (tagwritersettings, ape_strip_id3v2, "ape_strip_id3v2"); GLADE_HOOKUP_OBJECT (tagwritersettings, ape_strip_apev2, "ape_strip_apev2"); GLADE_HOOKUP_OBJECT (tagwritersettings, label121, "label121"); GLADE_HOOKUP_OBJECT (tagwritersettings, frame10, "frame10"); GLADE_HOOKUP_OBJECT (tagwritersettings, alignment23, "alignment23"); GLADE_HOOKUP_OBJECT (tagwritersettings, vbox35, "vbox35"); GLADE_HOOKUP_OBJECT (tagwritersettings, hbox96, "hbox96"); GLADE_HOOKUP_OBJECT (tagwritersettings, wv_write_apev2, "wv_write_apev2"); GLADE_HOOKUP_OBJECT (tagwritersettings, wv_write_id3v1, "wv_write_id3v1"); GLADE_HOOKUP_OBJECT (tagwritersettings, hbox97, "hbox97"); GLADE_HOOKUP_OBJECT (tagwritersettings, wv_strip_apev2, "wv_strip_apev2"); GLADE_HOOKUP_OBJECT (tagwritersettings, wv_strip_id3v1, "wv_strip_id3v1"); GLADE_HOOKUP_OBJECT (tagwritersettings, label122, "label122"); GLADE_HOOKUP_OBJECT_NO_REF (tagwritersettings, dialog_action_area10, "dialog_action_area10"); GLADE_HOOKUP_OBJECT (tagwritersettings, closebutton2, "closebutton2"); return tagwritersettings; }