[Xfce4-commits] [xfce/libxfce4ui] 22/28: tests: Improve UI
noreply at xfce.org
noreply at xfce.org
Thu Jan 9 23:32:05 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 2ddcb99dbe15110a5285d0ceba1b4d8919fd7c41
Author: Simon Steinbeiss <simon.steinbeiss at elfenbeinturm.at>
Date: Sat Jan 4 21:42:25 2020 +0100
tests: Improve UI
Using the xfce mixed button led to underscores being interpreted as
mnemonics, but we want them to show the API.
---
tests/test-ui.c | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/tests/test-ui.c b/tests/test-ui.c
index 7ca6196..2c6dd9f 100644
--- a/tests/test-ui.c
+++ b/tests/test-ui.c
@@ -229,7 +229,7 @@ create_main_window (void)
/* Create main window */
window = xfce_titled_dialog_new_with_mixed_buttons (APP_NAME, NULL,
GTK_DIALOG_DESTROY_WITH_PARENT,
- "window-close-symbolic", "Close", GTK_RESPONSE_CLOSE,
+ "window-close-symbolic", "_Close", GTK_RESPONSE_CLOSE,
NULL);
@@ -258,17 +258,17 @@ create_main_window (void)
g_signal_connect (G_OBJECT (button), "clicked", G_CALLBACK (show_xfce_message_dialog), NULL);
/* xfce_dialog_show_info */
- button = xfce_gtk_button_new_mixed ("dialog-information", "xfce_dialog_show_info");
+ button = gtk_button_new_with_label ("xfce_dialog_show_info");
gtk_grid_attach (GTK_GRID (grid), button, 0, 2, 1, 1);
g_signal_connect (G_OBJECT (button), "clicked", G_CALLBACK (show_xfce_dialog_show_info), NULL);
/* xfce_dialog_show_warning */
- button = xfce_gtk_button_new_mixed ("dialog-warning", "xfce_dialog_show_warning");
+ button = gtk_button_new_with_label ("xfce_dialog_show_warning");
gtk_grid_attach (GTK_GRID (grid), button, 0, 3, 1, 1);
g_signal_connect (G_OBJECT (button), "clicked", G_CALLBACK (show_xfce_dialog_show_warning), NULL);
/* xfce_dialog_show_error */
- button = xfce_gtk_button_new_mixed ("dialog-error", "xfce_dialog_show_error");
+ button = gtk_button_new_with_label ("xfce_dialog_show_error");
gtk_grid_attach (GTK_GRID (grid), button, 0, 4, 1, 1);
g_signal_connect (G_OBJECT (button), "clicked", G_CALLBACK (show_xfce_dialog_show_error), NULL);
@@ -287,12 +287,12 @@ create_main_window (void)
gtk_grid_attach (GTK_GRID (grid), label, 1, 0, 1, 1);
/* xfce_dialog_show_help */
- button = xfce_gtk_button_new_mixed ("help-browser", "xfce_dialog_show_help");
+ button = gtk_button_new_with_label ("xfce_dialog_show_help");
gtk_grid_attach (GTK_GRID (grid), button, 1, 1, 1, 1);
g_signal_connect (G_OBJECT (button), "clicked", G_CALLBACK (show_xfce_dialog_show_help), NULL);
/* xfce_dialog_show_help_with_version */
- button = xfce_gtk_button_new_mixed ("help-browser", "xfce_dialog_show_help_with_version");
+ button = gtk_button_new_with_label ("xfce_dialog_show_help_with_version");
gtk_grid_attach (GTK_GRID (grid), button, 1, 2, 1, 1);
g_signal_connect (G_OBJECT (button), "clicked", G_CALLBACK (show_xfce_dialog_show_help_with_version), NULL);
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list