[Glade-devel] [patch, glade3] hide the keys dialog on delete_event
- From: pborelli katamail com (paolo borelli)
- Subject: [Glade-devel] [patch, glade3] hide the keys dialog on delete_event
- Date: 02 May 2003 16:17:05 +0200
--=-hToX0/tGTorjjs2aWCA6
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
Hi!
Thanks to Joaquin for having committed my patches.
Here is a minor patch for the new keys-dialog: on delete_event we want
to hide it instead of destroying it, thus we connect delete_event to
gtk_widget_hide_on_delete.
ciao
paolo
--=-hToX0/tGTorjjs2aWCA6
Content-Disposition: attachment; filename=keys_dlg_on_delete.patch
Content-Type: text/x-patch; name=keys_dlg_on_delete.patch; charset=UTF-8
Content-Transfer-Encoding: 7bit
diff -upr gnome2/glade3/ChangeLog glade3/ChangeLog
--- gnome2/glade3/ChangeLog 2003-05-02 09:08:41.000000000 +0200
+++ glade3/ChangeLog 2003-05-02 14:00:55.000000000 +0200
@@ -1,3 +1,8 @@
+2003-05-02 Paolo Borelli <pborelli katamail com>
+
+ * src/glade-menu-editor.c: on delete event hide the keys dialog
+ instad of destroying it
+
2003-05-01 Paolo Borelli <pborelli katamail com>
* src/glade-keys-dialog.[ch]: init of the keys dialog.
diff -upr gnome2/glade3/src/glade-menu-editor.c glade3/src/glade-menu-editor.c
--- gnome2/glade3/src/glade-menu-editor.c 2003-05-02 09:08:57.000000000 +0200
+++ glade3/src/glade-menu-editor.c 2003-05-02 10:46:15.000000000 +0200
@@ -1544,7 +1544,7 @@ on_state_button_toggled (GtkToggleButton
* Accelerator Keys Dialog.
**************************************************************************/
static void
-on_accel_key_button_clicked (GtkButton * button, gpointer user_data)
+on_accel_key_button_clicked (GtkButton *button, gpointer user_data)
{
GladeMenuEditor *menued;
gint response;
@@ -1553,6 +1553,8 @@ on_accel_key_button_clicked (GtkButton *
if (menued->keys_dialog == NULL) {
menued->keys_dialog = glade_keys_dialog_new ();
+ g_signal_connect (G_OBJECT (menued->keys_dialog), "delete_event",
+ G_CALLBACK (gtk_widget_hide_on_delete), NULL);
}
response = gtk_dialog_run (GTK_DIALOG (menued->keys_dialog));
--=-hToX0/tGTorjjs2aWCA6--
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]