[Xfce4-commits] [panel-plugins/xfce4-whiskermenu-plugin] 01/01: Continue redesign of confirmation dialog.

noreply at xfce.org noreply at xfce.org
Fri Jan 31 21:05:26 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 2561c7d54febe8adb7381470f49ca11ee4861ec4
Author: Graeme Gott <graeme at gottcode.org>
Date:   Fri Jan 31 09:31:04 2020 -0500

    Continue redesign of confirmation dialog.
---
 panel-plugin/command.cpp | 15 ++++++++++++++-
 1 file changed, 14 insertions(+), 1 deletion(-)

diff --git a/panel-plugin/command.cpp b/panel-plugin/command.cpp
index cdf61dc..21b38d8 100644
--- a/panel-plugin/command.cpp
+++ b/panel-plugin/command.cpp
@@ -240,9 +240,22 @@ bool Command::confirm()
 	gtk_window_set_skip_taskbar_hint(window, true);
 	gtk_window_stick(window);
 
+	GtkWidget* header = gtk_header_bar_new();
+	gtk_header_bar_set_has_subtitle(GTK_HEADER_BAR(header), false);
+	gtk_header_bar_set_show_close_button(GTK_HEADER_BAR(header), false);
+	gtk_widget_show(header);
+	gtk_window_set_titlebar(window, header);
+
+	// Add icon
+	GtkWidget* image = gtk_image_new_from_icon_name(m_icon, GTK_ICON_SIZE_DIALOG);
+	gtk_widget_show(image);
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
+	gtk_message_dialog_set_image(GTK_MESSAGE_DIALOG(dialog), image);
+G_GNUC_END_IGNORE_DEPRECATIONS
+
 	// 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_BUTTON);
+	image = gtk_image_new_from_icon_name(m_icon, GTK_ICON_SIZE_BUTTON);
 	gtk_button_set_image(GTK_BUTTON(button), image);
 	gtk_dialog_set_default_response(dialog, GTK_RESPONSE_ACCEPT);
 

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


More information about the Xfce4-commits mailing list