[Xfce4-commits] <xfce4-notes-plugin:master> vala: Cast Gtk.Widget to Gtk.Button

Mike Massonnet noreply at xfce.org
Mon May 13 20:14:20 CEST 2013


Updating branch refs/heads/master
         to 7a6ca567716144389ab2cdcbabca6203c1c0e707 (commit)
       from 88d9564dc846d2cea8704659028550c4ea1f56d0 (commit)

commit 7a6ca567716144389ab2cdcbabca6203c1c0e707
Author: Mike Massonnet <mmassonnet at gmail.com>
Date:   Wed Mar 13 10:16:06 2013 +0100

    vala: Cast Gtk.Widget to Gtk.Button

 src/main-panel-plugin.vala |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/main-panel-plugin.vala b/src/main-panel-plugin.vala
index a4c8642..46fbbbc 100644
--- a/src/main-panel-plugin.vala
+++ b/src/main-panel-plugin.vala
@@ -36,7 +36,7 @@ public class NotesPlugin : Xfce.PanelPlugin {
 		Xfce.textdomain (Config.GETTEXT_PACKAGE, Config.PACKAGE_LOCALE_DIR);
 		application = new Xnp.Application (save_location (true));
 
-		button = Xfce.panel_create_button ();
+		button = (Gtk.Button)Xfce.panel_create_button ();
 		image = new Xfce.PanelImage.from_source ("xfce4-notes-plugin");
 		button.add (image);
 		button.clicked.connect (() => { application.show_hide_notes (); });


More information about the Xfce4-commits mailing list