[easytag/wip/unstable: 28/56] Avoid a critical warning when saving files
- From: David King <davidk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [easytag/wip/unstable: 28/56] Avoid a critical warning when saving files
- Date: Sat, 4 Jan 2014 15:06:46 +0000 (UTC)
commit f2e7ebc8b58112e0666ea2b35c6e4714c6b054d6
Author: David King <amigadave amigadave com>
Date: Tue Apr 9 21:00:00 2013 +0100
Avoid a critical warning when saving files
Use the correct action name when fetching a widget from the UI manager.
src/easytag.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/src/easytag.c b/src/easytag.c
index 2c4d0de..463be7f 100644
--- a/src/easytag.c
+++ b/src/easytag.c
@@ -2255,7 +2255,7 @@ Save_List_Of_Files (GList *etfilelist, gboolean force_saving_files)
File_Name *FileNameNew;
double fraction;
GtkAction *uiaction;
- GtkWidget *TBViewMode;
+ GtkWidget *toggle_radio;
GtkWidget *widget_focused;
GtkTreePath *currentPath = NULL;
@@ -2419,8 +2419,9 @@ Save_List_Of_Files (GList *etfilelist, gboolean force_saving_files)
Browser_List_Select_File_By_Etfile(etfile_save_position,TRUE);
/* Browser is on mode : Artist + Album list */
- TBViewMode = gtk_ui_manager_get_widget(UIManager, "/ToolBar/ViewModeToggle");
- if ( gtk_toggle_tool_button_get_active(GTK_TOGGLE_TOOL_BUTTON(TBViewMode)) )
+ toggle_radio = gtk_ui_manager_get_widget (UIManager,
+ "/ToolBar/ArtistViewMode");
+ if (gtk_toggle_tool_button_get_active (GTK_TOGGLE_TOOL_BUTTON (toggle_radio)))
Browser_Display_Tree_Or_Artist_Album_List();
/* To update state of command buttons */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]