[Xfce4-commits] [panel-plugins/xfce4-whiskermenu-plugin] 02/02: Replace deprecated dialog.
noreply at xfce.org
noreply at xfce.org
Fri Jan 24 18:50:11 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 32958a55dff99fd0c28c4545246530c287f9d600
Author: Graeme Gott <graeme at gottcode.org>
Date: Fri Jan 24 12:31:29 2020 -0500
Replace deprecated dialog.
---
panel-plugin/configuration-dialog.cpp | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/panel-plugin/configuration-dialog.cpp b/panel-plugin/configuration-dialog.cpp
index 64f3a14..31f50e6 100644
--- a/panel-plugin/configuration-dialog.cpp
+++ b/panel-plugin/configuration-dialog.cpp
@@ -83,12 +83,21 @@ ConfigurationDialog::ConfigurationDialog(Plugin* plugin) :
{
window = GTK_WINDOW(toplevel);
}
+#if LIBXFCE4PANEL_CHECK_VERSION(4,13,0)
+ m_window = xfce_titled_dialog_new_with_mixed_buttons(_("Whisker Menu"),
+ window,
+ GtkDialogFlags(0),
+ "help-browser", _("_Help"), GTK_RESPONSE_HELP,
+ "window-close", _("_Close"), GTK_RESPONSE_CLOSE,
+ NULL);
+#else
m_window = xfce_titled_dialog_new_with_buttons(_("Whisker Menu"),
window,
GtkDialogFlags(0),
_("_Help"), GTK_RESPONSE_HELP,
_("_Close"), GTK_RESPONSE_CLOSE,
NULL);
+#endif
gtk_window_set_icon_name(GTK_WINDOW(m_window), "document-properties");
gtk_window_set_position(GTK_WINDOW(m_window), GTK_WIN_POS_CENTER);
g_signal_connect_slot(m_window, "response", &ConfigurationDialog::response, this);
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list