Connect the destroy signal in the example instead of the ui file. Also set
* demos/gtk-demo/builder.c (do_builder): Connect the destroy signal in the example instead of the ui file. Also set the screen and title of the window. (#451345, Thomas Rydzynski) svn path=/trunk/; revision=18251
This commit is contained in:
@ -1,3 +1,10 @@
|
|||||||
|
2007-06-26 Johan Dahlin <jdahlin@async.com.br>
|
||||||
|
|
||||||
|
* demos/gtk-demo/builder.c (do_builder): Connect the
|
||||||
|
destroy signal in the example instead of the ui file.
|
||||||
|
Also set the screen and title of the window.
|
||||||
|
(#451345, Thomas Rydzynski)
|
||||||
|
|
||||||
2007-06-26 Richard Hult <richard@imendio.com>
|
2007-06-26 Richard Hult <richard@imendio.com>
|
||||||
|
|
||||||
* gtk/gtkbuilder.c: (gtk_builder_value_from_string_type): Fix a
|
* gtk/gtkbuilder.c: (gtk_builder_value_from_string_type): Fix a
|
||||||
|
@ -43,6 +43,10 @@ do_builder (GtkWidget *do_widget)
|
|||||||
}
|
}
|
||||||
gtk_builder_connect_signals (builder, NULL);
|
gtk_builder_connect_signals (builder, NULL);
|
||||||
window = GTK_WIDGET (gtk_builder_get_object (builder, "window1"));
|
window = GTK_WIDGET (gtk_builder_get_object (builder, "window1"));
|
||||||
|
gtk_window_set_screen (GTK_WINDOW (window),
|
||||||
|
gtk_widget_get_screen (do_widget));
|
||||||
|
g_signal_connect (window, "destroy",
|
||||||
|
G_CALLBACK (gtk_widget_destroyed), &window);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!GTK_WIDGET_VISIBLE (window))
|
if (!GTK_WIDGET_VISIBLE (window))
|
||||||
|
@ -141,7 +141,7 @@
|
|||||||
<object class="GtkWindow" id="window1">
|
<object class="GtkWindow" id="window1">
|
||||||
<property name="default_height">250</property>
|
<property name="default_height">250</property>
|
||||||
<property name="default_width">440</property>
|
<property name="default_width">440</property>
|
||||||
<signal name="destroy" handler="gtk_widget_destroyed"/>
|
<property name="title">builder</property>
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkVBox" id="vbox1">
|
<object class="GtkVBox" id="vbox1">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
|
Reference in New Issue
Block a user