mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-11 11:20:12 +00:00
testtext: Use gtk_widget_destroy() instead gtk_object_destroy()
This commit is contained in:
parent
b072ea220c
commit
e141bd3287
@ -193,14 +193,14 @@ static void
|
|||||||
msgbox_yes_cb (GtkWidget *widget, gboolean *result)
|
msgbox_yes_cb (GtkWidget *widget, gboolean *result)
|
||||||
{
|
{
|
||||||
*result = 0;
|
*result = 0;
|
||||||
gtk_object_destroy (GTK_OBJECT (gtk_widget_get_toplevel (widget)));
|
gtk_widget_destroy (gtk_widget_get_toplevel (widget));
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
msgbox_no_cb (GtkWidget *widget, gboolean *result)
|
msgbox_no_cb (GtkWidget *widget, gboolean *result)
|
||||||
{
|
{
|
||||||
*result = 1;
|
*result = 1;
|
||||||
gtk_object_destroy (GTK_OBJECT (gtk_widget_get_toplevel (widget)));
|
gtk_widget_destroy (gtk_widget_get_toplevel (widget));
|
||||||
}
|
}
|
||||||
|
|
||||||
static gboolean
|
static gboolean
|
||||||
@ -209,7 +209,7 @@ msgbox_key_press_cb (GtkWidget *widget, GdkEventKey *event, gpointer data)
|
|||||||
if (event->keyval == GDK_Escape)
|
if (event->keyval == GDK_Escape)
|
||||||
{
|
{
|
||||||
g_signal_stop_emission_by_name (widget, "key_press_event");
|
g_signal_stop_emission_by_name (widget, "key_press_event");
|
||||||
gtk_object_destroy (GTK_OBJECT (widget));
|
gtk_widget_destroy (widget);
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user