[gnome-desktop/gobject-gnomerr] GnomeRROutputInfo: rename boolean accessors



commit 46d48ab6ec256498d0dd0a5c97c0388381971cbf
Author: Giovanni Campagna <gcampagna src gnome org>
Date:   Thu Jan 6 20:12:42 2011 +0100

    GnomeRROutputInfo: rename boolean accessors
    
    Rename get_connected() to is_connected() and get_active() to
    is_active(), following the normal convention.

 libgnome-desktop/gnome-rr-config.h      |    4 ++--
 libgnome-desktop/gnome-rr-output-info.c |    8 ++++----
 2 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/libgnome-desktop/gnome-rr-config.h b/libgnome-desktop/gnome-rr-config.h
index 5581e2f..b960eb5 100644
--- a/libgnome-desktop/gnome-rr-config.h
+++ b/libgnome-desktop/gnome-rr-config.h
@@ -61,7 +61,7 @@ GType gnome_rr_output_info_get_type (void);
 
 char *gnome_rr_output_info_get_name (GnomeRROutputInfo *self);
 
-gboolean gnome_rr_output_info_get_active (GnomeRROutputInfo *self);
+gboolean gnome_rr_output_info_is_active  (GnomeRROutputInfo *self);
 void     gnome_rr_output_info_set_active (GnomeRROutputInfo *self, gboolean active);
 
 void gnome_rr_output_info_get_geometry (GnomeRROutputInfo *self, int *x, int *y, int *width, int *height);
@@ -73,7 +73,7 @@ void gnome_rr_output_info_set_refresh_rate (GnomeRROutputInfo *self, int rate);
 GnomeRRRotation gnome_rr_output_info_get_rotation (GnomeRROutputInfo *self);
 void            gnome_rr_output_info_set_rotation (GnomeRROutputInfo *self, GnomeRRRotation rotation);
 
-gboolean gnome_rr_output_info_get_connected    (GnomeRROutputInfo *self);
+gboolean gnome_rr_output_info_is_connected     (GnomeRROutputInfo *self);
 void     gnome_rr_output_info_get_vendor       (GnomeRROutputInfo *self, gchar* vendor);
 guint    gnome_rr_output_info_get_product      (GnomeRROutputInfo *self);
 guint    gnome_rr_output_info_get_serial       (GnomeRROutputInfo *self);
diff --git a/libgnome-desktop/gnome-rr-output-info.c b/libgnome-desktop/gnome-rr-output-info.c
index fedb9bb..8936eed 100644
--- a/libgnome-desktop/gnome-rr-output-info.c
+++ b/libgnome-desktop/gnome-rr-output-info.c
@@ -76,11 +76,11 @@ char *gnome_rr_output_info_get_name (GnomeRROutputInfo *self)
 }
 
 /**
- * gnome_rr_output_info_get_active:
+ * gnome_rr_output_info_is_active:
  *
  * Returns: whether there is a CRTC assigned to this output (i.e. a signal is being sent to it)
  */
-gboolean gnome_rr_output_info_get_active (GnomeRROutputInfo *self)
+gboolean gnome_rr_output_info_is_active (GnomeRROutputInfo *self)
 {
     g_return_val_if_fail (GNOME_IS_RR_OUTPUT_INFO (self), FALSE);
 
@@ -156,11 +156,11 @@ void gnome_rr_output_info_set_rotation (GnomeRROutputInfo *self, GnomeRRRotation
 }
 
 /**
- * gnome_rr_output_info_get_connected:
+ * gnome_rr_output_info_is_connected:
  *
  * Returns: whether the output is physically connected to a monitor
  */
-gboolean gnome_rr_output_info_get_connected (GnomeRROutputInfo *self)
+gboolean gnome_rr_output_info_is_connected (GnomeRROutputInfo *self)
 {
     g_return_val_if_fail (GNOME_IS_RR_OUTPUT_INFO (self), FALSE);
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]