aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2012-06-14 20:17:43 -0500
committerCharles Kerr <charles.kerr@canonical.com>2012-06-14 20:17:43 -0500
commit0e41b34b88a06bf0ff9e02df6052b5dff846d22b (patch)
treec56417afb0e9442bff39a9ab6f71851b942b2c85 /src
parent537a40e055d701e5d735f1bf47a4875e3461df02 (diff)
downloadayatana-indicator-session-0e41b34b88a06bf0ff9e02df6052b5dff846d22b.tar.gz
ayatana-indicator-session-0e41b34b88a06bf0ff9e02df6052b5dff846d22b.tar.bz2
ayatana-indicator-session-0e41b34b88a06bf0ff9e02df6052b5dff846d22b.zip
right-align the 'currently logged in' checkmark as per mpt's 12.10 spec
Diffstat (limited to 'src')
-rw-r--r--src/user-widget.c15
1 files changed, 7 insertions, 8 deletions
diff --git a/src/user-widget.c b/src/user-widget.c
index 62a7911..3804f61 100644
--- a/src/user-widget.c
+++ b/src/user-widget.c
@@ -105,16 +105,16 @@ user_widget_init (UserWidget *self)
// Create the UI elements.
priv->user_image = gtk_image_new ();
- gtk_misc_set_alignment(GTK_MISC(priv->user_image), 0.0, 0.0);
+ gtk_misc_set_alignment(GTK_MISC(priv->user_image), 0.0, 0.0);
gtk_misc_set_padding (GTK_MISC(priv->user_image),0, 4.0);
priv->user_name = gtk_label_new ("");
priv->container = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
- priv->tick_icon = gtk_image_new_from_icon_name ("account-logged-in",
+ priv->tick_icon = gtk_image_new_from_icon_name ("account-logged-in",
GTK_ICON_SIZE_MENU);
- gtk_misc_set_alignment(GTK_MISC(priv->tick_icon), 1.0, 0.5);
+ gtk_misc_set_alignment(GTK_MISC(priv->tick_icon), 1.0, 0.5);
// Pack it together
gtk_box_pack_start (GTK_BOX (priv->container),
@@ -127,10 +127,10 @@ user_widget_init (UserWidget *self)
FALSE,
FALSE,
3);
- gtk_box_pack_start (GTK_BOX(priv->container),
- priv->tick_icon,
- FALSE,
- FALSE, 5);
+ gtk_box_pack_end (GTK_BOX(priv->container),
+ priv->tick_icon,
+ FALSE,
+ FALSE, 5);
gtk_widget_show_all (priv->container);
gtk_container_add (GTK_CONTAINER (self), priv->container);
@@ -171,7 +171,6 @@ user_widget_primitive_draw_cb_gtk_3 (GtkWidget *widget,
cairo_t* cr,
gpointer user_data)
{
-
g_return_val_if_fail(IS_USER_WIDGET(user_data), FALSE);
UserWidget* meta = USER_WIDGET(user_data);
UserWidgetPrivate * priv = USER_WIDGET_GET_PRIVATE(meta);