[Xfce4-commits] [xfce/libxfce4ui] 17/28: tests: Add xfce_dialog_confirm_close_tabs

noreply at xfce.org noreply at xfce.org
Thu Jan 9 23:32:00 CET 2020


This is an automated email from the git hooks/post-receive script.

o   c   h   o   s   i       p   u   s   h   e   d       a       c   o   m   m   i   t       t   o       b   r   a   n   c   h       m   a   s   t   e   r   
   in repository xfce/libxfce4ui.

commit f753b6a18bf04841fa8bb129dd0323ca40f986a9
Author: Simon Steinbeiss <simon.steinbeiss at elfenbeinturm.at>
Date:   Sat Jan 4 10:36:56 2020 +0100

    tests: Add xfce_dialog_confirm_close_tabs
---
 tests/test-ui.c | 15 +++++++++++++++
 1 file changed, 15 insertions(+)

diff --git a/tests/test-ui.c b/tests/test-ui.c
index 13b212b..7ca6196 100644
--- a/tests/test-ui.c
+++ b/tests/test-ui.c
@@ -135,6 +135,16 @@ show_xfce_dialog_confirm (GtkButton *button,
                        "No running instance of %s was found", G_LOG_DOMAIN);
 }
 
+static void
+show_xfce_dialog_confirm_close_tabs (GtkButton *button,
+                                     gpointer unused)
+{
+  gboolean checked = TRUE;
+  xfce_dialog_confirm_close_tabs (NULL,
+                                  3,
+                                  TRUE,
+                                  &checked);
+}
 
 static void
 close_window (GtkDialog *dialog,
@@ -267,6 +277,11 @@ create_main_window (void)
   gtk_grid_attach (GTK_GRID (grid), button, 0, 5, 1, 1);
   g_signal_connect (G_OBJECT (button), "clicked", G_CALLBACK (show_xfce_dialog_confirm), NULL);
 
+  /* xfce_dialog_confirm_close_tabs */
+  button = gtk_button_new_with_label ("xfce_dialog_confirm_close_tabs");
+  gtk_grid_attach (GTK_GRID (grid), button, 0, 6, 1, 1);
+  g_signal_connect (G_OBJECT (button), "clicked", G_CALLBACK (show_xfce_dialog_confirm_close_tabs), NULL);
+
   /* Online Help Dialogs */
   label = gtk_label_new ("Online Help Dialogs");
   gtk_grid_attach (GTK_GRID (grid), label, 1, 0, 1, 1);

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list