use predefined GTK constants for reponse ids
2007-05-13 Jens Granseuer <jensgr@gmx.net> * appearance-desktop.c: (appearance_window_response): * appearance.glade: use predefined GTK constants for reponse ids svn path=/trunk/; revision=7611
This commit is contained in:
parent
a0e3a8b48d
commit
2e4c1f2e64
3 changed files with 9 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
|||
2007-05-13 Jens Granseuer <jensgr@gmx.net>
|
||||
|
||||
* appearance-desktop.c: (appearance_window_response):
|
||||
* appearance.glade: use predefined GTK constants for reponse ids
|
||||
|
||||
2007-05-13 Thomas Wood <thos@gnome.org>
|
||||
|
||||
* appearance-themes.c: (themes_init), (theme_changed_func): Use asynchronous
|
||||
|
|
|
@ -684,7 +684,8 @@ appearance_window_response (GtkWidget *widget,
|
|||
gint response_id,
|
||||
AppearanceData *data)
|
||||
{
|
||||
if (response_id == 0 || response_id == GTK_RESPONSE_DELETE_EVENT) /* 0 = Close */
|
||||
if (response_id == GTK_RESPONSE_CLOSE ||
|
||||
response_id == GTK_RESPONSE_DELETE_EVENT)
|
||||
{
|
||||
gnome_wp_xml_save_list (data);
|
||||
g_object_unref (data->wp_thumbs);
|
||||
|
|
|
@ -1772,7 +1772,7 @@ Text only</property>
|
|||
<property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
|
||||
<property name="label" translatable="yes">gtk-help</property>
|
||||
<property name="use_stock">True</property>
|
||||
<property name="response_id">1</property>
|
||||
<property name="response_id">-11</property>
|
||||
</widget>
|
||||
</child>
|
||||
<child>
|
||||
|
@ -1783,6 +1783,7 @@ Text only</property>
|
|||
<property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
|
||||
<property name="label" translatable="yes">gtk-close</property>
|
||||
<property name="use_stock">True</property>
|
||||
<property name="response_id">-7</property>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="position">1</property>
|
||||
|
|
Loading…
Add table
Reference in a new issue