From be90d5341e81d2fab644b9deddd121a5163c2ac6 Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Fri, 7 Aug 2009 19:36:33 +0100 Subject: Using the user name --- src/indicator-sus.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/indicator-sus.c') diff --git a/src/indicator-sus.c b/src/indicator-sus.c index 18b6c44..d1296e0 100644 --- a/src/indicator-sus.c +++ b/src/indicator-sus.c @@ -25,6 +25,7 @@ static GtkWidget * loading_item = NULL; static DBusGConnection * connection = NULL; static DBusGProxy * proxy = NULL; +static DBusGProxy * status_proxy = NULL; typedef enum { STATUS_SECTION, @@ -41,7 +42,7 @@ static guint session_menu_pos_offset (void); GtkLabel * get_label (void) { - GtkLabel * returnval = GTK_LABEL(gtk_label_new("Ted Gould")); + GtkLabel * returnval = GTK_LABEL(gtk_label_new(g_get_user_name())); gtk_widget_show(GTK_WIDGET(returnval)); return returnval; } -- cgit v1.2.3 From 348bd323b895f5d1fd41a4b083e4b49b74717037 Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Fri, 7 Aug 2009 19:37:37 +0100 Subject: Clean it up. --- src/indicator-sus.c | 1 - 1 file changed, 1 deletion(-) (limited to 'src/indicator-sus.c') diff --git a/src/indicator-sus.c b/src/indicator-sus.c index d1296e0..4d8e176 100644 --- a/src/indicator-sus.c +++ b/src/indicator-sus.c @@ -25,7 +25,6 @@ static GtkWidget * loading_item = NULL; static DBusGConnection * connection = NULL; static DBusGProxy * proxy = NULL; -static DBusGProxy * status_proxy = NULL; typedef enum { STATUS_SECTION, -- cgit v1.2.3 From d109578b8a84e07678762906021234404e53a8bf Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Fri, 7 Aug 2009 20:19:44 +0100 Subject: Getting an image built for offline --- src/indicator-sus.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/indicator-sus.c') diff --git a/src/indicator-sus.c b/src/indicator-sus.c index 4d8e176..9d1c66c 100644 --- a/src/indicator-sus.c +++ b/src/indicator-sus.c @@ -49,7 +49,8 @@ get_label (void) GtkImage * get_icon (void) { - return NULL; + GtkImage * image = GTK_IMAGE(gtk_image_new_from_icon_name("user-offline", GTK_ICON_SIZE_MENU)); + return image; } static void -- cgit v1.2.3