[Xfce4-commits] [panel-plugins/xfce4-mpc-plugin] 01/02: set state in GtkSwitch callback.. something is wrong somewhere

noreply at xfce.org noreply at xfce.org
Tue Jun 28 21:51:53 CEST 2016


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

landry pushed a commit to branch master
in repository panel-plugins/xfce4-mpc-plugin.

commit ff469a89a2a5d719d9df39d60284cd9789d1e78f
Author: Landry Breuil <landry at xfce.org>
Date:   Tue Jun 28 21:51:39 2016 +0200

    set state in GtkSwitch callback.. something is wrong somewhere
---
 panel-plugin/xfce4-mpc-plugin.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/panel-plugin/xfce4-mpc-plugin.c b/panel-plugin/xfce4-mpc-plugin.c
index e13a015..35196d2 100644
--- a/panel-plugin/xfce4-mpc-plugin.c
+++ b/panel-plugin/xfce4-mpc-plugin.c
@@ -228,6 +228,7 @@ mpc_dialog_show_frame_toggled (GtkWidget *w, gboolean state, t_mpc_dialog *dialo
    size = xfce_panel_plugin_get_size(mpc->plugin);
    mpc->show_frame = state;
    gtk_frame_set_shadow_type (GTK_FRAME (mpc->frame), (mpc->show_frame) ? GTK_SHADOW_IN : GTK_SHADOW_NONE);
+   gtk_switch_set_state(GTK_SWITCH(w), state);
    mpc_set_size(mpc->plugin, size, mpc);
 }
 

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


More information about the Xfce4-commits mailing list