mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-20 00:31:13 +00:00
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:
parent
3a2dc6f518
commit
8cd8339893
3 changed files with 3 additions and 3 deletions
|
@ -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)
|
||||||
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)
|
||||||
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 ();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue