]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
libpanelapplet-2.0: Add PanelAppletOrient and some missing methods
authorEvan Nemerson <evan@polussystems.com>
Sun, 2 Aug 2009 22:21:42 +0000 (15:21 -0700)
committerJürg Billeter <j@bitron.ch>
Tue, 15 Sep 2009 19:38:42 +0000 (21:38 +0200)
Fixes bug 590544.

vapi/libpanelapplet-2.0.vapi

index e80b6f9541c6380a336a2534492920b1d361864f..c8a0407dbbabc8ed91b07c34849fd212ff18d0a8 100644 (file)
@@ -25,12 +25,20 @@ namespace Panel {
        public class Applet : Gtk.EventBox {
                [CCode (has_construct_function = false)]
                public Applet ();
+               public AppletFlags get_flags ();
+               public bool get_locked_down ();
+               public AppletOrient get_orient ();
                public string get_preferences_key ();
+               public uint get_size ();
+               public void request_focus (uint32 timestamp);
                public void set_flags (AppletFlags flags);
                public static int factory_main (string iid, GLib.Type applet_type, AppletFactoryCallback callback);
                public void set_background_widget (Gtk.Widget widget);
                public void setup_menu (string xml, [CCode (array_length = false)] BonoboUI.Verb[] verb_list, void* data);
                public signal void change_background (AppletBackgroundType type, Gdk.Color? color, Gdk.Pixmap? pixmap);
+               public signal void change_orient (uint orient);
+               public signal void change_size (int size);
+               public signal void move_focus_out_of_applet (Gtk.DirectionType direction);
        }
 
        [CCode (cprefix = "PANEL_")]
@@ -48,6 +56,14 @@ namespace Panel {
                HAS_HANDLE
        }
 
+       [CCode (cprefix = "PANEL_APPLET_ORIENT_")]
+       public enum AppletOrient {
+               UP,
+               DOWN,
+               LEFT,
+               RIGHT
+       }
+
        public delegate bool AppletFactoryCallback (Applet applet, string iid);
 }