[Xfce4-commits] <libxfce4ui:new-sm-client> use guint8 instead of guchar for priority to make the API less weird

Brian J. Tarricone noreply at xfce.org
Tue Oct 6 08:38:01 CEST 2009


Updating branch refs/heads/kelnos/new-sm-client
         to 84cd0e06784a873e7bd3545e36658f11812bdd00 (commit)
       from cefce6747008210fdc97b84e96f2f0624a3767a7 (commit)

commit 84cd0e06784a873e7bd3545e36658f11812bdd00
Author: Brian J. Tarricone <brian at tarricone.org>
Date:   Mon Oct 5 23:37:37 2009 -0700

    use guint8 instead of guchar for priority to make the API less weird

 libxfce4ui/xfce-sm-client.c |    6 +++---
 libxfce4ui/xfce-sm-client.h |    4 ++--
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/libxfce4ui/xfce-sm-client.c b/libxfce4ui/xfce-sm-client.c
index 8177d01..ace857f 100644
--- a/libxfce4ui/xfce-sm-client.c
+++ b/libxfce4ui/xfce-sm-client.c
@@ -141,7 +141,7 @@ struct _XfceSMClient
     XfceSMClientState state;
     XfceSMClientRestartStyle restart_style;
 
-    guchar priority;
+    guint8 priority;
 
     gchar *client_id;
 
@@ -1961,7 +1961,7 @@ xfce_sm_client_set_restart_style(XfceSMClient *sm_client,
  **/
 void
 xfce_sm_client_set_priority(XfceSMClient *sm_client,
-                            guchar priority)
+                            guint8 priority)
 {
     g_return_if_fail(XFCE_IS_SM_CLIENT(sm_client));
 
@@ -2101,7 +2101,7 @@ xfce_sm_client_get_restart_style(XfceSMClient *sm_client)
  *
  * Returns: a value from #G_MININT8 to #G_MAXINT8
  **/
-guchar
+guint8
 xfce_sm_client_get_priority(XfceSMClient *sm_client)
 {
     g_return_val_if_fail(XFCE_IS_SM_CLIENT(sm_client),
diff --git a/libxfce4ui/xfce-sm-client.h b/libxfce4ui/xfce-sm-client.h
index e0acac0..82878e9 100644
--- a/libxfce4ui/xfce-sm-client.h
+++ b/libxfce4ui/xfce-sm-client.h
@@ -102,8 +102,8 @@ void xfce_sm_client_set_restart_style(XfceSMClient *sm_client,
 XfceSMClientRestartStyle xfce_sm_client_get_restart_style(XfceSMClient *sm_client);
 
 void xfce_sm_client_set_priority(XfceSMClient *sm_client,
-                                 guchar priority);
-guchar xfce_sm_client_get_priority(XfceSMClient *sm_client);
+                                 guint8 priority);
+guint8 xfce_sm_client_get_priority(XfceSMClient *sm_client);
 
 void xfce_sm_client_set_current_directory(XfceSMClient *sm_client,
                                           const gchar *current_directory);



More information about the Xfce4-commits mailing list