[Xfce4-commits] [panel-plugins/xfce4-whiskermenu-plugin] 11/41: Replace gtk_button_set_focus_on_click().

noreply at xfce.org noreply at xfce.org
Sat Aug 20 18:32:25 CEST 2016


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

gottcode pushed a commit to branch master
in repository panel-plugins/xfce4-whiskermenu-plugin.

commit c896212e7e21d34d62a2b6a44845dae751c86b19
Author: Graeme Gott <graeme at gottcode.org>
Date:   Mon Aug 8 10:07:32 2016 -0400

    Replace gtk_button_set_focus_on_click().
---
 panel-plugin/plugin.cpp         | 2 +-
 panel-plugin/section-button.cpp | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/panel-plugin/plugin.cpp b/panel-plugin/plugin.cpp
index d3cb41b..0a9d592 100644
--- a/panel-plugin/plugin.cpp
+++ b/panel-plugin/plugin.cpp
@@ -122,7 +122,7 @@ Plugin::Plugin(XfcePanelPlugin* plugin) :
 	m_button = xfce_panel_create_toggle_button();
 	gtk_widget_set_name(m_button, "whiskermenu-button");
 	gtk_button_set_relief(GTK_BUTTON(m_button), GTK_RELIEF_NONE);
-	gtk_button_set_focus_on_click(GTK_BUTTON(m_button), false);
+	gtk_widget_set_focus_on_click(GTK_WIDGET(m_button), false);
 	g_signal_connect_slot(m_button, "toggled", &Plugin::button_toggled, this);
 	gtk_widget_show(m_button);
 
diff --git a/panel-plugin/section-button.cpp b/panel-plugin/section-button.cpp
index 9bc67fc..6c9c28e 100644
--- a/panel-plugin/section-button.cpp
+++ b/panel-plugin/section-button.cpp
@@ -51,7 +51,7 @@ SectionButton::SectionButton(const gchar* icon, const gchar* text) :
 	m_button = GTK_RADIO_BUTTON(gtk_radio_button_new(NULL));
 	gtk_toggle_button_set_mode(GTK_TOGGLE_BUTTON(m_button), false);
 	gtk_button_set_relief(GTK_BUTTON(m_button), GTK_RELIEF_NONE);
-	gtk_button_set_focus_on_click(GTK_BUTTON(m_button), false);
+	gtk_widget_set_focus_on_click(GTK_WIDGET(m_button), false);
 	g_signal_connect(m_button, "enter-notify-event", G_CALLBACK(on_enter_notify_event), GTK_TOGGLE_BUTTON(m_button));
 
 	GtkBox* box = GTK_BOX(gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 4));

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


More information about the Xfce4-commits mailing list