Skip to content

Commit

Permalink
[FreetuxTV] Clean gtk warning
Browse files Browse the repository at this point in the history
  • Loading branch information
eric.beuque committed Apr 19, 2012
1 parent 442b964 commit 1fd1381
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/freetuxtv-window-add-channels-group.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -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));
Expand Down Expand Up @@ -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));
}
Expand Down Expand Up @@ -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));

Expand Down

0 comments on commit 1fd1381

Please sign in to comment.