diff options
author | Koen Kooi <koen@openembedded.org> | 2005-06-30 08:19:37 +0000 |
---|---|---|
committer | OpenEmbedded Project <openembedded-devel@lists.openembedded.org> | 2005-06-30 08:19:37 +0000 |
commit | c8e5702127e507e82e6f68a4b8c546803accea9d (patch) | |
tree | 00583491f40ecc640f2b28452af995e3a63a09d7 /packages/gpe-contacts/gpe-contacts-0.32/new-button-disabled-after-window-close.patch | |
parent | 87ec8ca4d2e2eb4d1c1e1e1a6b46a395d56805b9 (diff) |
import clean BK tree at cset 1.3670
Diffstat (limited to 'packages/gpe-contacts/gpe-contacts-0.32/new-button-disabled-after-window-close.patch')
-rw-r--r-- | packages/gpe-contacts/gpe-contacts-0.32/new-button-disabled-after-window-close.patch | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/packages/gpe-contacts/gpe-contacts-0.32/new-button-disabled-after-window-close.patch b/packages/gpe-contacts/gpe-contacts-0.32/new-button-disabled-after-window-close.patch index e69de29bb2..3c0f3a2658 100644 --- a/packages/gpe-contacts/gpe-contacts-0.32/new-button-disabled-after-window-close.patch +++ b/packages/gpe-contacts/gpe-contacts-0.32/new-button-disabled-after-window-close.patch @@ -0,0 +1,37 @@ +--- editing.orig 2004-10-17 00:11:23.000000000 +0200 ++++ editing.c 2004-10-18 23:52:14.000000000 +0200 +@@ -28,6 +28,7 @@ + #include "namedetail.h" + + void on_edit_cancel_clicked (GtkButton * button, gpointer user_data); ++void on_edit_window_closed_clicked (gpointer user_data); + void on_edit_save_clicked (GtkButton * button, gpointer user_data); + void on_edit_bt_image_clicked (GtkWidget *image, gpointer user_data); + void on_categories_clicked (GtkButton *button, gpointer user_data); +@@ -377,6 +378,11 @@ + G_CALLBACK (on_edit_cancel_clicked), edit); + g_signal_connect (G_OBJECT (edit_save), "clicked", + G_CALLBACK (on_edit_save_clicked), edit); ++ ++ /* Call the on_edit_window_closed_clicked function when the window is destroyed, ++ * otherwise the new button gets disabled */ ++ g_signal_connect (G_OBJECT (edit), "delete_event", ++ G_CALLBACK (on_edit_window_closed_clicked), edit); + + g_signal_connect (G_OBJECT (action_area), "key_press_event", + G_CALLBACK (action_area_key_press_event), notebook2); +@@ -1008,6 +1014,14 @@ + gtk_widget_destroy (GTK_WIDGET (edit)); + } + ++void ++on_edit_window_closed_clicked (gpointer user_data) ++{ ++ GtkWidget *edit = user_data; ++ update_display (); ++ gtk_widget_destroy (GTK_WIDGET (edit)); ++} ++ + void + tv_move_cursor (GtkTextView *textview, + GtkMovementStep arg1, |