aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Hua <william.hua@canonical.com>2013-06-04 09:48:52 -0400
committerWilliam Hua <william.hua@canonical.com>2013-06-04 09:48:52 -0400
commitaabf5155c14bc9a7c757d591c3a2192e8370b2b8 (patch)
tree121d346df2eabb85023bd760896e30dae34df349
parent7ad8e2e1bbc3d934d672dda941992454944df087 (diff)
downloadayatana-indicator-keyboard-aabf5155c14bc9a7c757d591c3a2192e8370b2b8.tar.gz
ayatana-indicator-keyboard-aabf5155c14bc9a7c757d591c3a2192e8370b2b8.tar.bz2
ayatana-indicator-keyboard-aabf5155c14bc9a7c757d591c3a2192e8370b2b8.zip
Update gnome-desktop-3.0.vapi.
-rw-r--r--deps/gnome-desktop-3.0.vapi285
-rw-r--r--lib/Makefile.am1
2 files changed, 108 insertions, 178 deletions
diff --git a/deps/gnome-desktop-3.0.vapi b/deps/gnome-desktop-3.0.vapi
index f1b6e598..80f38b35 100644
--- a/deps/gnome-desktop-3.0.vapi
+++ b/deps/gnome-desktop-3.0.vapi
@@ -1,61 +1,43 @@
/* gnome-desktop-3.0.vapi generated by vapigen, do not modify. */
-[CCode (cprefix = "Gnome", gir_namespace = "GnomeDesktop", gir_version = "3.0", lower_case_cprefix = "gnome__")]
+[CCode (cprefix = "Gnome", gir_namespace = "GnomeDesktop", gir_version = "3.0", lower_case_cprefix = "gnome_")]
namespace Gnome {
- [CCode (cheader_filename = "libgnome-desktop/gnome-bg-crossfade.h,libgnome-desktop/gnome-bg.h,libgnome-desktop/gnome-desktop-thumbnail.h,libgnome-desktop/gnome-desktop-utils.h,libgnome-desktop/gnome-pnp-ids.h,libgnome-desktop/gnome-rr-config.h,libgnome-desktop/gnome-rr-labeler.h,libgnome-desktop/gnome-rr.h,libgnome-desktop/gnome-wall-clock.h,libgnome-desktop/gnome-xkb-info.h", type_id = "gnome_bg_get_type ()")]
+ [CCode (cheader_filename = "libgnome-desktop/gnome-bg-crossfade.h,libgnome-desktop/gnome-bg-slide-show.h,libgnome-desktop/gnome-bg.h,libgnome-desktop/gnome-desktop-thumbnail.h,libgnome-desktop/gnome-idle-monitor.h,libgnome-desktop/gnome-languages.h,libgnome-desktop/gnome-pnp-ids.h,libgnome-desktop/gnome-rr-config.h,libgnome-desktop/gnome-rr.h,libgnome-desktop/gnome-wall-clock.h,libgnome-desktop/gnome-xkb-info.h", type_id = "gnome_bg_get_type ()")]
public class BG : GLib.Object {
- [CCode (cname = "gnome_bg_new", has_construct_function = false)]
+ [CCode (has_construct_function = false)]
public BG ();
- [CCode (cname = "gnome_bg_changes_with_time")]
public bool changes_with_time ();
- [CCode (cname = "gnome_bg_create_frame_thumbnail")]
public Gdk.Pixbuf create_frame_thumbnail (Gnome.DesktopThumbnailFactory factory, Gdk.Screen screen, int dest_width, int dest_height, int frame_num);
- [CCode (cname = "gnome_bg_create_surface")]
public Cairo.Surface create_surface (Gdk.Window window, int width, int height, bool root);
- [CCode (cname = "gnome_bg_create_thumbnail")]
public Gdk.Pixbuf create_thumbnail (Gnome.DesktopThumbnailFactory factory, Gdk.Screen screen, int dest_width, int dest_height);
- [CCode (cname = "gnome_bg_draw")]
public void draw (Gdk.Pixbuf dest, Gdk.Screen screen, bool is_root);
- [CCode (cname = "gnome_bg_get_draw_background")]
+ public void get_color (GDesktop.BackgroundShading type, Gdk.Color primary, Gdk.Color secondary);
public bool get_draw_background ();
- [CCode (cname = "gnome_bg_get_filename")]
public unowned string get_filename ();
- [CCode (cname = "gnome_bg_get_image_size")]
public bool get_image_size (Gnome.DesktopThumbnailFactory factory, int best_width, int best_height, int width, int height);
- [CCode (cname = "gnome_bg_get_surface_from_root")]
+ public GDesktop.BackgroundStyle get_placement ();
public static Cairo.Surface get_surface_from_root (Gdk.Screen screen);
- [CCode (cname = "gnome_bg_has_multiple_sizes")]
public bool has_multiple_sizes ();
- [CCode (cname = "gnome_bg_is_dark")]
public bool is_dark (int dest_width, int dest_height);
- [CCode (cname = "gnome_bg_load_from_preferences")]
public void load_from_preferences (GLib.Settings settings);
- [CCode (cname = "gnome_bg_save_to_preferences")]
public void save_to_preferences (GLib.Settings settings);
- [CCode (cname = "gnome_bg_set_draw_background")]
+ public void set_color (GDesktop.BackgroundShading type, Gdk.Color primary, Gdk.Color secondary);
public void set_draw_background (bool draw_background);
- [CCode (cname = "gnome_bg_set_filename")]
public void set_filename (string filename);
- [CCode (cname = "gnome_bg_set_surface_as_root")]
+ public void set_placement (GDesktop.BackgroundStyle placement);
public static void set_surface_as_root (Gdk.Screen screen, Cairo.Surface surface);
- [CCode (cname = "gnome_bg_set_surface_as_root_with_crossfade")]
public static Gnome.BGCrossfade set_surface_as_root_with_crossfade (Gdk.Screen screen, Cairo.Surface surface);
public signal void changed ();
public signal void transitioned ();
}
- [CCode (cheader_filename = "libgnome-desktop/gnome-bg-crossfade.h,libgnome-desktop/gnome-bg.h,libgnome-desktop/gnome-desktop-thumbnail.h,libgnome-desktop/gnome-desktop-utils.h,libgnome-desktop/gnome-pnp-ids.h,libgnome-desktop/gnome-rr-config.h,libgnome-desktop/gnome-rr-labeler.h,libgnome-desktop/gnome-rr.h,libgnome-desktop/gnome-wall-clock.h,libgnome-desktop/gnome-xkb-info.h", type_id = "gnome_bg_crossfade_get_type ()")]
+ [CCode (cheader_filename = "libgnome-desktop/gnome-bg-crossfade.h,libgnome-desktop/gnome-bg-slide-show.h,libgnome-desktop/gnome-bg.h,libgnome-desktop/gnome-desktop-thumbnail.h,libgnome-desktop/gnome-idle-monitor.h,libgnome-desktop/gnome-languages.h,libgnome-desktop/gnome-pnp-ids.h,libgnome-desktop/gnome-rr-config.h,libgnome-desktop/gnome-rr.h,libgnome-desktop/gnome-wall-clock.h,libgnome-desktop/gnome-xkb-info.h", type_id = "gnome_bg_crossfade_get_type ()")]
public class BGCrossfade : GLib.Object {
- [CCode (cname = "gnome_bg_crossfade_new", has_construct_function = false)]
+ [CCode (has_construct_function = false)]
public BGCrossfade (int width, int height);
- [CCode (cname = "gnome_bg_crossfade_is_started")]
public bool is_started ();
- [CCode (cname = "gnome_bg_crossfade_set_end_surface")]
public bool set_end_surface (Cairo.Surface surface);
- [CCode (cname = "gnome_bg_crossfade_set_start_surface")]
public bool set_start_surface (Cairo.Surface surface);
- [CCode (cname = "gnome_bg_crossfade_start")]
public void start (Gdk.Window window);
- [CCode (cname = "gnome_bg_crossfade_stop")]
public void stop ();
[NoAccessorMethod]
public int height { get; construct; }
@@ -63,244 +45,176 @@ namespace Gnome {
public int width { get; construct; }
public virtual signal void finished (GLib.Object window);
}
- [CCode (cheader_filename = "libgnome-desktop/gnome-bg-crossfade.h,libgnome-desktop/gnome-bg.h,libgnome-desktop/gnome-desktop-thumbnail.h,libgnome-desktop/gnome-desktop-utils.h,libgnome-desktop/gnome-pnp-ids.h,libgnome-desktop/gnome-rr-config.h,libgnome-desktop/gnome-rr-labeler.h,libgnome-desktop/gnome-rr.h,libgnome-desktop/gnome-wall-clock.h,libgnome-desktop/gnome-xkb-info.h", type_id = "gnome_desktop_thumbnail_factory_get_type ()")]
+ [CCode (cheader_filename = "libgnome-desktop/gnome-bg-crossfade.h,libgnome-desktop/gnome-bg-slide-show.h,libgnome-desktop/gnome-bg.h,libgnome-desktop/gnome-desktop-thumbnail.h,libgnome-desktop/gnome-idle-monitor.h,libgnome-desktop/gnome-languages.h,libgnome-desktop/gnome-pnp-ids.h,libgnome-desktop/gnome-rr-config.h,libgnome-desktop/gnome-rr.h,libgnome-desktop/gnome-wall-clock.h,libgnome-desktop/gnome-xkb-info.h", type_id = "gnome_bg_slide_show_get_type ()")]
+ public class BGSlideShow : GLib.Object {
+ [CCode (has_construct_function = false)]
+ public BGSlideShow (string filename);
+ public void get_current_slide (int width, int height, out double progress, out double duration, out bool is_fixed, out unowned string file1, out unowned string file2);
+ public bool get_has_multiple_sizes ();
+ public int get_num_slides ();
+ public bool get_slide (int frame_number, int width, int height, double progress, out double duration, out bool is_fixed, out unowned string file1, out unowned string file2);
+ public double get_start_time ();
+ public double get_total_duration ();
+ public bool load () throws GLib.Error;
+ public async void load_async (GLib.Cancellable? cancellable);
+ [NoAccessorMethod]
+ public string filename { owned get; construct; }
+ public bool has_multiple_sizes { get; }
+ public double start_time { get; }
+ public double total_duration { get; }
+ }
+ [CCode (cheader_filename = "libgnome-desktop/gnome-bg-crossfade.h,libgnome-desktop/gnome-bg-slide-show.h,libgnome-desktop/gnome-bg.h,libgnome-desktop/gnome-desktop-thumbnail.h,libgnome-desktop/gnome-idle-monitor.h,libgnome-desktop/gnome-languages.h,libgnome-desktop/gnome-pnp-ids.h,libgnome-desktop/gnome-rr-config.h,libgnome-desktop/gnome-rr.h,libgnome-desktop/gnome-wall-clock.h,libgnome-desktop/gnome-xkb-info.h", type_id = "gnome_desktop_thumbnail_factory_get_type ()")]
public class DesktopThumbnailFactory : GLib.Object {
- [CCode (cname = "gnome_desktop_thumbnail_factory_new", has_construct_function = false)]
+ [CCode (has_construct_function = false)]
public DesktopThumbnailFactory (Gnome.DesktopThumbnailSize size);
- [CCode (cname = "gnome_desktop_thumbnail_factory_can_thumbnail")]
public bool can_thumbnail (string uri, string mime_type, long mtime);
- [CCode (cname = "gnome_desktop_thumbnail_factory_create_failed_thumbnail")]
public void create_failed_thumbnail (string uri, long mtime);
- [CCode (cname = "gnome_desktop_thumbnail_factory_generate_thumbnail")]
public Gdk.Pixbuf generate_thumbnail (string uri, string mime_type);
- [CCode (cname = "gnome_desktop_thumbnail_factory_has_valid_failed_thumbnail")]
public bool has_valid_failed_thumbnail (string uri, long mtime);
- [CCode (cname = "gnome_desktop_thumbnail_factory_lookup")]
public string lookup (string uri, long mtime);
- [CCode (cname = "gnome_desktop_thumbnail_factory_save_thumbnail")]
public void save_thumbnail (Gdk.Pixbuf thumbnail, string uri, long original_mtime);
}
- [CCode (cheader_filename = "libgnome-desktop/gnome-bg-crossfade.h,libgnome-desktop/gnome-bg.h,libgnome-desktop/gnome-desktop-thumbnail.h,libgnome-desktop/gnome-desktop-utils.h,libgnome-desktop/gnome-pnp-ids.h,libgnome-desktop/gnome-rr-config.h,libgnome-desktop/gnome-rr-labeler.h,libgnome-desktop/gnome-rr.h,libgnome-desktop/gnome-wall-clock.h,libgnome-desktop/gnome-xkb-info.h", type_id = "gnome_pnp_ids_get_type ()")]
+ [CCode (cheader_filename = "libgnome-desktop/gnome-bg-crossfade.h,libgnome-desktop/gnome-bg-slide-show.h,libgnome-desktop/gnome-bg.h,libgnome-desktop/gnome-desktop-thumbnail.h,libgnome-desktop/gnome-idle-monitor.h,libgnome-desktop/gnome-languages.h,libgnome-desktop/gnome-pnp-ids.h,libgnome-desktop/gnome-rr-config.h,libgnome-desktop/gnome-rr.h,libgnome-desktop/gnome-wall-clock.h,libgnome-desktop/gnome-xkb-info.h", type_id = "gnome_idle_monitor_get_type ()")]
+ public class IdleMonitor : GLib.Object, GLib.Initable {
+ [CCode (has_construct_function = false)]
+ public IdleMonitor ();
+ public uint add_idle_watch (uint64 interval_msec, owned Gnome.IdleMonitorWatchFunc? callback);
+ public uint add_user_active_watch (owned Gnome.IdleMonitorWatchFunc? callback);
+ [CCode (has_construct_function = false)]
+ public IdleMonitor.for_device (Gdk.Device device);
+ public int64 get_idletime ();
+ public void remove_watch (uint id);
+ [NoAccessorMethod]
+ public Gdk.Device device { owned get; construct; }
+ }
+ [CCode (cheader_filename = "libgnome-desktop/gnome-bg-crossfade.h,libgnome-desktop/gnome-bg-slide-show.h,libgnome-desktop/gnome-bg.h,libgnome-desktop/gnome-desktop-thumbnail.h,libgnome-desktop/gnome-idle-monitor.h,libgnome-desktop/gnome-languages.h,libgnome-desktop/gnome-pnp-ids.h,libgnome-desktop/gnome-rr-config.h,libgnome-desktop/gnome-rr.h,libgnome-desktop/gnome-wall-clock.h,libgnome-desktop/gnome-xkb-info.h", type_id = "gnome_pnp_ids_get_type ()")]
public class PnpIds : GLib.Object {
- [CCode (cname = "gnome_pnp_ids_new", has_construct_function = false)]
+ [CCode (has_construct_function = false)]
public PnpIds ();
- [CCode (cname = "gnome_pnp_ids_get_pnp_id")]
public string get_pnp_id (string pnp_id);
}
- [CCode (cheader_filename = "libgnome-desktop/gnome-bg-crossfade.h,libgnome-desktop/gnome-bg.h,libgnome-desktop/gnome-desktop-thumbnail.h,libgnome-desktop/gnome-desktop-utils.h,libgnome-desktop/gnome-pnp-ids.h,libgnome-desktop/gnome-rr-config.h,libgnome-desktop/gnome-rr-labeler.h,libgnome-desktop/gnome-rr.h,libgnome-desktop/gnome-wall-clock.h,libgnome-desktop/gnome-xkb-info.h", type_id = "gnome_rr_config_get_type ()")]
+ [CCode (cheader_filename = "libgnome-desktop/gnome-bg-crossfade.h,libgnome-desktop/gnome-bg-slide-show.h,libgnome-desktop/gnome-bg.h,libgnome-desktop/gnome-desktop-thumbnail.h,libgnome-desktop/gnome-idle-monitor.h,libgnome-desktop/gnome-languages.h,libgnome-desktop/gnome-pnp-ids.h,libgnome-desktop/gnome-rr-config.h,libgnome-desktop/gnome-rr.h,libgnome-desktop/gnome-wall-clock.h,libgnome-desktop/gnome-xkb-info.h", type_id = "gnome_rr_config_get_type ()")]
public class RRConfig : GLib.Object {
[CCode (has_construct_function = false)]
protected RRConfig ();
- [CCode (cname = "gnome_rr_config_applicable")]
public bool applicable (Gnome.RRScreen screen) throws GLib.Error;
- [CCode (cname = "gnome_rr_config_apply_from_filename_with_time")]
public static bool apply_from_filename_with_time (Gnome.RRScreen screen, string filename, uint32 timestamp) throws GLib.Error;
- [CCode (cname = "gnome_rr_config_apply_with_time")]
public bool apply_with_time (Gnome.RRScreen screen, uint32 timestamp) throws GLib.Error;
- [CCode (cname = "gnome_rr_config_new_current", has_construct_function = false)]
+ [CCode (has_construct_function = false)]
public RRConfig.current (Gnome.RRScreen screen) throws GLib.Error;
- [CCode (cname = "gnome_rr_config_ensure_primary")]
public bool ensure_primary ();
- [CCode (cname = "gnome_rr_config_equal")]
public bool equal (Gnome.RRConfig config2);
- [CCode (cname = "gnome_rr_config_get_backup_filename")]
public static string get_backup_filename ();
- [CCode (cname = "gnome_rr_config_get_clone")]
public bool get_clone ();
- [CCode (cname = "gnome_rr_config_get_intended_filename")]
public static string get_intended_filename ();
- [CCode (array_length = false, array_null_terminated = true, cname = "gnome_rr_config_get_outputs")]
+ [CCode (array_length = false, array_null_terminated = true)]
public unowned Gnome.RROutputInfo[] get_outputs ();
- [CCode (cname = "gnome_rr_config_load_current")]
public bool load_current () throws GLib.Error;
- [CCode (cname = "gnome_rr_config_load_filename")]
public bool load_filename (string filename) throws GLib.Error;
- [CCode (cname = "gnome_rr_config_match")]
public bool match (Gnome.RRConfig config2);
- [CCode (cname = "gnome_rr_config_sanitize")]
public void sanitize ();
- [CCode (cname = "gnome_rr_config_save")]
public bool save () throws GLib.Error;
- [CCode (cname = "gnome_rr_config_set_clone")]
public void set_clone (bool clone);
- [CCode (cname = "gnome_rr_config_new_stored", has_construct_function = false)]
+ [CCode (has_construct_function = false)]
public RRConfig.stored (Gnome.RRScreen screen) throws GLib.Error;
public Gnome.RRScreen screen { construct; }
}
- [CCode (cheader_filename = "libgnome-desktop/gnome-bg-crossfade.h,libgnome-desktop/gnome-bg.h,libgnome-desktop/gnome-desktop-thumbnail.h,libgnome-desktop/gnome-desktop-utils.h,libgnome-desktop/gnome-pnp-ids.h,libgnome-desktop/gnome-rr-config.h,libgnome-desktop/gnome-rr-labeler.h,libgnome-desktop/gnome-rr.h,libgnome-desktop/gnome-wall-clock.h,libgnome-desktop/gnome-xkb-info.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "gnome_rr_crtc_get_type ()")]
+ [CCode (cheader_filename = "libgnome-desktop/gnome-bg-crossfade.h,libgnome-desktop/gnome-bg-slide-show.h,libgnome-desktop/gnome-bg.h,libgnome-desktop/gnome-desktop-thumbnail.h,libgnome-desktop/gnome-idle-monitor.h,libgnome-desktop/gnome-languages.h,libgnome-desktop/gnome-pnp-ids.h,libgnome-desktop/gnome-rr-config.h,libgnome-desktop/gnome-rr.h,libgnome-desktop/gnome-wall-clock.h,libgnome-desktop/gnome-xkb-info.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "gnome_rr_crtc_get_type ()")]
[Compact]
public class RRCrtc {
- [CCode (cname = "gnome_rr_crtc_can_drive_output")]
public bool can_drive_output (Gnome.RROutput output);
- [CCode (cname = "gnome_rr_crtc_get_current_mode")]
public Gnome.RRMode get_current_mode ();
- [CCode (cname = "gnome_rr_crtc_get_current_rotation")]
public Gnome.RRRotation get_current_rotation ();
- [CCode (cname = "gnome_rr_crtc_get_gamma")]
public bool get_gamma (int size, ushort red, ushort green, ushort blue);
- [CCode (cname = "gnome_rr_crtc_get_id")]
public uint32 get_id ();
- [CCode (cname = "gnome_rr_crtc_get_position")]
- public void get_position (int x, int y);
- [CCode (cname = "gnome_rr_crtc_get_rotations")]
+ public void get_position (out int x, out int y);
public Gnome.RRRotation get_rotations ();
- [CCode (cname = "gnome_rr_crtc_set_config_with_time")]
public bool set_config_with_time (uint32 timestamp, int x, int y, Gnome.RRMode mode, Gnome.RRRotation rotation, Gnome.RROutput outputs, int n_outputs) throws GLib.Error;
- [CCode (cname = "gnome_rr_crtc_set_gamma")]
public void set_gamma (int size, ushort red, ushort green, ushort blue);
- [CCode (cname = "gnome_rr_crtc_supports_rotation")]
public bool supports_rotation (Gnome.RRRotation rotation);
}
- [CCode (cheader_filename = "libgnome-desktop/gnome-bg-crossfade.h,libgnome-desktop/gnome-bg.h,libgnome-desktop/gnome-desktop-thumbnail.h,libgnome-desktop/gnome-desktop-utils.h,libgnome-desktop/gnome-pnp-ids.h,libgnome-desktop/gnome-rr-config.h,libgnome-desktop/gnome-rr-labeler.h,libgnome-desktop/gnome-rr.h,libgnome-desktop/gnome-wall-clock.h,libgnome-desktop/gnome-xkb-info.h", type_id = "gnome_rr_labeler_get_type ()")]
- public class RRLabeler : GLib.Object {
- [CCode (cname = "gnome_rr_labeler_new", has_construct_function = false)]
- public RRLabeler (Gnome.RRConfig config);
- [CCode (cname = "gnome_rr_labeler_get_rgba_for_output")]
- public Gdk.RGBA get_rgba_for_output (Gnome.RROutputInfo output);
- [CCode (cname = "gnome_rr_labeler_hide")]
- public void hide ();
- [CCode (cname = "gnome_rr_labeler_show")]
- public void show ();
- public Gnome.RRConfig config { construct; }
- }
- [CCode (cheader_filename = "libgnome-desktop/gnome-bg-crossfade.h,libgnome-desktop/gnome-bg.h,libgnome-desktop/gnome-desktop-thumbnail.h,libgnome-desktop/gnome-desktop-utils.h,libgnome-desktop/gnome-pnp-ids.h,libgnome-desktop/gnome-rr-config.h,libgnome-desktop/gnome-rr-labeler.h,libgnome-desktop/gnome-rr.h,libgnome-desktop/gnome-wall-clock.h,libgnome-desktop/gnome-xkb-info.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "gnome_rr_mode_get_type ()")]
+ [CCode (cheader_filename = "libgnome-desktop/gnome-bg-crossfade.h,libgnome-desktop/gnome-bg-slide-show.h,libgnome-desktop/gnome-bg.h,libgnome-desktop/gnome-desktop-thumbnail.h,libgnome-desktop/gnome-idle-monitor.h,libgnome-desktop/gnome-languages.h,libgnome-desktop/gnome-pnp-ids.h,libgnome-desktop/gnome-rr-config.h,libgnome-desktop/gnome-rr.h,libgnome-desktop/gnome-wall-clock.h,libgnome-desktop/gnome-xkb-info.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "gnome_rr_mode_get_type ()")]
[Compact]
public class RRMode {
- [CCode (cname = "gnome_rr_mode_get_freq")]
public int get_freq ();
- [CCode (cname = "gnome_rr_mode_get_height")]
public uint get_height ();
- [CCode (cname = "gnome_rr_mode_get_id")]
public uint32 get_id ();
- [CCode (cname = "gnome_rr_mode_get_width")]
public uint get_width ();
}
- [CCode (cheader_filename = "libgnome-desktop/gnome-bg-crossfade.h,libgnome-desktop/gnome-bg.h,libgnome-desktop/gnome-desktop-thumbnail.h,libgnome-desktop/gnome-desktop-utils.h,libgnome-desktop/gnome-pnp-ids.h,libgnome-desktop/gnome-rr-config.h,libgnome-desktop/gnome-rr-labeler.h,libgnome-desktop/gnome-rr.h,libgnome-desktop/gnome-wall-clock.h,libgnome-desktop/gnome-xkb-info.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "gnome_rr_output_get_type ()")]
+ [CCode (cheader_filename = "libgnome-desktop/gnome-bg-crossfade.h,libgnome-desktop/gnome-bg-slide-show.h,libgnome-desktop/gnome-bg.h,libgnome-desktop/gnome-desktop-thumbnail.h,libgnome-desktop/gnome-idle-monitor.h,libgnome-desktop/gnome-languages.h,libgnome-desktop/gnome-pnp-ids.h,libgnome-desktop/gnome-rr-config.h,libgnome-desktop/gnome-rr.h,libgnome-desktop/gnome-wall-clock.h,libgnome-desktop/gnome-xkb-info.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "gnome_rr_output_get_type ()")]
[Compact]
public class RROutput {
- [CCode (cname = "gnome_rr_output_can_clone")]
public bool can_clone (Gnome.RROutput clone);
- [CCode (cname = "gnome_rr_output_get_backlight")]
public int get_backlight () throws GLib.Error;
- [CCode (cname = "gnome_rr_output_get_backlight_max")]
public int get_backlight_max ();
- [CCode (cname = "gnome_rr_output_get_backlight_min")]
public int get_backlight_min ();
- [CCode (cname = "gnome_rr_output_get_connector_type")]
public unowned string get_connector_type ();
- [CCode (cname = "gnome_rr_output_get_crtc")]
public Gnome.RRCrtc get_crtc ();
- [CCode (cname = "gnome_rr_output_get_current_mode")]
public Gnome.RRMode get_current_mode ();
- [CCode (cname = "gnome_rr_output_get_edid_data")]
+ public unowned string get_display_name ();
public uint8 get_edid_data (size_t size);
- [CCode (cname = "gnome_rr_output_get_height_mm")]
public int get_height_mm ();
- [CCode (cname = "gnome_rr_output_get_id")]
public uint32 get_id ();
- [CCode (cname = "gnome_rr_output_get_ids_from_edid")]
- public bool get_ids_from_edid (string vendor, int product, int serial);
- [CCode (cname = "gnome_rr_output_get_is_primary")]
+ public bool get_ids_from_edid (out string vendor, out int product, out int serial);
public bool get_is_primary ();
- [CCode (cname = "gnome_rr_output_get_name")]
public unowned string get_name ();
- [CCode (cname = "gnome_rr_output_get_position")]
- public void get_position (int x, int y);
- [CCode (cname = "gnome_rr_output_get_possible_crtcs")]
+ public void get_position (out int x, out int y);
public Gnome.RRCrtc get_possible_crtcs ();
- [CCode (cname = "gnome_rr_output_get_preferred_mode")]
public Gnome.RRMode get_preferred_mode ();
- [CCode (cname = "gnome_rr_output_get_size_inches")]
public int get_size_inches ();
- [CCode (cname = "gnome_rr_output_get_width_mm")]
public int get_width_mm ();
- [CCode (cname = "gnome_rr_output_is_connected")]
public bool is_connected ();
- [CCode (cname = "gnome_rr_output_is_laptop")]
public bool is_laptop ();
- [CCode (cname = "gnome_rr_output_list_modes")]
public Gnome.RRMode list_modes ();
- [CCode (cname = "gnome_rr_output_set_backlight")]
public bool set_backlight (int value) throws GLib.Error;
- [CCode (cname = "gnome_rr_output_supports_mode")]
public bool supports_mode (Gnome.RRMode mode);
}
- [CCode (cheader_filename = "libgnome-desktop/gnome-bg-crossfade.h,libgnome-desktop/gnome-bg.h,libgnome-desktop/gnome-desktop-thumbnail.h,libgnome-desktop/gnome-desktop-utils.h,libgnome-desktop/gnome-pnp-ids.h,libgnome-desktop/gnome-rr-config.h,libgnome-desktop/gnome-rr-labeler.h,libgnome-desktop/gnome-rr.h,libgnome-desktop/gnome-wall-clock.h,libgnome-desktop/gnome-xkb-info.h", type_id = "gnome_rr_output_info_get_type ()")]
+ [CCode (cheader_filename = "libgnome-desktop/gnome-bg-crossfade.h,libgnome-desktop/gnome-bg-slide-show.h,libgnome-desktop/gnome-bg.h,libgnome-desktop/gnome-desktop-thumbnail.h,libgnome-desktop/gnome-idle-monitor.h,libgnome-desktop/gnome-languages.h,libgnome-desktop/gnome-pnp-ids.h,libgnome-desktop/gnome-rr-config.h,libgnome-desktop/gnome-rr.h,libgnome-desktop/gnome-wall-clock.h,libgnome-desktop/gnome-xkb-info.h", type_id = "gnome_rr_output_info_get_type ()")]
public class RROutputInfo : GLib.Object {
[CCode (has_construct_function = false)]
protected RROutputInfo ();
- [CCode (cname = "gnome_rr_output_info_get_aspect_ratio")]
public double get_aspect_ratio ();
- [CCode (cname = "gnome_rr_output_info_get_display_name")]
public unowned string get_display_name ();
- [CCode (cname = "gnome_rr_output_info_get_geometry")]
public void get_geometry (out int x, out int y, out int width, out int height);
- [CCode (cname = "gnome_rr_output_info_get_name")]
public unowned string get_name ();
- [CCode (cname = "gnome_rr_output_info_get_preferred_height")]
public int get_preferred_height ();
- [CCode (cname = "gnome_rr_output_info_get_preferred_width")]
public int get_preferred_width ();
- [CCode (cname = "gnome_rr_output_info_get_primary")]
public bool get_primary ();
- [CCode (cname = "gnome_rr_output_info_get_product")]
public uint get_product ();
- [CCode (cname = "gnome_rr_output_info_get_refresh_rate")]
public int get_refresh_rate ();
- [CCode (cname = "gnome_rr_output_info_get_rotation")]
public Gnome.RRRotation get_rotation ();
- [CCode (cname = "gnome_rr_output_info_get_serial")]
public uint get_serial ();
- [CCode (cname = "gnome_rr_output_info_get_vendor")]
public void get_vendor ([CCode (array_length = false)] out unowned string[] vendor);
- [CCode (cname = "gnome_rr_output_info_is_active")]
public bool is_active ();
- [CCode (cname = "gnome_rr_output_info_is_connected")]
public bool is_connected ();
- [CCode (cname = "gnome_rr_output_info_set_active")]
public void set_active (bool active);
- [CCode (cname = "gnome_rr_output_info_set_geometry")]
public void set_geometry (int x, int y, int width, int height);
- [CCode (cname = "gnome_rr_output_info_set_primary")]
public void set_primary (bool primary);
- [CCode (cname = "gnome_rr_output_info_set_refresh_rate")]
public void set_refresh_rate (int rate);
- [CCode (cname = "gnome_rr_output_info_set_rotation")]
public void set_rotation (Gnome.RRRotation rotation);
}
- [CCode (cheader_filename = "libgnome-desktop/gnome-bg-crossfade.h,libgnome-desktop/gnome-bg.h,libgnome-desktop/gnome-desktop-thumbnail.h,libgnome-desktop/gnome-desktop-utils.h,libgnome-desktop/gnome-pnp-ids.h,libgnome-desktop/gnome-rr-config.h,libgnome-desktop/gnome-rr-labeler.h,libgnome-desktop/gnome-rr.h,libgnome-desktop/gnome-wall-clock.h,libgnome-desktop/gnome-xkb-info.h", type_id = "gnome_rr_screen_get_type ()")]
+ [CCode (cheader_filename = "libgnome-desktop/gnome-bg-crossfade.h,libgnome-desktop/gnome-bg-slide-show.h,libgnome-desktop/gnome-bg.h,libgnome-desktop/gnome-desktop-thumbnail.h,libgnome-desktop/gnome-idle-monitor.h,libgnome-desktop/gnome-languages.h,libgnome-desktop/gnome-pnp-ids.h,libgnome-desktop/gnome-rr-config.h,libgnome-desktop/gnome-rr.h,libgnome-desktop/gnome-wall-clock.h,libgnome-desktop/gnome-xkb-info.h", type_id = "gnome_rr_screen_get_type ()")]
public class RRScreen : GLib.Object, GLib.Initable {
- [CCode (cname = "gnome_rr_screen_new", has_construct_function = false)]
+ [CCode (has_construct_function = false)]
public RRScreen (Gdk.Screen screen) throws GLib.Error;
- [CCode (cname = "gnome_rr_screen_create_clone_modes")]
public Gnome.RRMode create_clone_modes ();
- [CCode (cname = "gnome_rr_screen_get_crtc_by_id")]
public unowned Gnome.RRCrtc get_crtc_by_id (uint32 id);
- [CCode (cname = "gnome_rr_screen_get_dpms_mode")]
- public bool get_dpms_mode (Gnome.RRDpmsMode mode) throws GLib.Error;
- [CCode (cname = "gnome_rr_screen_get_output_by_id")]
+ public bool get_dpms_mode (out Gnome.RRDpmsMode mode) throws GLib.Error;
public unowned Gnome.RROutput get_output_by_id (uint32 id);
- [CCode (cname = "gnome_rr_screen_get_output_by_name")]
public unowned Gnome.RROutput get_output_by_name (string name);
- [CCode (cname = "gnome_rr_screen_get_ranges")]
public void get_ranges (out int min_width, out int max_width, out int min_height, out int max_height);
- [CCode (cname = "gnome_rr_screen_get_timestamps")]
public void get_timestamps (out uint32 change_timestamp_ret, out uint32 config_timestamp_ret);
- [CCode (array_length = false, array_null_terminated = true, cname = "gnome_rr_screen_list_clone_modes")]
+ [CCode (array_length = false, array_null_terminated = true)]
public unowned Gnome.RRMode[] list_clone_modes ();
- [CCode (array_length = false, array_null_terminated = true, cname = "gnome_rr_screen_list_crtcs")]
+ [CCode (array_length = false, array_null_terminated = true)]
public unowned Gnome.RRCrtc[] list_crtcs ();
- [CCode (array_length = false, array_null_terminated = true, cname = "gnome_rr_screen_list_modes")]
+ [CCode (array_length = false, array_null_terminated = true)]
public unowned Gnome.RRMode[] list_modes ();
- [CCode (array_length = false, array_null_terminated = true, cname = "gnome_rr_screen_list_outputs")]
+ [CCode (array_length = false, array_null_terminated = true)]
public unowned Gnome.RROutput[] list_outputs ();
- [CCode (cname = "gnome_rr_screen_refresh")]
public bool refresh () throws GLib.Error;
- [CCode (cname = "gnome_rr_screen_set_dpms_mode")]
public bool set_dpms_mode (Gnome.RRDpmsMode mode) throws GLib.Error;
- [CCode (cname = "gnome_rr_screen_set_primary_output")]
public void set_primary_output (Gnome.RROutput output);
- [CCode (cname = "gnome_rr_screen_set_size")]
public void set_size (int width, int height, int mm_width, int mm_height);
[NoAccessorMethod]
public Gdk.Screen gdk_screen { owned get; construct; }
@@ -308,40 +222,36 @@ namespace Gnome {
public virtual signal void output_connected (void* output);
public virtual signal void output_disconnected (void* output);
}
- [CCode (cheader_filename = "libgnome-desktop/gnome-bg-crossfade.h,libgnome-desktop/gnome-bg.h,libgnome-desktop/gnome-desktop-thumbnail.h,libgnome-desktop/gnome-desktop-utils.h,libgnome-desktop/gnome-pnp-ids.h,libgnome-desktop/gnome-rr-config.h,libgnome-desktop/gnome-rr-labeler.h,libgnome-desktop/gnome-rr.h,libgnome-desktop/gnome-wall-clock.h,libgnome-desktop/gnome-xkb-info.h", type_id = "gnome_wall_clock_get_type ()")]
+ [CCode (cheader_filename = "libgnome-desktop/gnome-bg-crossfade.h,libgnome-desktop/gnome-bg-slide-show.h,libgnome-desktop/gnome-bg.h,libgnome-desktop/gnome-desktop-thumbnail.h,libgnome-desktop/gnome-idle-monitor.h,libgnome-desktop/gnome-languages.h,libgnome-desktop/gnome-pnp-ids.h,libgnome-desktop/gnome-rr-config.h,libgnome-desktop/gnome-rr.h,libgnome-desktop/gnome-wall-clock.h,libgnome-desktop/gnome-xkb-info.h", type_id = "gnome_wall_clock_get_type ()")]
public class WallClock : GLib.Object {
[CCode (has_construct_function = false)]
- protected WallClock ();
- [CCode (cname = "gnome_wall_clock_get_clock")]
+ public WallClock ();
public unowned string get_clock ();
- [NoAccessorMethod]
- public string clock { owned get; }
+ public unowned GLib.TimeZone get_timezone ();
+ public string clock { get; }
[NoAccessorMethod]
public bool time_only { get; set; }
+ public GLib.TimeZone timezone { get; }
}
- [CCode (cheader_filename = "libgnome-desktop/gnome-bg-crossfade.h,libgnome-desktop/gnome-bg.h,libgnome-desktop/gnome-desktop-thumbnail.h,libgnome-desktop/gnome-desktop-utils.h,libgnome-desktop/gnome-pnp-ids.h,libgnome-desktop/gnome-rr-config.h,libgnome-desktop/gnome-rr-labeler.h,libgnome-desktop/gnome-rr.h,libgnome-desktop/gnome-wall-clock.h,libgnome-desktop/gnome-xkb-info.h", type_id = "gnome_xkb_info_get_type ()")]
+ [CCode (cheader_filename = "libgnome-desktop/gnome-bg-crossfade.h,libgnome-desktop/gnome-bg-slide-show.h,libgnome-desktop/gnome-bg.h,libgnome-desktop/gnome-desktop-thumbnail.h,libgnome-desktop/gnome-idle-monitor.h,libgnome-desktop/gnome-languages.h,libgnome-desktop/gnome-pnp-ids.h,libgnome-desktop/gnome-rr-config.h,libgnome-desktop/gnome-rr.h,libgnome-desktop/gnome-wall-clock.h,libgnome-desktop/gnome-xkb-info.h", type_id = "gnome_xkb_info_get_type ()")]
public class XkbInfo : GLib.Object {
- [CCode (cname = "gnome_xkb_info_new", has_construct_function = false)]
+ [CCode (has_construct_function = false)]
public XkbInfo ();
- [CCode (cname = "gnome_xkb_info_description_for_option")]
+ public unowned string description_for_group (string group_id);
public unowned string description_for_option (string group_id, string id);
- [CCode (cname = "gnome_xkb_info_get_all_layouts")]
public GLib.List<weak string> get_all_layouts ();
- [CCode (cname = "gnome_xkb_info_get_all_option_groups")]
public GLib.List<weak string> get_all_option_groups ();
- [CCode (cname = "gnome_xkb_info_get_layout_info")]
public bool get_layout_info (string id, out unowned string display_name, out unowned string short_name, out unowned string xkb_layout, out unowned string xkb_variant);
- [CCode (cname = "gnome_xkb_info_get_layout_info_for_language")]
- public bool get_layout_info_for_language (string language, out unowned string id, out unowned string display_name, out unowned string short_name, out unowned string xkb_layout, out unowned string xkb_variant);
- [CCode (cname = "gnome_xkb_info_get_options_for_group")]
+ public GLib.List<weak string> get_layouts_for_country (string country_code);
+ public GLib.List<weak string> get_layouts_for_language (string language_code);
public GLib.List<weak string> get_options_for_group (string group_id);
}
- [CCode (cheader_filename = "libgnome-desktop/gnome-bg-crossfade.h,libgnome-desktop/gnome-bg.h,libgnome-desktop/gnome-desktop-thumbnail.h,libgnome-desktop/gnome-desktop-utils.h,libgnome-desktop/gnome-pnp-ids.h,libgnome-desktop/gnome-rr-config.h,libgnome-desktop/gnome-rr-labeler.h,libgnome-desktop/gnome-rr.h,libgnome-desktop/gnome-wall-clock.h,libgnome-desktop/gnome-xkb-info.h", cprefix = "GNOME_DESKTOP_THUMBNAIL_SIZE_", has_type_id = false)]
+ [CCode (cheader_filename = "libgnome-desktop/gnome-bg-crossfade.h,libgnome-desktop/gnome-bg-slide-show.h,libgnome-desktop/gnome-bg.h,libgnome-desktop/gnome-desktop-thumbnail.h,libgnome-desktop/gnome-idle-monitor.h,libgnome-desktop/gnome-languages.h,libgnome-desktop/gnome-pnp-ids.h,libgnome-desktop/gnome-rr-config.h,libgnome-desktop/gnome-rr.h,libgnome-desktop/gnome-wall-clock.h,libgnome-desktop/gnome-xkb-info.h", cprefix = "GNOME_DESKTOP_THUMBNAIL_SIZE_", has_type_id = false)]
public enum DesktopThumbnailSize {
NORMAL,
LARGE
}
- [CCode (cheader_filename = "libgnome-desktop/gnome-bg-crossfade.h,libgnome-desktop/gnome-bg.h,libgnome-desktop/gnome-desktop-thumbnail.h,libgnome-desktop/gnome-desktop-utils.h,libgnome-desktop/gnome-pnp-ids.h,libgnome-desktop/gnome-rr-config.h,libgnome-desktop/gnome-rr-labeler.h,libgnome-desktop/gnome-rr.h,libgnome-desktop/gnome-wall-clock.h,libgnome-desktop/gnome-xkb-info.h", cprefix = "GNOME_RR_DPMS_", has_type_id = false)]
+ [CCode (cheader_filename = "libgnome-desktop/gnome-bg-crossfade.h,libgnome-desktop/gnome-bg-slide-show.h,libgnome-desktop/gnome-bg.h,libgnome-desktop/gnome-desktop-thumbnail.h,libgnome-desktop/gnome-idle-monitor.h,libgnome-desktop/gnome-languages.h,libgnome-desktop/gnome-pnp-ids.h,libgnome-desktop/gnome-rr-config.h,libgnome-desktop/gnome-rr.h,libgnome-desktop/gnome-wall-clock.h,libgnome-desktop/gnome-xkb-info.h", cprefix = "GNOME_RR_DPMS_", has_type_id = false)]
public enum RRDpmsMode {
ON,
STANDBY,
@@ -350,7 +260,7 @@ namespace Gnome {
DISABLED,
UNKNOWN
}
- [CCode (cheader_filename = "libgnome-desktop/gnome-bg-crossfade.h,libgnome-desktop/gnome-bg.h,libgnome-desktop/gnome-desktop-thumbnail.h,libgnome-desktop/gnome-desktop-utils.h,libgnome-desktop/gnome-pnp-ids.h,libgnome-desktop/gnome-rr-config.h,libgnome-desktop/gnome-rr-labeler.h,libgnome-desktop/gnome-rr.h,libgnome-desktop/gnome-wall-clock.h,libgnome-desktop/gnome-xkb-info.h", cprefix = "GNOME_RR_", has_type_id = false)]
+ [CCode (cheader_filename = "libgnome-desktop/gnome-bg-crossfade.h,libgnome-desktop/gnome-bg-slide-show.h,libgnome-desktop/gnome-bg.h,libgnome-desktop/gnome-desktop-thumbnail.h,libgnome-desktop/gnome-idle-monitor.h,libgnome-desktop/gnome-languages.h,libgnome-desktop/gnome-pnp-ids.h,libgnome-desktop/gnome-rr-config.h,libgnome-desktop/gnome-rr.h,libgnome-desktop/gnome-wall-clock.h,libgnome-desktop/gnome-xkb-info.h", cprefix = "GNOME_RR_", has_type_id = false)]
[Flags]
public enum RRRotation {
ROTATION_NEXT,
@@ -361,7 +271,7 @@ namespace Gnome {
REFLECT_X,
REFLECT_Y
}
- [CCode (cheader_filename = "libgnome-desktop/gnome-bg-crossfade.h,libgnome-desktop/gnome-bg.h,libgnome-desktop/gnome-desktop-thumbnail.h,libgnome-desktop/gnome-desktop-utils.h,libgnome-desktop/gnome-pnp-ids.h,libgnome-desktop/gnome-rr-config.h,libgnome-desktop/gnome-rr-labeler.h,libgnome-desktop/gnome-rr.h,libgnome-desktop/gnome-wall-clock.h,libgnome-desktop/gnome-xkb-info.h", cprefix = "GNOME_RR_ERROR_")]
+ [CCode (cheader_filename = "libgnome-desktop/gnome-bg-crossfade.h,libgnome-desktop/gnome-bg-slide-show.h,libgnome-desktop/gnome-bg.h,libgnome-desktop/gnome-desktop-thumbnail.h,libgnome-desktop/gnome-idle-monitor.h,libgnome-desktop/gnome-languages.h,libgnome-desktop/gnome-pnp-ids.h,libgnome-desktop/gnome-rr-config.h,libgnome-desktop/gnome-rr.h,libgnome-desktop/gnome-wall-clock.h,libgnome-desktop/gnome-xkb-info.h", cprefix = "GNOME_RR_ERROR_")]
public errordomain RRError {
UNKNOWN,
NO_RANDR_EXTENSION,
@@ -369,23 +279,42 @@ namespace Gnome {
BOUNDS_ERROR,
CRTC_ASSIGNMENT,
NO_MATCHING_CONFIG,
- NO_DPMS_EXTENSION
+ NO_DPMS_EXTENSION;
+ public static GLib.Quark quark ();
}
- [CCode (cheader_filename = "libgnome-desktop/gnome-bg-crossfade.h,libgnome-desktop/gnome-bg.h,libgnome-desktop/gnome-desktop-thumbnail.h,libgnome-desktop/gnome-desktop-utils.h,libgnome-desktop/gnome-pnp-ids.h,libgnome-desktop/gnome-rr-config.h,libgnome-desktop/gnome-rr-labeler.h,libgnome-desktop/gnome-rr.h,libgnome-desktop/gnome-wall-clock.h,libgnome-desktop/gnome-xkb-info.h", cname = "GNOME_RR_CONNECTOR_TYPE_PANEL")]
+ [CCode (cheader_filename = "libgnome-desktop/gnome-bg-crossfade.h,libgnome-desktop/gnome-bg-slide-show.h,libgnome-desktop/gnome-bg.h,libgnome-desktop/gnome-desktop-thumbnail.h,libgnome-desktop/gnome-idle-monitor.h,libgnome-desktop/gnome-languages.h,libgnome-desktop/gnome-pnp-ids.h,libgnome-desktop/gnome-rr-config.h,libgnome-desktop/gnome-rr.h,libgnome-desktop/gnome-wall-clock.h,libgnome-desktop/gnome-xkb-info.h", instance_pos = 2.9)]
+ public delegate void IdleMonitorWatchFunc (Gnome.IdleMonitor monitor, uint id);
+ [CCode (cheader_filename = "libgnome-desktop/gnome-bg-crossfade.h,libgnome-desktop/gnome-bg-slide-show.h,libgnome-desktop/gnome-bg.h,libgnome-desktop/gnome-desktop-thumbnail.h,libgnome-desktop/gnome-idle-monitor.h,libgnome-desktop/gnome-languages.h,libgnome-desktop/gnome-pnp-ids.h,libgnome-desktop/gnome-rr-config.h,libgnome-desktop/gnome-rr.h,libgnome-desktop/gnome-wall-clock.h,libgnome-desktop/gnome-xkb-info.h", cname = "GNOME_RR_CONNECTOR_TYPE_PANEL")]
public const string RR_CONNECTOR_TYPE_PANEL;
- [CCode (cheader_filename = "libgnome-desktop/gnome-bg-crossfade.h,libgnome-desktop/gnome-bg.h,libgnome-desktop/gnome-desktop-thumbnail.h,libgnome-desktop/gnome-desktop-utils.h,libgnome-desktop/gnome-pnp-ids.h,libgnome-desktop/gnome-rr-config.h,libgnome-desktop/gnome-rr-labeler.h,libgnome-desktop/gnome-rr.h,libgnome-desktop/gnome-wall-clock.h,libgnome-desktop/gnome-xkb-info.h", cname = "gnome_desktop_prepend_terminal_to_vector")]
- public static void desktop_prepend_terminal_to_vector (int argc, string argv);
- [CCode (cheader_filename = "libgnome-desktop/gnome-bg-crossfade.h,libgnome-desktop/gnome-bg.h,libgnome-desktop/gnome-desktop-thumbnail.h,libgnome-desktop/gnome-desktop-utils.h,libgnome-desktop/gnome-pnp-ids.h,libgnome-desktop/gnome-rr-config.h,libgnome-desktop/gnome-rr-labeler.h,libgnome-desktop/gnome-rr.h,libgnome-desktop/gnome-wall-clock.h,libgnome-desktop/gnome-xkb-info.h", cname = "gnome_desktop_thumbnail_has_uri")]
+ [CCode (cheader_filename = "libgnome-desktop/gnome-bg-crossfade.h,libgnome-desktop/gnome-bg-slide-show.h,libgnome-desktop/gnome-bg.h,libgnome-desktop/gnome-desktop-thumbnail.h,libgnome-desktop/gnome-idle-monitor.h,libgnome-desktop/gnome-languages.h,libgnome-desktop/gnome-pnp-ids.h,libgnome-desktop/gnome-rr-config.h,libgnome-desktop/gnome-rr.h,libgnome-desktop/gnome-wall-clock.h,libgnome-desktop/gnome-xkb-info.h")]
public static bool desktop_thumbnail_has_uri (Gdk.Pixbuf pixbuf, string uri);
- [CCode (cheader_filename = "libgnome-desktop/gnome-bg-crossfade.h,libgnome-desktop/gnome-bg.h,libgnome-desktop/gnome-desktop-thumbnail.h,libgnome-desktop/gnome-desktop-utils.h,libgnome-desktop/gnome-pnp-ids.h,libgnome-desktop/gnome-rr-config.h,libgnome-desktop/gnome-rr-labeler.h,libgnome-desktop/gnome-rr.h,libgnome-desktop/gnome-wall-clock.h,libgnome-desktop/gnome-xkb-info.h", cname = "gnome_desktop_thumbnail_is_valid")]
+ [CCode (cheader_filename = "libgnome-desktop/gnome-bg-crossfade.h,libgnome-desktop/gnome-bg-slide-show.h,libgnome-desktop/gnome-bg.h,libgnome-desktop/gnome-desktop-thumbnail.h,libgnome-desktop/gnome-idle-monitor.h,libgnome-desktop/gnome-languages.h,libgnome-desktop/gnome-pnp-ids.h,libgnome-desktop/gnome-rr-config.h,libgnome-desktop/gnome-rr.h,libgnome-desktop/gnome-wall-clock.h,libgnome-desktop/gnome-xkb-info.h")]
public static bool desktop_thumbnail_is_valid (Gdk.Pixbuf pixbuf, string uri, long mtime);
- [CCode (cheader_filename = "libgnome-desktop/gnome-bg-crossfade.h,libgnome-desktop/gnome-bg.h,libgnome-desktop/gnome-desktop-thumbnail.h,libgnome-desktop/gnome-desktop-utils.h,libgnome-desktop/gnome-pnp-ids.h,libgnome-desktop/gnome-rr-config.h,libgnome-desktop/gnome-rr-labeler.h,libgnome-desktop/gnome-rr.h,libgnome-desktop/gnome-wall-clock.h,libgnome-desktop/gnome-xkb-info.h", cname = "gnome_desktop_thumbnail_md5")]
+ [CCode (cheader_filename = "libgnome-desktop/gnome-bg-crossfade.h,libgnome-desktop/gnome-bg-slide-show.h,libgnome-desktop/gnome-bg.h,libgnome-desktop/gnome-desktop-thumbnail.h,libgnome-desktop/gnome-idle-monitor.h,libgnome-desktop/gnome-languages.h,libgnome-desktop/gnome-pnp-ids.h,libgnome-desktop/gnome-rr-config.h,libgnome-desktop/gnome-rr.h,libgnome-desktop/gnome-wall-clock.h,libgnome-desktop/gnome-xkb-info.h")]
[Deprecated (since = "2.22")]
public static string desktop_thumbnail_md5 (string uri);
- [CCode (cheader_filename = "libgnome-desktop/gnome-bg-crossfade.h,libgnome-desktop/gnome-bg.h,libgnome-desktop/gnome-desktop-thumbnail.h,libgnome-desktop/gnome-desktop-utils.h,libgnome-desktop/gnome-pnp-ids.h,libgnome-desktop/gnome-rr-config.h,libgnome-desktop/gnome-rr-labeler.h,libgnome-desktop/gnome-rr.h,libgnome-desktop/gnome-wall-clock.h,libgnome-desktop/gnome-xkb-info.h", cname = "gnome_desktop_thumbnail_path_for_uri")]
+ [CCode (cheader_filename = "libgnome-desktop/gnome-bg-crossfade.h,libgnome-desktop/gnome-bg-slide-show.h,libgnome-desktop/gnome-bg.h,libgnome-desktop/gnome-desktop-thumbnail.h,libgnome-desktop/gnome-idle-monitor.h,libgnome-desktop/gnome-languages.h,libgnome-desktop/gnome-pnp-ids.h,libgnome-desktop/gnome-rr-config.h,libgnome-desktop/gnome-rr.h,libgnome-desktop/gnome-wall-clock.h,libgnome-desktop/gnome-xkb-info.h")]
public static string desktop_thumbnail_path_for_uri (string uri, Gnome.DesktopThumbnailSize size);
- [CCode (cheader_filename = "libgnome-desktop/gnome-bg-crossfade.h,libgnome-desktop/gnome-bg.h,libgnome-desktop/gnome-desktop-thumbnail.h,libgnome-desktop/gnome-desktop-utils.h,libgnome-desktop/gnome-pnp-ids.h,libgnome-desktop/gnome-rr-config.h,libgnome-desktop/gnome-rr-labeler.h,libgnome-desktop/gnome-rr.h,libgnome-desktop/gnome-wall-clock.h,libgnome-desktop/gnome-xkb-info.h", cname = "gnome_desktop_thumbnail_scale_down_pixbuf")]
+ [CCode (cheader_filename = "libgnome-desktop/gnome-bg-crossfade.h,libgnome-desktop/gnome-bg-slide-show.h,libgnome-desktop/gnome-bg.h,libgnome-desktop/gnome-desktop-thumbnail.h,libgnome-desktop/gnome-idle-monitor.h,libgnome-desktop/gnome-languages.h,libgnome-desktop/gnome-pnp-ids.h,libgnome-desktop/gnome-rr-config.h,libgnome-desktop/gnome-rr.h,libgnome-desktop/gnome-wall-clock.h,libgnome-desktop/gnome-xkb-info.h")]
public static Gdk.Pixbuf desktop_thumbnail_scale_down_pixbuf (Gdk.Pixbuf pixbuf, int dest_width, int dest_height);
- [CCode (cheader_filename = "libgnome-desktop/gnome-bg-crossfade.h,libgnome-desktop/gnome-bg.h,libgnome-desktop/gnome-desktop-thumbnail.h,libgnome-desktop/gnome-desktop-utils.h,libgnome-desktop/gnome-pnp-ids.h,libgnome-desktop/gnome-rr-config.h,libgnome-desktop/gnome-rr-labeler.h,libgnome-desktop/gnome-rr.h,libgnome-desktop/gnome-wall-clock.h,libgnome-desktop/gnome-xkb-info.h", cname = "gnome_rr_error_quark")]
- public static GLib.Quark rr_error_quark ();
+ [CCode (array_length = false, array_null_terminated = true, cheader_filename = "libgnome-desktop/gnome-bg-crossfade.h,libgnome-desktop/gnome-bg-slide-show.h,libgnome-desktop/gnome-bg.h,libgnome-desktop/gnome-desktop-thumbnail.h,libgnome-desktop/gnome-idle-monitor.h,libgnome-desktop/gnome-languages.h,libgnome-desktop/gnome-pnp-ids.h,libgnome-desktop/gnome-rr-config.h,libgnome-desktop/gnome-rr.h,libgnome-desktop/gnome-wall-clock.h,libgnome-desktop/gnome-xkb-info.h")]
+ public static string[] get_all_languages ();
+ [CCode (array_length = false, array_null_terminated = true, cheader_filename = "libgnome-desktop/gnome-bg-crossfade.h,libgnome-desktop/gnome-bg-slide-show.h,libgnome-desktop/gnome-bg.h,libgnome-desktop/gnome-desktop-thumbnail.h,libgnome-desktop/gnome-idle-monitor.h,libgnome-desktop/gnome-languages.h,libgnome-desktop/gnome-pnp-ids.h,libgnome-desktop/gnome-rr-config.h,libgnome-desktop/gnome-rr.h,libgnome-desktop/gnome-wall-clock.h,libgnome-desktop/gnome-xkb-info.h")]
+ public static string[] get_all_locales ();
+ [CCode (cheader_filename = "libgnome-desktop/gnome-bg-crossfade.h,libgnome-desktop/gnome-bg-slide-show.h,libgnome-desktop/gnome-bg.h,libgnome-desktop/gnome-desktop-thumbnail.h,libgnome-desktop/gnome-idle-monitor.h,libgnome-desktop/gnome-languages.h,libgnome-desktop/gnome-pnp-ids.h,libgnome-desktop/gnome-rr-config.h,libgnome-desktop/gnome-rr.h,libgnome-desktop/gnome-wall-clock.h,libgnome-desktop/gnome-xkb-info.h")]
+ public static string get_country_from_code (string code, string? translation);
+ [CCode (cheader_filename = "libgnome-desktop/gnome-bg-crossfade.h,libgnome-desktop/gnome-bg-slide-show.h,libgnome-desktop/gnome-bg.h,libgnome-desktop/gnome-desktop-thumbnail.h,libgnome-desktop/gnome-idle-monitor.h,libgnome-desktop/gnome-languages.h,libgnome-desktop/gnome-pnp-ids.h,libgnome-desktop/gnome-rr-config.h,libgnome-desktop/gnome-rr.h,libgnome-desktop/gnome-wall-clock.h,libgnome-desktop/gnome-xkb-info.h")]
+ public static string get_country_from_locale (string locale, string? translation);
+ [CCode (cheader_filename = "libgnome-desktop/gnome-bg-crossfade.h,libgnome-desktop/gnome-bg-slide-show.h,libgnome-desktop/gnome-bg.h,libgnome-desktop/gnome-desktop-thumbnail.h,libgnome-desktop/gnome-idle-monitor.h,libgnome-desktop/gnome-languages.h,libgnome-desktop/gnome-pnp-ids.h,libgnome-desktop/gnome-rr-config.h,libgnome-desktop/gnome-rr.h,libgnome-desktop/gnome-wall-clock.h,libgnome-desktop/gnome-xkb-info.h")]
+ public static bool get_input_source_from_locale (string locale, out unowned string type, out unowned string id);
+ [CCode (cheader_filename = "libgnome-desktop/gnome-bg-crossfade.h,libgnome-desktop/gnome-bg-slide-show.h,libgnome-desktop/gnome-bg.h,libgnome-desktop/gnome-desktop-thumbnail.h,libgnome-desktop/gnome-idle-monitor.h,libgnome-desktop/gnome-languages.h,libgnome-desktop/gnome-pnp-ids.h,libgnome-desktop/gnome-rr-config.h,libgnome-desktop/gnome-rr.h,libgnome-desktop/gnome-wall-clock.h,libgnome-desktop/gnome-xkb-info.h")]
+ public static string get_language_from_code (string code, string? translation);
+ [CCode (cheader_filename = "libgnome-desktop/gnome-bg-crossfade.h,libgnome-desktop/gnome-bg-slide-show.h,libgnome-desktop/gnome-bg.h,libgnome-desktop/gnome-desktop-thumbnail.h,libgnome-desktop/gnome-idle-monitor.h,libgnome-desktop/gnome-languages.h,libgnome-desktop/gnome-pnp-ids.h,libgnome-desktop/gnome-rr-config.h,libgnome-desktop/gnome-rr.h,libgnome-desktop/gnome-wall-clock.h,libgnome-desktop/gnome-xkb-info.h")]
+ public static string get_language_from_locale (string locale, string? translation);
+ [CCode (cheader_filename = "libgnome-desktop/gnome-bg-crossfade.h,libgnome-desktop/gnome-bg-slide-show.h,libgnome-desktop/gnome-bg.h,libgnome-desktop/gnome-desktop-thumbnail.h,libgnome-desktop/gnome-idle-monitor.h,libgnome-desktop/gnome-languages.h,libgnome-desktop/gnome-pnp-ids.h,libgnome-desktop/gnome-rr-config.h,libgnome-desktop/gnome-rr.h,libgnome-desktop/gnome-wall-clock.h,libgnome-desktop/gnome-xkb-info.h")]
+ public static bool language_has_translations (string code);
+ [CCode (cheader_filename = "libgnome-desktop/gnome-bg-crossfade.h,libgnome-desktop/gnome-bg-slide-show.h,libgnome-desktop/gnome-bg.h,libgnome-desktop/gnome-desktop-thumbnail.h,libgnome-desktop/gnome-idle-monitor.h,libgnome-desktop/gnome-languages.h,libgnome-desktop/gnome-pnp-ids.h,libgnome-desktop/gnome-rr-config.h,libgnome-desktop/gnome-rr.h,libgnome-desktop/gnome-wall-clock.h,libgnome-desktop/gnome-xkb-info.h")]
+ public static string normalize_locale (string locale);
+ [CCode (cheader_filename = "libgnome-desktop/gnome-bg-crossfade.h,libgnome-desktop/gnome-bg-slide-show.h,libgnome-desktop/gnome-bg.h,libgnome-desktop/gnome-desktop-thumbnail.h,libgnome-desktop/gnome-idle-monitor.h,libgnome-desktop/gnome-languages.h,libgnome-desktop/gnome-pnp-ids.h,libgnome-desktop/gnome-rr-config.h,libgnome-desktop/gnome-rr.h,libgnome-desktop/gnome-wall-clock.h,libgnome-desktop/gnome-xkb-info.h")]
+ public static bool parse_locale (string locale, out string language_codep, out string country_codep, out string codesetp, out string modifierp);
}
diff --git a/lib/Makefile.am b/lib/Makefile.am
index 6569c9cb..b7fae014 100644
--- a/lib/Makefile.am
+++ b/lib/Makefile.am
@@ -10,6 +10,7 @@ indicator_keyboard_service_VALAFLAGS = $(AM_VALAFLAGS) \
--pkg posix \
--pkg pangocairo \
--pkg gtk+-3.0 \
+ --pkg GDesktopEnums-3.0 \
--pkg gnome-desktop-3.0 \
--pkg Xkl-1.0 \
--pkg libgnomekbd \