gdm r6439 - in trunk: . gui/simple-greeter
- From: mccann svn gnome org
- To: svn-commits-list gnome org
- Subject: gdm r6439 - in trunk: . gui/simple-greeter
- Date: Tue, 26 Aug 2008 19:02:06 +0000 (UTC)
Author: mccann
Date: Tue Aug 26 19:02:05 2008
New Revision: 6439
URL: http://svn.gnome.org/viewvc/gdm?rev=6439&view=rev
Log:
2008-08-26 William Jon McCann <jmccann redhat com>
* gui/simple-greeter/gdm-clock-widget.c (gdm_clock_widget_init):
Pack label in a box.
Modified:
trunk/ChangeLog
trunk/gui/simple-greeter/gdm-clock-widget.c
Modified: trunk/gui/simple-greeter/gdm-clock-widget.c
==============================================================================
--- trunk/gui/simple-greeter/gdm-clock-widget.c (original)
+++ trunk/gui/simple-greeter/gdm-clock-widget.c Tue Aug 26 19:02:05 2008
@@ -44,14 +44,14 @@
{
GtkWidget *label;
char *time_format;
- guint update_clock_id;
- guint should_show_seconds : 1;
+ guint update_clock_id;
+ guint should_show_seconds : 1;
};
static void gdm_clock_widget_class_init (GdmClockWidgetClass *klass);
static void gdm_clock_widget_init (GdmClockWidget *clock_widget);
static void gdm_clock_widget_finalize (GObject *object);
-static gboolean update_timeout_cb (GdmClockWidget *clock);
+static gboolean update_timeout_cb (GdmClockWidget *clock);
G_DEFINE_TYPE (GdmClockWidget, gdm_clock_widget, GTK_TYPE_ALIGNMENT)
@@ -174,12 +174,17 @@
static void
gdm_clock_widget_init (GdmClockWidget *widget)
{
+ GtkWidget *box;
+
widget->priv = GDM_CLOCK_WIDGET_GET_PRIVATE (widget);
+ box = gtk_hbox_new (FALSE, 6);
+ gtk_widget_show (box);
+ gtk_container_add (GTK_CONTAINER (widget), box);
+
widget->priv->label = gtk_label_new ("");
gtk_widget_show (widget->priv->label);
-
- gtk_container_add (GTK_CONTAINER (widget), widget->priv->label);
+ gtk_box_pack_start (GTK_BOX (box), widget->priv->label, FALSE, FALSE, 0);
widget->priv->time_format = get_time_format (widget);
update_timeout_cb (widget);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]