Commit 8cd83398 authored by Tim-Philipp Müller's avatar Tim-Philipp Müller
Browse files

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.
parent 3a2dc6f5
...@@ -37,7 +37,7 @@ window_closed (GtkWidget * widget, GdkEvent * event, gpointer user_data) ...@@ -37,7 +37,7 @@ window_closed (GtkWidget * widget, GdkEvent * event, gpointer user_data)
{ {
GstElement *pipeline = user_data; GstElement *pipeline = user_data;
gtk_widget_hide_all (widget); gtk_widget_hide (widget);
gst_element_set_state (pipeline, GST_STATE_NULL); gst_element_set_state (pipeline, GST_STATE_NULL);
gtk_main_quit (); gtk_main_quit ();
} }
......
...@@ -158,7 +158,7 @@ window_closed (GtkWidget * widget, GdkEvent * event, gpointer user_data) ...@@ -158,7 +158,7 @@ window_closed (GtkWidget * widget, GdkEvent * event, gpointer user_data)
GstElement *pipeline = user_data; GstElement *pipeline = user_data;
g_print ("stopping\n"); g_print ("stopping\n");
gtk_widget_hide_all (widget); gtk_widget_hide (widget);
gst_element_set_state (pipeline, GST_STATE_NULL); gst_element_set_state (pipeline, GST_STATE_NULL);
gtk_main_quit (); gtk_main_quit ();
} }
......
...@@ -144,7 +144,7 @@ window_closed (GtkWidget * widget, GdkEvent * event, gpointer user_data) ...@@ -144,7 +144,7 @@ window_closed (GtkWidget * widget, GdkEvent * event, gpointer user_data)
g_print ("stopping\n"); g_print ("stopping\n");
} }
anim_state.running = FALSE; anim_state.running = FALSE;
gtk_widget_hide_all (widget); gtk_widget_hide (widget);
gst_element_set_state (pipeline, GST_STATE_NULL); gst_element_set_state (pipeline, GST_STATE_NULL);
gtk_main_quit (); gtk_main_quit ();
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment