From 1fd1381905e2369a53ccfbb3679273fa758b9db6 Mon Sep 17 00:00:00 2001 From: "eric.beuque" Date: Thu, 19 Apr 2012 20:16:52 +0000 Subject: [PATCH] [FreetuxTV] Clean gtk warning --- src/freetuxtv-window-add-channels-group.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/freetuxtv-window-add-channels-group.c b/src/freetuxtv-window-add-channels-group.c index 73083d6..dafc3d8 100644 --- a/src/freetuxtv-window-add-channels-group.c +++ b/src/freetuxtv-window-add-channels-group.c @@ -343,6 +343,7 @@ on_buttonadd_clicked (GtkButton *button, gpointer user_data) GError* error = NULL; gchar *errmsg = NULL; + GtkWindow* pWindow; GtkWidget* widget; GtkProgressDialog* pProgressDialog = NULL; @@ -361,6 +362,8 @@ on_buttonadd_clicked (GtkButton *button, gpointer user_data) widget = (GtkWidget *) gtk_builder_get_object (builder, "notebook_dialogaddgroup"); + pWindow = gtk_builder_window_get_top_window (GTK_BUILDER_WINDOW(pWindowAddChannelsGroup)); + if(error == NULL){ int page; page = gtk_notebook_get_current_page (GTK_NOTEBOOK(widget)); @@ -394,7 +397,7 @@ on_buttonadd_clicked (GtkButton *button, gpointer user_data) // Initialize the dialog progress if(has_process){ - pProgressDialog = gtk_progress_dialog_new (GTK_WINDOW(pWindowAddChannelsGroup)); + pProgressDialog = gtk_progress_dialog_new (GTK_WINDOW(pWindow)); gtk_progress_dialog_set_title(pProgressDialog, _("Adding channels groups")); gtk_widget_show(GTK_WIDGET(pProgressDialog)); } @@ -542,7 +545,7 @@ on_buttonadd_clicked (GtkButton *button, gpointer user_data) } if(errmsg == NULL){ - pProgressDialog = gtk_progress_dialog_new (GTK_WINDOW(pWindowAddChannelsGroup)); + pProgressDialog = gtk_progress_dialog_new (GTK_WINDOW(pWindow)); gtk_progress_dialog_set_title(pProgressDialog, _("Adding channels groups")); gtk_widget_show(GTK_WIDGET(pProgressDialog));