[Goodies-commits] r2897 - in xfce4-time-out-plugin/trunk: . panel-plugin
Jannis Pohlmann
jannis at xfce.org
Sun Jul 8 17:36:34 CEST 2007
Author: jannis
Date: 2007-07-08 15:36:34 +0000 (Sun, 08 Jul 2007)
New Revision: 2897
Modified:
xfce4-time-out-plugin/trunk/ChangeLog
xfce4-time-out-plugin/trunk/panel-plugin/time-out.c
Log:
* panel-plugin/time-out.c: Change the way labels and spin
buttons are attached to the properties dialog table. This
fixes bug #3310.
Modified: xfce4-time-out-plugin/trunk/ChangeLog
===================================================================
--- xfce4-time-out-plugin/trunk/ChangeLog 2007-07-08 15:12:26 UTC (rev 2896)
+++ xfce4-time-out-plugin/trunk/ChangeLog 2007-07-08 15:36:34 UTC (rev 2897)
@@ -1,5 +1,11 @@
2007-07-08 Jannis Pohlmann <jannis at xfce.org>
+ * panel-plugin/time-out.c: Change the way labels and spin
+ buttons are attached to the properties dialog table. This
+ fixes bug #3310.
+
+2007-07-08 Jannis Pohlmann <jannis at xfce.org>
+
* configure.in.in: Post-release version bump.
2007-07-08 Jannis Pohlmann <jannis at xfce.org>
Modified: xfce4-time-out-plugin/trunk/panel-plugin/time-out.c
===================================================================
--- xfce4-time-out-plugin/trunk/panel-plugin/time-out.c 2007-07-08 15:12:26 UTC (rev 2896)
+++ xfce4-time-out-plugin/trunk/panel-plugin/time-out.c 2007-07-08 15:36:34 UTC (rev 2897)
@@ -422,13 +422,13 @@
/* Create break countdown time label */
label = gtk_label_new (_("Time between breaks (minutes):"));
gtk_misc_set_alignment (GTK_MISC (label), 1.0, 0.5);
- gtk_table_attach_defaults (GTK_TABLE (table), label, 0, 1, 0, 1);
+ gtk_table_attach (GTK_TABLE (table), label, 0, 1, 0, 1, GTK_SHRINK, GTK_FILL, 1.0, 0.5);
gtk_widget_show (label);
/* Create break countdown time spin */
spin = gtk_spin_button_new_with_range (1, 24 * 60, 1);
gtk_spin_button_set_value (GTK_SPIN_BUTTON (spin), time_out->break_countdown_seconds / 60);
- gtk_table_attach_defaults (GTK_TABLE (table), spin, 1, 2, 0, 1);
+ gtk_table_attach (GTK_TABLE (table), spin, 1, 2, 0, 1, GTK_EXPAND | GTK_FILL, GTK_FILL, 0.0, 0.5);
gtk_widget_show (spin);
/* Store reference on the spin button in the plugin */
@@ -437,27 +437,27 @@
/* Create lock countdown time label */
label = gtk_label_new (_("Break length (minutes):"));
gtk_misc_set_alignment (GTK_MISC (label), 1.0, 0.5);
- gtk_table_attach_defaults (GTK_TABLE (table), label, 0, 1, 1, 2);
+ gtk_table_attach (GTK_TABLE (table), label, 0, 1, 1, 2, GTK_SHRINK, GTK_FILL, 1.0, 0.5);
gtk_widget_show (label);
/* Create lock countdown time spin */
spin = gtk_spin_button_new_with_range (1, 24 * 60, 1);
gtk_spin_button_set_value (GTK_SPIN_BUTTON (spin), time_out->lock_countdown_seconds / 60);
g_signal_connect (spin, "value-changed", G_CALLBACK (time_out_lock_countdown_seconds_changed), time_out);
- gtk_table_attach_defaults (GTK_TABLE (table), spin, 1, 2, 1, 2);
+ gtk_table_attach (GTK_TABLE (table), spin, 1, 2, 1, 2, GTK_EXPAND | GTK_FILL, GTK_FILL, 0.0, 0.5);
gtk_widget_show (spin);
/* Create postpone countdown time label */
label = gtk_label_new (_("Postpone length (minutes):"));
gtk_misc_set_alignment (GTK_MISC (label), 1.0, 0.5);
- gtk_table_attach_defaults (GTK_TABLE (table), label, 0, 1, 2, 3);
+ gtk_table_attach (GTK_TABLE (table), label, 0, 1, 2, 3, GTK_SHRINK, GTK_FILL, 1.0, 0.5);
gtk_widget_show (label);
/* Create postpone countdown time spin */
spin = gtk_spin_button_new_with_range (1, 24 * 60, 1);
gtk_spin_button_set_value (GTK_SPIN_BUTTON (spin), time_out->postpone_countdown_seconds / 60);
g_signal_connect (spin, "value-changed", G_CALLBACK (time_out_postpone_countdown_seconds_changed), time_out);
- gtk_table_attach_defaults (GTK_TABLE (table), spin, 1, 2, 2, 3);
+ gtk_table_attach (GTK_TABLE (table), spin, 1, 2, 2, 3, GTK_EXPAND | GTK_FILL, GTK_FILL, 0.0, 0.5);
gtk_widget_show (spin);
/* Create behaviour section */
More information about the Goodies-commits
mailing list