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 de578c4f0d17eb3b1cce0ec495db63b2728fcf8b
Author: Graeme Gott <gra...@gottcode.org>
Date:   Sun Feb 2 05:25:20 2020 -0500

    Always use GtkImage.
---
 panel-plugin/configuration-dialog.cpp | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/panel-plugin/configuration-dialog.cpp 
b/panel-plugin/configuration-dialog.cpp
index e3a29ac..fcb1866 100644
--- a/panel-plugin/configuration-dialog.cpp
+++ b/panel-plugin/configuration-dialog.cpp
@@ -311,7 +311,7 @@ void ConfigurationDialog::choose_icon()
        if (gtk_dialog_run(GTK_DIALOG (chooser)) == GTK_RESPONSE_ACCEPT)
        {
                gchar* icon = 
exo_icon_chooser_dialog_get_icon(EXO_ICON_CHOOSER_DIALOG(chooser));
-               xfce_panel_image_set_from_source(XFCE_PANEL_IMAGE(m_icon), 
icon);
+               gtk_image_set_from_icon_name(GTK_IMAGE(m_icon), icon, 
GTK_ICON_SIZE_DIALOG);
                m_plugin->set_button_icon_name(icon);
                g_free(icon);
        }
@@ -843,8 +843,7 @@ GtkWidget* ConfigurationDialog::init_panel_button_tab()
        g_signal_connect_slot<GtkButton*>(m_icon_button, "clicked", 
&ConfigurationDialog::choose_icon, this);
        gtk_grid_attach(page, m_icon_button, 1, 2, 1, 1);
 
-       m_icon = 
xfce_panel_image_new_from_source(m_plugin->get_button_icon_name().c_str());
-       xfce_panel_image_set_size(XFCE_PANEL_IMAGE(m_icon), 48);
+       m_icon = 
gtk_image_new_from_icon_name(m_plugin->get_button_icon_name().c_str(), 
GTK_ICON_SIZE_DIALOG);
        gtk_container_add(GTK_CONTAINER(m_icon_button), m_icon);
 
        m_button_single_row = gtk_check_button_new_with_mnemonic(_("Use a 
single _panel row"));

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.
_______________________________________________
Xfce4-commits mailing list
Xfce4-commits@xfce.org
https://mail.xfce.org/mailman/listinfo/xfce4-commits

Reply via email to