tests: don't use deprecated gtk_widget_hide_all()

gtk_widget_hide_all() has been deprecated in gtk+ 2.x and
removed in 2.9x master. Just use gtk_widget_hide() instead.
This commit is contained in:
Tim-Philipp Müller 2010-10-21 13:38:01 +01:00
parent 3a2dc6f518
commit 8cd8339893
3 changed files with 3 additions and 3 deletions

View file

@ -37,7 +37,7 @@ window_closed (GtkWidget * widget, GdkEvent * event, gpointer user_data)
{
GstElement *pipeline = user_data;
gtk_widget_hide_all (widget);
gtk_widget_hide (widget);
gst_element_set_state (pipeline, GST_STATE_NULL);
gtk_main_quit ();
}

View file

@ -158,7 +158,7 @@ window_closed (GtkWidget * widget, GdkEvent * event, gpointer user_data)
GstElement *pipeline = user_data;
g_print ("stopping\n");
gtk_widget_hide_all (widget);
gtk_widget_hide (widget);
gst_element_set_state (pipeline, GST_STATE_NULL);
gtk_main_quit ();
}

View file

@ -144,7 +144,7 @@ window_closed (GtkWidget * widget, GdkEvent * event, gpointer user_data)
g_print ("stopping\n");
}
anim_state.running = FALSE;
gtk_widget_hide_all (widget);
gtk_widget_hide (widget);
gst_element_set_state (pipeline, GST_STATE_NULL);
gtk_main_quit ();
}