summaryrefslogtreecommitdiff
path: root/plugins/gtkui
diff options
context:
space:
mode:
authorGravatar Alexey Yakovenko <waker@users.sourceforge.net>2014-07-16 15:03:14 +0200
committerGravatar Alexey Yakovenko <waker@users.sourceforge.net>2014-07-16 15:03:14 +0200
commit5b8196602b8083ec1797ee430a0b2f72daa0f25a (patch)
treeaeba89f51a7098c109369bcd13d38450e885c9ee /plugins/gtkui
parent2707890d1b8aee089bc3b8fd0f395735aff6261e (diff)
Tweaked "Stop after current" settings in the GUI
Diffstat (limited to 'plugins/gtkui')
-rw-r--r--plugins/gtkui/ddbvolumebar.c1
-rw-r--r--plugins/gtkui/deadbeef.glade24
-rw-r--r--plugins/gtkui/gtkui.c2
-rw-r--r--plugins/gtkui/interface.c96
4 files changed, 61 insertions, 62 deletions
diff --git a/plugins/gtkui/ddbvolumebar.c b/plugins/gtkui/ddbvolumebar.c
index dfb3de1f..49128dc6 100644
--- a/plugins/gtkui/ddbvolumebar.c
+++ b/plugins/gtkui/ddbvolumebar.c
@@ -285,7 +285,6 @@ on_volumebar_scroll_event (GtkWidget *widget,
vol = -range;
}
deadbeef->volume_set_db (vol);
- GtkWidget *volumebar = DDB_VOLUMEBAR (widget);
gtk_widget_queue_draw (widget);
char s[100];
int db = deadbeef->volume_get_db ();
diff --git a/plugins/gtkui/deadbeef.glade b/plugins/gtkui/deadbeef.glade
index 59ac4533..6e6a9e9f 100644
--- a/plugins/gtkui/deadbeef.glade
+++ b/plugins/gtkui/deadbeef.glade
@@ -58,7 +58,7 @@
<signal name="activate" handler="on_open_activate" last_modification_time="Sat, 04 Jul 2009 12:57:58 GMT"/>
<child internal-child="image">
- <widget class="GtkImage" id="image647">
+ <widget class="GtkImage" id="image663">
<property name="visible">True</property>
<property name="stock">gtk-open</property>
<property name="icon_size">1</property>
@@ -85,7 +85,7 @@
<signal name="activate" handler="on_add_files_activate" last_modification_time="Sat, 04 Jul 2009 13:04:01 GMT"/>
<child internal-child="image">
- <widget class="GtkImage" id="image648">
+ <widget class="GtkImage" id="image664">
<property name="visible">True</property>
<property name="stock">gtk-add</property>
<property name="icon_size">1</property>
@@ -106,7 +106,7 @@
<signal name="activate" handler="on_add_folders_activate" last_modification_time="Sun, 06 Sep 2009 17:51:40 GMT"/>
<child internal-child="image">
- <widget class="GtkImage" id="image649">
+ <widget class="GtkImage" id="image665">
<property name="visible">True</property>
<property name="stock">gtk-add</property>
<property name="icon_size">1</property>
@@ -175,7 +175,7 @@
<signal name="activate" handler="on_quit_activate" last_modification_time="Sat, 04 Jul 2009 12:57:58 GMT"/>
<child internal-child="image">
- <widget class="GtkImage" id="image650">
+ <widget class="GtkImage" id="image666">
<property name="visible">True</property>
<property name="stock">gtk-quit</property>
<property name="icon_size">1</property>
@@ -209,7 +209,7 @@
<signal name="activate" handler="on_clear1_activate" last_modification_time="Sun, 06 Sep 2009 18:30:03 GMT"/>
<child internal-child="image">
- <widget class="GtkImage" id="image651">
+ <widget class="GtkImage" id="image667">
<property name="visible">True</property>
<property name="stock">gtk-clear</property>
<property name="icon_size">1</property>
@@ -266,7 +266,7 @@
<signal name="activate" handler="on_remove1_activate" last_modification_time="Sun, 06 Sep 2009 18:30:03 GMT"/>
<child internal-child="image">
- <widget class="GtkImage" id="image652">
+ <widget class="GtkImage" id="image668">
<property name="visible">True</property>
<property name="stock">gtk-remove</property>
<property name="icon_size">1</property>
@@ -572,7 +572,7 @@
<child>
<widget class="GtkCheckMenuItem" id="stop_after_current">
<property name="visible">True</property>
- <property name="label" translatable="yes">Stop after current</property>
+ <property name="label" translatable="yes">Stop after current track</property>
<property name="use_underline">True</property>
<property name="active">False</property>
<signal name="activate" handler="on_stop_after_current_activate" last_modification_time="Sun, 20 Dec 2009 13:32:19 GMT"/>
@@ -625,7 +625,7 @@
<signal name="activate" handler="on_help1_activate" last_modification_time="Tue, 08 Sep 2009 17:32:06 GMT"/>
<child internal-child="image">
- <widget class="GtkImage" id="image653">
+ <widget class="GtkImage" id="image669">
<property name="visible">True</property>
<property name="stock">gtk-help</property>
<property name="icon_size">1</property>
@@ -685,7 +685,7 @@
<signal name="activate" handler="on_about1_activate" last_modification_time="Sat, 04 Jul 2009 12:57:58 GMT"/>
<child internal-child="image">
- <widget class="GtkImage" id="image654">
+ <widget class="GtkImage" id="image670">
<property name="visible">True</property>
<property name="stock">gtk-about</property>
<property name="icon_size">1</property>
@@ -706,7 +706,7 @@
<signal name="activate" handler="on_translators1_activate" last_modification_time="Sun, 19 Sep 2010 13:38:07 GMT"/>
<child internal-child="image">
- <widget class="GtkImage" id="image655">
+ <widget class="GtkImage" id="image671">
<property name="visible">True</property>
<property name="stock">gtk-about</property>
<property name="icon_size">1</property>
@@ -2841,7 +2841,7 @@ Album</property>
<widget class="GtkCheckButton" id="reset_autostop">
<property name="visible">True</property>
<property name="can_focus">True</property>
- <property name="label" translatable="yes">Auto-reset &quot;Stop after current&quot;</property>
+ <property name="label" translatable="yes">&quot;Stop after current track&quot; option will switch off after triggering</property>
<property name="use_underline">True</property>
<property name="relief">GTK_RELIEF_NORMAL</property>
<property name="focus_on_click">True</property>
@@ -2861,7 +2861,7 @@ Album</property>
<widget class="GtkCheckButton" id="reset_autostopalbum">
<property name="visible">True</property>
<property name="can_focus">True</property>
- <property name="label" translatable="yes">Auto-reset &quot;Stop after current album&quot;</property>
+ <property name="label" translatable="yes">&quot;Stop after current album&quot; option will switch off after triggering</property>
<property name="use_underline">True</property>
<property name="relief">GTK_RELIEF_NORMAL</property>
<property name="focus_on_click">True</property>
diff --git a/plugins/gtkui/gtkui.c b/plugins/gtkui/gtkui.c
index 9d8f6dea..c8d22c16 100644
--- a/plugins/gtkui/gtkui.c
+++ b/plugins/gtkui/gtkui.c
@@ -592,7 +592,7 @@ gtkui_on_configchanged (void *data) {
// cursor follows playback
gtk_check_menu_item_set_active (GTK_CHECK_MENU_ITEM (lookup_widget (mainwin, "cursor_follows_playback")), deadbeef->conf_get_int ("playlist.scroll.cursorfollowplayback", 1) ? TRUE : FALSE);
- // stop after current
+ // stop after current track
int stop_after_current = deadbeef->conf_get_int ("playlist.stop_after_current", 0);
gtk_check_menu_item_set_active (GTK_CHECK_MENU_ITEM (lookup_widget (mainwin, "stop_after_current")), stop_after_current ? TRUE : FALSE);
diff --git a/plugins/gtkui/interface.c b/plugins/gtkui/interface.c
index d17269c6..6f8ea8c6 100644
--- a/plugins/gtkui/interface.c
+++ b/plugins/gtkui/interface.c
@@ -35,12 +35,12 @@ create_mainwin (void)
GtkWidget *File;
GtkWidget *File_menu;
GtkWidget *open;
- GtkWidget *image647;
+ GtkWidget *image663;
GtkWidget *separator2;
GtkWidget *add_files;
- GtkWidget *image648;
+ GtkWidget *image664;
GtkWidget *add_folders;
- GtkWidget *image649;
+ GtkWidget *image665;
GtkWidget *add_location1;
GtkWidget *separatormenuitem1;
GtkWidget *new_playlist1;
@@ -48,18 +48,18 @@ create_mainwin (void)
GtkWidget *playlist_save_as;
GtkWidget *separator8;
GtkWidget *quit;
- GtkWidget *image650;
+ GtkWidget *image666;
GtkWidget *Edit;
GtkWidget *Edit_menu;
GtkWidget *clear1;
- GtkWidget *image651;
+ GtkWidget *image667;
GtkWidget *select_all1;
GtkWidget *deselect_all1;
GtkWidget *invert_selection1;
GtkWidget *Selection;
GtkWidget *Selection_menu;
GtkWidget *remove1;
- GtkWidget *image652;
+ GtkWidget *image668;
GtkWidget *crop1;
GtkWidget *find1;
GtkWidget *sort_by1;
@@ -102,16 +102,16 @@ create_mainwin (void)
GtkWidget *Help;
GtkWidget *Help_menu;
GtkWidget *help1;
- GtkWidget *image653;
+ GtkWidget *image669;
GtkWidget *changelog1;
GtkWidget *separator10;
GtkWidget *gpl1;
GtkWidget *lgpl1;
GtkWidget *separator9;
GtkWidget *about1;
- GtkWidget *image654;
+ GtkWidget *image670;
GtkWidget *translators1;
- GtkWidget *image655;
+ GtkWidget *image671;
GtkWidget *plugins_bottom_vbox;
GtkWidget *statusbar;
@@ -139,9 +139,9 @@ create_mainwin (void)
gtk_widget_show (open);
gtk_container_add (GTK_CONTAINER (File_menu), open);
- image647 = gtk_image_new_from_stock ("gtk-open", GTK_ICON_SIZE_MENU);
- gtk_widget_show (image647);
- gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (open), image647);
+ image663 = gtk_image_new_from_stock ("gtk-open", GTK_ICON_SIZE_MENU);
+ gtk_widget_show (image663);
+ gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (open), image663);
separator2 = gtk_separator_menu_item_new ();
gtk_widget_show (separator2);
@@ -152,17 +152,17 @@ create_mainwin (void)
gtk_widget_show (add_files);
gtk_container_add (GTK_CONTAINER (File_menu), add_files);
- image648 = gtk_image_new_from_stock ("gtk-add", GTK_ICON_SIZE_MENU);
- gtk_widget_show (image648);
- gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (add_files), image648);
+ image664 = gtk_image_new_from_stock ("gtk-add", GTK_ICON_SIZE_MENU);
+ gtk_widget_show (image664);
+ gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (add_files), image664);
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);
- image649 = gtk_image_new_from_stock ("gtk-add", GTK_ICON_SIZE_MENU);
- gtk_widget_show (image649);
- gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (add_folders), image649);
+ image665 = gtk_image_new_from_stock ("gtk-add", GTK_ICON_SIZE_MENU);
+ gtk_widget_show (image665);
+ gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (add_folders), image665);
add_location1 = gtk_menu_item_new_with_mnemonic (_("Add location"));
gtk_widget_show (add_location1);
@@ -194,9 +194,9 @@ create_mainwin (void)
gtk_widget_show (quit);
gtk_container_add (GTK_CONTAINER (File_menu), quit);
- image650 = gtk_image_new_from_stock ("gtk-quit", GTK_ICON_SIZE_MENU);
- gtk_widget_show (image650);
- gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (quit), image650);
+ image666 = gtk_image_new_from_stock ("gtk-quit", GTK_ICON_SIZE_MENU);
+ gtk_widget_show (image666);
+ gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (quit), image666);
Edit = gtk_menu_item_new_with_mnemonic (_("_Edit"));
gtk_widget_show (Edit);
@@ -209,9 +209,9 @@ create_mainwin (void)
gtk_widget_show (clear1);
gtk_container_add (GTK_CONTAINER (Edit_menu), clear1);
- image651 = gtk_image_new_from_stock ("gtk-clear", GTK_ICON_SIZE_MENU);
- gtk_widget_show (image651);
- gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (clear1), image651);
+ image667 = gtk_image_new_from_stock ("gtk-clear", GTK_ICON_SIZE_MENU);
+ gtk_widget_show (image667);
+ gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (clear1), image667);
select_all1 = gtk_menu_item_new_with_mnemonic (_("Select all"));
gtk_widget_show (select_all1);
@@ -236,9 +236,9 @@ create_mainwin (void)
gtk_widget_show (remove1);
gtk_container_add (GTK_CONTAINER (Selection_menu), remove1);
- image652 = gtk_image_new_from_stock ("gtk-remove", GTK_ICON_SIZE_MENU);
- gtk_widget_show (image652);
- gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (remove1), image652);
+ image668 = gtk_image_new_from_stock ("gtk-remove", GTK_ICON_SIZE_MENU);
+ gtk_widget_show (image668);
+ gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (remove1), image668);
crop1 = gtk_menu_item_new_with_mnemonic (_("Crop"));
gtk_widget_show (crop1);
@@ -383,7 +383,7 @@ create_mainwin (void)
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"));
+ stop_after_current = gtk_check_menu_item_new_with_mnemonic (_("Stop after current track"));
gtk_widget_show (stop_after_current);
gtk_container_add (GTK_CONTAINER (Playback_menu), stop_after_current);
@@ -411,9 +411,9 @@ create_mainwin (void)
gtk_widget_show (help1);
gtk_container_add (GTK_CONTAINER (Help_menu), help1);
- image653 = gtk_image_new_from_stock ("gtk-help", GTK_ICON_SIZE_MENU);
- gtk_widget_show (image653);
- gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (help1), image653);
+ image669 = gtk_image_new_from_stock ("gtk-help", GTK_ICON_SIZE_MENU);
+ gtk_widget_show (image669);
+ gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (help1), image669);
changelog1 = gtk_menu_item_new_with_mnemonic (_("_ChangeLog"));
gtk_widget_show (changelog1);
@@ -441,17 +441,17 @@ create_mainwin (void)
gtk_widget_show (about1);
gtk_container_add (GTK_CONTAINER (Help_menu), about1);
- image654 = gtk_image_new_from_stock ("gtk-about", GTK_ICON_SIZE_MENU);
- gtk_widget_show (image654);
- gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (about1), image654);
+ image670 = gtk_image_new_from_stock ("gtk-about", GTK_ICON_SIZE_MENU);
+ gtk_widget_show (image670);
+ gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (about1), image670);
translators1 = gtk_image_menu_item_new_with_mnemonic (_("_Translators"));
gtk_widget_show (translators1);
gtk_container_add (GTK_CONTAINER (Help_menu), translators1);
- image655 = gtk_image_new_from_stock ("gtk-about", GTK_ICON_SIZE_MENU);
- gtk_widget_show (image655);
- gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (translators1), image655);
+ image671 = gtk_image_new_from_stock ("gtk-about", GTK_ICON_SIZE_MENU);
+ gtk_widget_show (image671);
+ gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (translators1), image671);
plugins_bottom_vbox = gtk_vbox_new (FALSE, 0);
gtk_widget_show (plugins_bottom_vbox);
@@ -619,12 +619,12 @@ create_mainwin (void)
GLADE_HOOKUP_OBJECT (mainwin, File, "File");
GLADE_HOOKUP_OBJECT (mainwin, File_menu, "File_menu");
GLADE_HOOKUP_OBJECT (mainwin, open, "open");
- GLADE_HOOKUP_OBJECT (mainwin, image647, "image647");
+ GLADE_HOOKUP_OBJECT (mainwin, image663, "image663");
GLADE_HOOKUP_OBJECT (mainwin, separator2, "separator2");
GLADE_HOOKUP_OBJECT (mainwin, add_files, "add_files");
- GLADE_HOOKUP_OBJECT (mainwin, image648, "image648");
+ GLADE_HOOKUP_OBJECT (mainwin, image664, "image664");
GLADE_HOOKUP_OBJECT (mainwin, add_folders, "add_folders");
- GLADE_HOOKUP_OBJECT (mainwin, image649, "image649");
+ GLADE_HOOKUP_OBJECT (mainwin, image665, "image665");
GLADE_HOOKUP_OBJECT (mainwin, add_location1, "add_location1");
GLADE_HOOKUP_OBJECT (mainwin, separatormenuitem1, "separatormenuitem1");
GLADE_HOOKUP_OBJECT (mainwin, new_playlist1, "new_playlist1");
@@ -632,18 +632,18 @@ create_mainwin (void)
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, image650, "image650");
+ GLADE_HOOKUP_OBJECT (mainwin, image666, "image666");
GLADE_HOOKUP_OBJECT (mainwin, Edit, "Edit");
GLADE_HOOKUP_OBJECT (mainwin, Edit_menu, "Edit_menu");
GLADE_HOOKUP_OBJECT (mainwin, clear1, "clear1");
- GLADE_HOOKUP_OBJECT (mainwin, image651, "image651");
+ GLADE_HOOKUP_OBJECT (mainwin, image667, "image667");
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, image652, "image652");
+ GLADE_HOOKUP_OBJECT (mainwin, image668, "image668");
GLADE_HOOKUP_OBJECT (mainwin, crop1, "crop1");
GLADE_HOOKUP_OBJECT (mainwin, find1, "find1");
GLADE_HOOKUP_OBJECT (mainwin, sort_by1, "sort_by1");
@@ -684,16 +684,16 @@ create_mainwin (void)
GLADE_HOOKUP_OBJECT (mainwin, Help, "Help");
GLADE_HOOKUP_OBJECT (mainwin, Help_menu, "Help_menu");
GLADE_HOOKUP_OBJECT (mainwin, help1, "help1");
- GLADE_HOOKUP_OBJECT (mainwin, image653, "image653");
+ GLADE_HOOKUP_OBJECT (mainwin, image669, "image669");
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, image654, "image654");
+ GLADE_HOOKUP_OBJECT (mainwin, image670, "image670");
GLADE_HOOKUP_OBJECT (mainwin, translators1, "translators1");
- GLADE_HOOKUP_OBJECT (mainwin, image655, "image655");
+ GLADE_HOOKUP_OBJECT (mainwin, image671, "image671");
GLADE_HOOKUP_OBJECT (mainwin, plugins_bottom_vbox, "plugins_bottom_vbox");
GLADE_HOOKUP_OBJECT (mainwin, statusbar, "statusbar");
@@ -1842,11 +1842,11 @@ create_prefwin (void)
gtk_widget_show (ignore_archives);
gtk_box_pack_start (GTK_BOX (vbox8), ignore_archives, FALSE, FALSE, 0);
- reset_autostop = gtk_check_button_new_with_mnemonic (_("Auto-reset \"Stop after current\""));
+ reset_autostop = gtk_check_button_new_with_mnemonic (_("\"Stop after current track\" option will switch off after triggering"));
gtk_widget_show (reset_autostop);
gtk_box_pack_start (GTK_BOX (vbox8), reset_autostop, FALSE, FALSE, 0);
- reset_autostopalbum = gtk_check_button_new_with_mnemonic (_("Auto-reset \"Stop after current album\""));
+ reset_autostopalbum = gtk_check_button_new_with_mnemonic (_("\"Stop after current album\" option will switch off after triggering"));
gtk_widget_show (reset_autostopalbum);
gtk_box_pack_start (GTK_BOX (vbox8), reset_autostopalbum, FALSE, FALSE, 0);