[krb5-auth-dialog] main-window: Use hide-on-close property
- From: Guido Günther <guidog src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [krb5-auth-dialog] main-window: Use hide-on-close property
- Date: Thu, 20 Oct 2022 11:26:33 +0000 (UTC)
commit 1c5a5b3aa2f89b7fc2f28076b4f786793ec2074b
Author: Guido Günther <agx sigxcpu org>
Date: Mon Oct 17 10:21:04 2022 +0200
main-window: Use hide-on-close property
Much simpler.
src/ka-main-window.c | 8 --------
src/ka-main-window.h | 2 --
src/resources/ui/ka-main-window.ui | 2 +-
3 files changed, 1 insertion(+), 11 deletions(-)
---
diff --git a/src/ka-main-window.c b/src/ka-main-window.c
index 60be3fb..1ea70ee 100644
--- a/src/ka-main-window.c
+++ b/src/ka-main-window.c
@@ -87,7 +87,6 @@ on_row_deleted(GtkTreeModel *model,
}
-
GtkApplicationWindow *
ka_main_window_create (KaApplet *applet)
{
@@ -219,10 +218,3 @@ ka_main_window_show (KaApplet *applet)
gtk_widget_show (message_dialog);
}
}
-
-void
-ka_main_window_hide (void)
-{
- KA_DEBUG("Hiding main window");
- gtk_widget_hide (GTK_WIDGET(main_window));
-}
diff --git a/src/ka-main-window.h b/src/ka-main-window.h
index fba17ee..a3ceb28 100644
--- a/src/ka-main-window.h
+++ b/src/ka-main-window.h
@@ -35,7 +35,5 @@ enum ticket_columns {
GtkApplicationWindow *ka_main_window_create (KaApplet *applet);
void ka_main_window_show (KaApplet *applet);
-void ka_main_window_hide (void);
-
#endif
diff --git a/src/resources/ui/ka-main-window.ui b/src/resources/ui/ka-main-window.ui
index d68dbc8..75c3c58 100644
--- a/src/resources/ui/ka-main-window.ui
+++ b/src/resources/ui/ka-main-window.ui
@@ -50,7 +50,7 @@
<object class="GtkApplicationWindow" id="krb5_main_window">
<property name="title" translatable="yes">Service Tickets</property>
<property name="default-width">700</property>
- <signal name="delete-event" handler="ka_main_window_hide" swapped="no"/>
+ <property name="hide-on-close">True</property>
<child>
<object class="GtkStack" id="stack">
<property name="visible">True</property>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]