[Xfce4-commits] [panel-plugins/xfce4-whiskermenu-plugin] 01/01: Redesign session confirmation dialogs.
noreply at xfce.org
noreply at xfce.org
Tue Jan 28 15:29:04 CET 2020
This is an automated email from the git hooks/post-receive script.
g o t t c o d e 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 panel-plugins/xfce4-whiskermenu-plugin.
commit 416e74d7cd8f9cad4bf169b93ecb2f8634991d01
Author: Graeme Gott <graeme at gottcode.org>
Date: Tue Jan 28 06:11:40 2020 -0500
Redesign session confirmation dialogs.
---
panel-plugin/command.cpp | 17 ++++-------------
1 file changed, 4 insertions(+), 13 deletions(-)
diff --git a/panel-plugin/command.cpp b/panel-plugin/command.cpp
index 65ecaf5..cdf61dc 100644
--- a/panel-plugin/command.cpp
+++ b/panel-plugin/command.cpp
@@ -234,27 +234,18 @@ bool Command::confirm()
GtkDialog* dialog = GTK_DIALOG(m_timeout_details.dialog);
GtkWindow* window = GTK_WINDOW(m_timeout_details.dialog);
+ gtk_window_set_icon_name(window, m_icon);
+ gtk_window_set_deletable(window, false);
gtk_window_set_keep_above(window, true);
- gtk_window_stick(window);
gtk_window_set_skip_taskbar_hint(window, true);
- gtk_window_set_title(window, m_text);
+ gtk_window_stick(window);
// Create accept button
GtkWidget* button = gtk_dialog_add_button(dialog, m_mnemonic, GTK_RESPONSE_ACCEPT);
- GtkWidget* image = gtk_image_new_from_icon_name(m_icon, GTK_ICON_SIZE_DIALOG);
+ GtkWidget* image = gtk_image_new_from_icon_name(m_icon, GTK_ICON_SIZE_BUTTON);
gtk_button_set_image(GTK_BUTTON(button), image);
- gtk_button_set_image_position(GTK_BUTTON(button), GTK_POS_TOP);
gtk_dialog_set_default_response(dialog, GTK_RESPONSE_ACCEPT);
- // Add icon to cancel button
- button = gtk_dialog_get_widget_for_response(dialog, GTK_RESPONSE_CANCEL);
- if (GTK_IS_BUTTON(button))
- {
- image = gtk_image_new_from_icon_name("gtk-cancel", GTK_ICON_SIZE_DIALOG);
- gtk_button_set_image(GTK_BUTTON(button), image);
- gtk_button_set_image_position(GTK_BUTTON(button), GTK_POS_TOP);
- }
-
// Run dialog
m_timeout_details.time_left = 60;
guint timeout_id = g_timeout_add(1000, &Command::confirm_countdown, &m_timeout_details);
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list