aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSrinivasa Ragavan <sragavan@src.gnome.org>2006-01-28 01:33:17 +0800
committerSrinivasa Ragavan <sragavan@src.gnome.org>2006-01-28 01:33:17 +0800
commitec5a2a17d6c2db4ea2381f8714c97734dd2afbd3 (patch)
treed500c582798f076efb330c4ab1dc037f0866bfb1
parent45f799eb8632142a31d1dbf3572c2672bb36c747 (diff)
downloadgsoc2013-evolution-ec5a2a17d6c2db4ea2381f8714c97734dd2afbd3.tar
gsoc2013-evolution-ec5a2a17d6c2db4ea2381f8714c97734dd2afbd3.tar.gz
gsoc2013-evolution-ec5a2a17d6c2db4ea2381f8714c97734dd2afbd3.tar.bz2
gsoc2013-evolution-ec5a2a17d6c2db4ea2381f8714c97734dd2afbd3.tar.lz
gsoc2013-evolution-ec5a2a17d6c2db4ea2381f8714c97734dd2afbd3.tar.xz
gsoc2013-evolution-ec5a2a17d6c2db4ea2381f8714c97734dd2afbd3.tar.zst
gsoc2013-evolution-ec5a2a17d6c2db4ea2381f8714c97734dd2afbd3.zip
Changed the layout of the alarm dialog.
svn path=/trunk/; revision=31329
-rw-r--r--calendar/ChangeLog15
-rw-r--r--calendar/gui/dialogs/alarm-list-dialog.c44
-rw-r--r--calendar/gui/dialogs/alarm-list-dialog.glade10
-rw-r--r--calendar/gui/dialogs/event-page.c128
-rw-r--r--calendar/gui/dialogs/event-page.glade159
5 files changed, 214 insertions, 142 deletions
diff --git a/calendar/ChangeLog b/calendar/ChangeLog
index dd92e06d0c..1c29c78c4d 100644
--- a/calendar/ChangeLog
+++ b/calendar/ChangeLog
@@ -1,3 +1,18 @@
+2006-01-27 Srinivasa Ragavan <sragavan@novell.com>
+
+ * gui/dialogs/alarm-list-dialog.c (get_widgets),
+ (alarm_list_dialog_run), (alarm_list_dialog_peek): Added a function to
+ peek parts of a dialog.
+ * gui/dialogs/alarm-list-dialog.glade: Changed the layout of the alarm
+ dialog.
+ * gui/dialogs/event-page.c (event_page_init), (clear_widgets),
+ (sensitize_widgets), (event_page_fill_widgets),
+ (event_page_fill_component), (get_widgets), (alarm_changed_cb),
+ (alarm_store_inserted_cb), (alarm_store_deleted_cb),
+ (alarm_custom_clicked_cb), (init_widgets): Added code to handle the
+ new alarm dialog layout.
+ * gui/dialogs/event-page.glade: Changed the alarm dialog layout.
+
2006-01-23 Tino Meinen <a.t.meinen@chello.nl>
Fixes #325831
* calendar.error.xml: Corrected a grammatical error in a message
diff --git a/calendar/gui/dialogs/alarm-list-dialog.c b/calendar/gui/dialogs/alarm-list-dialog.c
index 01ef06abfe..f1cacfa159 100644
--- a/calendar/gui/dialogs/alarm-list-dialog.c
+++ b/calendar/gui/dialogs/alarm-list-dialog.c
@@ -66,6 +66,8 @@ typedef struct {
GtkWidget *list;
GtkWidget *add;
GtkWidget *delete;
+ GtkWidget *box;
+
} Dialog;
/* Gets the widgets from the XML file and returns TRUE if they are all available. */
@@ -78,6 +80,7 @@ get_widgets (Dialog *dialog)
if (!dialog->toplevel)
return FALSE;
+ dialog->box = GW ("vbox53");
dialog->list = GW ("list");
dialog->add = GW ("add");
dialog->delete = GW ("delete");
@@ -266,3 +269,44 @@ alarm_list_dialog_run (GtkWidget *parent, ECal *ecal, EAlarmList *list_store)
return response_id == GTK_RESPONSE_OK ? TRUE : FALSE;
}
+
+GtkWidget *
+alarm_list_dialog_peek (ECal *ecal, EAlarmList *list_store)
+{
+ Dialog *dialog;
+ int response_id;
+ GList *icon_list;
+ char *gladefile;
+
+ dialog = (Dialog *)g_new (Dialog, 1);
+ dialog->ecal = ecal;
+ dialog->list_store = list_store;
+
+ gladefile = g_build_filename (EVOLUTION_GLADEDIR,
+ "alarm-list-dialog.glade",
+ NULL);
+ dialog->xml = glade_xml_new (gladefile, NULL, NULL);
+ g_free (gladefile);
+
+ if (!dialog->xml) {
+ g_message (G_STRLOC ": Could not load the Glade XML file!");
+ return FALSE;
+ }
+
+ if (!get_widgets (dialog)) {
+ g_object_unref(dialog->xml);
+ return FALSE;
+ }
+
+ init_widgets (dialog);
+
+ sensitize_buttons (dialog);
+
+ g_object_unref (dialog->xml);
+
+ /* Free the other stuff when the parent really gets destroyed. */
+ g_object_set_data_full (dialog->box, "toplevel", dialog->toplevel, gtk_widget_destroy);
+ g_object_set_data_full (dialog->box, "dialog", dialog, g_free);
+
+ return dialog->box;
+}
diff --git a/calendar/gui/dialogs/alarm-list-dialog.glade b/calendar/gui/dialogs/alarm-list-dialog.glade
index 886b1a47b9..7a0f9e75b9 100644
--- a/calendar/gui/dialogs/alarm-list-dialog.glade
+++ b/calendar/gui/dialogs/alarm-list-dialog.glade
@@ -17,6 +17,8 @@
<property name="skip_pager_hint">False</property>
<property name="type_hint">GDK_WINDOW_TYPE_HINT_DIALOG</property>
<property name="gravity">GDK_GRAVITY_NORTH_WEST</property>
+ <property name="focus_on_map">True</property>
+ <property name="urgency_hint">False</property>
<property name="has_separator">False</property>
<child internal-child="vbox">
@@ -66,7 +68,6 @@
<child>
<widget class="GtkVBox" id="vbox53">
- <property name="border_width">12</property>
<property name="visible">True</property>
<property name="homogeneous">False</property>
<property name="spacing">12</property>
@@ -93,6 +94,9 @@
<property name="rules_hint">False</property>
<property name="reorderable">False</property>
<property name="enable_search">True</property>
+ <property name="fixed_height_mode">False</property>
+ <property name="hover_selection">False</property>
+ <property name="hover_expand">False</property>
</widget>
</child>
</widget>
@@ -165,6 +169,10 @@
<property name="yalign">0.5</property>
<property name="xpad">0</property>
<property name="ypad">0</property>
+ <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
+ <property name="width_chars">-1</property>
+ <property name="single_line_mode">False</property>
+ <property name="angle">0</property>
</widget>
<packing>
<property name="padding">0</property>
diff --git a/calendar/gui/dialogs/event-page.c b/calendar/gui/dialogs/event-page.c
index c27481d1db..c400aaa80f 100644
--- a/calendar/gui/dialogs/event-page.c
+++ b/calendar/gui/dialogs/event-page.c
@@ -110,10 +110,9 @@ struct _EventPagePrivate {
gboolean show_time_as_busy;
GtkWidget *alarm_dialog;
- GtkWidget *alarm;
GtkWidget *alarm_time;
GtkWidget *alarm_warning;
- GtkWidget *alarm_custom;
+ GtkWidget *alarm_box;
GtkWidget *categories_btn;
GtkWidget *categories;
@@ -229,9 +228,8 @@ event_page_init (EventPage *epage)
priv->classification = E_CAL_COMPONENT_CLASS_NONE;
priv->show_time_as_busy = FALSE;
priv->alarm_dialog = NULL;
- priv->alarm = NULL;
priv->alarm_time = NULL;
- priv->alarm_custom = NULL;
+ priv->alarm_box = NULL;
priv->categories_btn = NULL;
priv->categories = NULL;
priv->sod = NULL;
@@ -323,17 +321,21 @@ static const int classification_map[] = {
};
enum {
+ ALARM_NONE,
ALARM_15_MINUTES,
ALARM_1_HOUR,
ALARM_1_DAY,
- ALARM_USER_TIME
+ ALARM_USER_TIME,
+ ALARM_CUSTOM
};
static const int alarm_map[] = {
+ ALARM_NONE,
ALARM_15_MINUTES,
ALARM_1_HOUR,
ALARM_1_DAY,
ALARM_USER_TIME,
+ ALARM_CUSTOM,
-1
};
@@ -555,8 +557,7 @@ clear_widgets (EventPage *epage)
set_busy_time_menu (epage, TRUE);
/* Alarm */
- e_dialog_toggle_set (priv->alarm, FALSE);
- e_dialog_option_menu_set (priv->alarm_time, ALARM_15_MINUTES, alarm_map);
+ e_dialog_option_menu_set (priv->alarm_time, ALARM_NONE, alarm_map);
/* Categories */
e_dialog_editable_set (priv->categories, NULL);
@@ -798,24 +799,24 @@ sensitize_widgets (EventPage *epage)
sensitize = !read_only && sens;
- custom = is_custom_alarm_store (priv->alarm_list_store, priv->old_summary, priv->alarm_units, priv->alarm_interval, NULL);
- alarm = e_dialog_toggle_get (priv->alarm);
+ alarm = e_dialog_option_menu_get (priv->alarm_time, alarm_map) != ALARM_NONE;
+ custom = is_custom_alarm_store (priv->alarm_list_store, priv->old_summary, priv->alarm_units, priv->alarm_interval, NULL) ||
+ e_dialog_option_menu_get (priv->alarm_time, alarm_map) == ALARM_CUSTOM ? TRUE:FALSE;
if (alarm && !priv->alarm_icon) {
- priv->alarm_icon = create_image_event_box ("stock_bell", "This event has alarms");
+ priv->alarm_icon = create_image_event_box ("stock_bell", _("This event has alarms"));
gtk_box_pack_start ((GtkBox *)priv->status_icons, priv->alarm_icon, FALSE, FALSE, 3);
}
gtk_entry_set_editable (GTK_ENTRY (priv->summary), sensitize);
gtk_entry_set_editable (GTK_ENTRY (priv->location), sensitize);
+ gtk_widget_set_sensitive (priv->alarm_box, custom);
gtk_widget_set_sensitive (priv->start_time, sensitize);
gtk_widget_set_sensitive (priv->start_timezone, sensitize);
gtk_widget_set_sensitive (priv->end_time, sensitize);
gtk_widget_set_sensitive (priv->end_timezone, sensitize);
gtk_widget_set_sensitive (priv->description, sensitize);
- gtk_widget_set_sensitive (priv->alarm, !read_only);
- gtk_widget_set_sensitive (priv->alarm_time, !read_only && !custom && alarm);
- gtk_widget_set_sensitive (priv->alarm_custom, alarm);
+ gtk_widget_set_sensitive (priv->alarm_time, !read_only);
gtk_widget_set_sensitive (priv->categories_btn, sensitize);
/*TODO implement the for portion of the end time selector */
if ( (COMP_EDITOR_PAGE(epage)->flags) & COMP_EDITOR_PAGE_NEW_ITEM ) {
@@ -1125,17 +1126,19 @@ event_page_fill_widgets (CompEditorPage *page, ECalComponent *comp)
enable_busy_time_menu (epage, TRUE);
/* Alarms */
- g_signal_handlers_block_matched (priv->alarm, G_SIGNAL_MATCH_DATA, 0, 0, NULL, NULL, epage);
+ g_signal_handlers_block_matched (priv->alarm_time, G_SIGNAL_MATCH_DATA, 0, 0, NULL, NULL, epage);
+ g_signal_handlers_block_matched (priv->alarm_list_store, G_SIGNAL_MATCH_DATA, 0, 0, NULL, NULL, epage);
+
if (e_cal_component_has_alarms (comp)) {
GList *alarms, *l;
int alarm_type;
- e_dialog_toggle_set (priv->alarm, TRUE);
-
alarms = e_cal_component_get_alarm_uids (comp);
if (!is_custom_alarm_uid_list (comp, alarms, priv->old_summary, priv->alarm_units, priv->alarm_interval, &alarm_type))
e_dialog_option_menu_set (priv->alarm_time, alarm_type, alarm_map);
-
+ else
+ e_dialog_option_menu_set (priv->alarm_time, ALARM_CUSTOM, alarm_map);
+
for (l = alarms; l != NULL; l = l->next) {
ECalComponentAlarm *ca;
@@ -1146,10 +1149,10 @@ event_page_fill_widgets (CompEditorPage *page, ECalComponent *comp)
cal_obj_uid_list_free (alarms);
} else {
- e_dialog_toggle_set (priv->alarm, FALSE);
- e_dialog_option_menu_set (priv->alarm_time, priv->alarm_interval == -1 ? ALARM_15_MINUTES : ALARM_USER_TIME, alarm_map);
+ e_dialog_option_menu_set (priv->alarm_time, ALARM_NONE, alarm_map);
}
- g_signal_handlers_unblock_matched (priv->alarm, G_SIGNAL_MATCH_DATA, 0, 0, NULL, NULL, epage);
+ g_signal_handlers_unblock_matched (priv->alarm_time, G_SIGNAL_MATCH_DATA, 0, 0, NULL, NULL, epage);
+ g_signal_handlers_unblock_matched (priv->alarm_list_store, G_SIGNAL_MATCH_DATA, 0, 0, NULL, NULL, epage);
/* Categories */
e_cal_component_get_categories (comp, &categories);
@@ -1331,8 +1334,8 @@ event_page_fill_component (CompEditorPage *page, ECalComponent *comp)
/* Alarm */
e_cal_component_remove_all_alarms (comp);
- if (e_dialog_toggle_get (priv->alarm)) {
- if (is_custom_alarm_store (priv->alarm_list_store, priv->old_summary, priv->alarm_units, priv->alarm_interval, NULL)) {
+ if (e_dialog_option_menu_get (priv->alarm_time, alarm_map) != ALARM_NONE) {
+ if (e_dialog_option_menu_get (priv->alarm_time, alarm_map) == ALARM_CUSTOM) {
GtkTreeModel *model;
GtkTreeIter iter;
gboolean valid_iter;
@@ -2180,9 +2183,8 @@ get_widgets (EventPage *epage)
gtk_accel_group_ref (page->accel_group);
}
priv->alarm_dialog = GW ("alarm-dialog");
- priv->alarm = GW ("alarm");
+ priv->alarm_box = GW ("custom_box");
priv->alarm_time = GW ("alarm-time");
- priv->alarm_custom = GW ("alarm-custom");
priv->timezone_label = GW ("timezone-label");
priv->start_timezone = GW ("start-timezone");
@@ -2649,7 +2651,7 @@ alarm_changed_cb (GtkWidget *widget, gpointer data)
epage = EVENT_PAGE (data);
priv = epage->priv;
- if (e_dialog_toggle_get (priv->alarm)) {
+ if (e_dialog_option_menu_get (priv->alarm_time, alarm_map) != ALARM_NONE) {
ECalComponentAlarm *ca;
ECalComponentAlarmTrigger trigger;
icalcomponent *icalcomp;
@@ -2667,18 +2669,22 @@ alarm_changed_cb (GtkWidget *widget, gpointer data)
alarm_type = e_dialog_option_menu_get (priv->alarm_time, alarm_map);
switch (alarm_type) {
case ALARM_15_MINUTES:
+ e_alarm_list_clear (priv->alarm_list_store);
trigger.u.rel_duration.minutes = 15;
break;
case ALARM_1_HOUR:
+ e_alarm_list_clear (priv->alarm_list_store);
trigger.u.rel_duration.hours = 1;
break;
case ALARM_1_DAY:
+ e_alarm_list_clear (priv->alarm_list_store);
trigger.u.rel_duration.days = 1;
break;
case ALARM_USER_TIME:
+ e_alarm_list_clear (priv->alarm_list_store);
switch (calendar_config_get_default_reminder_units ()) {
case CAL_DAYS:
trigger.u.rel_duration.days = priv->alarm_interval;
@@ -2693,21 +2699,25 @@ alarm_changed_cb (GtkWidget *widget, gpointer data)
break;
}
break;
+ case ALARM_CUSTOM:
+ gtk_widget_set_sensitive (priv->alarm_box, TRUE);
default:
break;
- }
- e_cal_component_alarm_set_trigger (ca, trigger);
-
- icalcomp = e_cal_component_alarm_get_icalcomponent (ca);
- icalprop = icalproperty_new_x ("1");
- icalproperty_set_x_name (icalprop, "X-EVOLUTION-NEEDS-DESCRIPTION");
- icalcomponent_add_property (icalcomp, icalprop);
-
- e_alarm_list_append (priv->alarm_list_store, NULL, ca);
+ }
+
+ if (alarm_type != ALARM_CUSTOM) {
+ e_cal_component_alarm_set_trigger (ca, trigger);
+
+ icalcomp = e_cal_component_alarm_get_icalcomponent (ca);
+ icalprop = icalproperty_new_x ("1");
+ icalproperty_set_x_name (icalprop, "X-EVOLUTION-NEEDS-DESCRIPTION");
+ icalcomponent_add_property (icalcomp, icalprop);
+ e_alarm_list_append (priv->alarm_list_store, NULL, ca);
+ }
if (!priv->alarm_icon) {
- priv->alarm_icon = create_image_event_box ("stock_bell", "This event has alarms");
+ priv->alarm_icon = create_image_event_box ("stock_bell", _("This event has alarms"));
gtk_box_pack_start ((GtkBox *)priv->status_icons, priv->alarm_icon, FALSE, FALSE, 3);
}
} else {
@@ -2721,6 +2731,18 @@ alarm_changed_cb (GtkWidget *widget, gpointer data)
sensitize_widgets (epage);
}
+static void
+alarm_store_inserted_cb (EAlarmList *alarm_list_store, GtkTreePath *path, GtkTreeIter *iter, gpointer data)
+{
+ field_changed_cb (NULL, data);
+}
+
+static void
+alarm_store_deleted_cb (EAlarmList *alarm_list_store, GtkTreePath *path, gpointer data)
+{
+ field_changed_cb (NULL, data);
+}
+
static void
alarm_custom_clicked_cb (GtkWidget *widget, gpointer data)
{
@@ -2761,8 +2783,6 @@ alarm_custom_clicked_cb (GtkWidget *widget, gpointer data)
/* If the user erases everything, uncheck the alarm toggle */
valid_iter = gtk_tree_model_get_iter_first (GTK_TREE_MODEL (priv->alarm_list_store), &iter);
- if (!valid_iter)
- e_dialog_toggle_set (priv->alarm, FALSE);
sensitize_widgets (epage);
}
@@ -2775,7 +2795,8 @@ init_widgets (EventPage *epage)
GtkTextBuffer *text_buffer;
icaltimezone *zone;
char *menu_label = NULL;
- GtkTreeSelection *selection;
+ GtkTreeSelection *selection;
+ GtkWidget *w, *cus_label, *cus_item, *menu;
priv = epage->priv;
@@ -2821,6 +2842,11 @@ init_widgets (EventPage *epage)
G_CALLBACK (source_changed_cb), epage);
/* Alarms */
priv->alarm_list_store = e_alarm_list_new ();
+ g_signal_connect((GtkTreeModel *)(priv->alarm_list_store), "row-inserted",
+ G_CALLBACK (alarm_store_inserted_cb), epage);
+ g_signal_connect((GtkTreeModel *)(priv->alarm_list_store), "row-deleted",
+ G_CALLBACK (alarm_store_deleted_cb), epage);
+
/* Timezone changed */
g_signal_connect((priv->start_timezone), "changed",
@@ -2854,6 +2880,9 @@ init_widgets (EventPage *epage)
/* Alarm dialog */
g_signal_connect (GTK_DIALOG (priv->alarm_dialog), "response", G_CALLBACK (gtk_widget_hide), priv->alarm_dialog);
+ w = alarm_list_dialog_peek (priv->client, priv->alarm_list_store);
+ gtk_widget_reparent (w, priv->alarm_box);
+ gtk_widget_show_all (w);
gtk_widget_hide (priv->alarm_dialog);
gtk_window_set_modal (GTK_WINDOW (priv->alarm_dialog), TRUE);
@@ -2921,15 +2950,22 @@ init_widgets (EventPage *epage)
menu = gtk_option_menu_get_menu (GTK_OPTION_MENU (priv->alarm_time));
gtk_menu_shell_append (GTK_MENU_SHELL (menu), item);
}
+
+ cus_item = gtk_menu_item_new_with_label (_("Customize"));
+ gtk_widget_show (cus_item);
+ menu = gtk_option_menu_get_menu (GTK_OPTION_MENU (priv->alarm_time));
+ gtk_menu_shell_append (GTK_MENU_SHELL (menu), cus_item);
+
+ cus_item = gtk_menu_item_new_with_label (_("None"));
+ gtk_widget_show (cus_item);
+ menu = gtk_option_menu_get_menu (GTK_OPTION_MENU (priv->alarm_time));
+ gtk_menu_shell_prepend (GTK_MENU_SHELL (menu), cus_item);
- g_signal_connect (priv->alarm,
- "toggled", G_CALLBACK (field_changed_cb),
- epage);
g_signal_connect (priv->alarm_time, "changed",
G_CALLBACK (field_changed_cb), epage);
- g_signal_connect (priv->alarm_custom, "clicked",
- G_CALLBACK (alarm_custom_clicked_cb), epage);
-
+ g_signal_connect (priv->alarm_time, "changed",
+ G_CALLBACK (alarm_changed_cb), epage);
+
/* Belongs to priv->description */
g_signal_connect((text_buffer), "changed",
G_CALLBACK (field_changed_cb), epage);
@@ -2949,10 +2985,6 @@ init_widgets (EventPage *epage)
g_signal_connect((priv->categories), "changed",
G_CALLBACK (field_changed_cb), epage);
- g_signal_connect (priv->alarm,
- "toggled", G_CALLBACK (alarm_changed_cb),
- epage);
-
/* Set the default timezone, so the timezone entry may be hidden. */
zone = calendar_config_get_icaltimezone ();
e_timezone_entry_set_default_timezone (E_TIMEZONE_ENTRY (priv->start_timezone), zone);
diff --git a/calendar/gui/dialogs/event-page.glade b/calendar/gui/dialogs/event-page.glade
index 8aeeddefd3..08a275dda9 100644
--- a/calendar/gui/dialogs/event-page.glade
+++ b/calendar/gui/dialogs/event-page.glade
@@ -887,6 +887,7 @@
<property name="type_hint">GDK_WINDOW_TYPE_HINT_DIALOG</property>
<property name="gravity">GDK_GRAVITY_NORTH_WEST</property>
<property name="focus_on_map">True</property>
+ <property name="urgency_hint">False</property>
<property name="has_separator">True</property>
<child internal-child="vbox">
@@ -896,12 +897,12 @@
<property name="spacing">0</property>
<child internal-child="action_area">
- <widget class="GtkHButtonBox" id="dialog-action_area1">
+ <widget class="GtkHButtonBox" id="hbuttonbox1">
<property name="visible">True</property>
<property name="layout_style">GTK_BUTTONBOX_END</property>
<child>
- <widget class="GtkButton" id="closebutton1">
+ <widget class="GtkButton" id="button1">
<property name="visible">True</property>
<property name="can_default">True</property>
<property name="can_focus">True</property>
@@ -923,6 +924,7 @@
<child>
<widget class="GtkVBox" id="vbox2">
+ <property name="border_width">4</property>
<property name="visible">True</property>
<property name="homogeneous">False</property>
<property name="spacing">0</property>
@@ -931,51 +933,41 @@
<widget class="GtkVBox" id="vbox3">
<property name="visible">True</property>
<property name="homogeneous">False</property>
- <property name="spacing">2</property>
+ <property name="spacing">0</property>
<child>
- <widget class="GtkHBox" id="hbox67">
+ <widget class="GtkHBox" id="hbox68">
<property name="visible">True</property>
<property name="homogeneous">False</property>
<property name="spacing">0</property>
<child>
- <widget class="GtkCheckButton" id="alarm">
+ <widget class="GtkLabel" id="label79">
<property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="label" translatable="yes">_Set alarm </property>
+ <property name="label" translatable="yes">_Alarm</property>
<property name="use_underline">True</property>
- <property name="relief">GTK_RELIEF_NORMAL</property>
- <property name="focus_on_click">True</property>
- <property name="active">False</property>
- <property name="inconsistent">False</property>
- <property name="draw_indicator">True</property>
+ <property name="use_markup">False</property>
+ <property name="justify">GTK_JUSTIFY_LEFT</property>
+ <property name="wrap">False</property>
+ <property name="selectable">False</property>
+ <property name="xalign">0.509999990463</property>
+ <property name="yalign">0.5</property>
+ <property name="xpad">0</property>
+ <property name="ypad">0</property>
+ <property name="mnemonic_widget">alarm-time</property>
+ <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
+ <property name="width_chars">-1</property>
+ <property name="single_line_mode">False</property>
+ <property name="angle">0</property>
</widget>
<packing>
- <property name="padding">4</property>
+ <property name="padding">0</property>
<property name="expand">False</property>
<property name="fill">False</property>
</packing>
</child>
<child>
- <placeholder/>
- </child>
- </widget>
- <packing>
- <property name="padding">4</property>
- <property name="expand">False</property>
- <property name="fill">False</property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkHBox" id="hbox68">
- <property name="visible">True</property>
- <property name="homogeneous">False</property>
- <property name="spacing">0</property>
-
- <child>
<widget class="GtkOptionMenu" id="alarm-time">
<property name="visible">True</property>
<property name="can_focus">True</property>
@@ -1021,85 +1013,66 @@
</child>
<child>
- <widget class="GtkButton" id="alarm-custom">
+ <placeholder/>
+ </child>
+ </widget>
+ <packing>
+ <property name="padding">8</property>
+ <property name="expand">False</property>
+ <property name="fill">True</property>
+ </packing>
+ </child>
+
+ <child>
+ <widget class="GtkVBox" id="custom_box">
+ <property name="visible">True</property>
+ <property name="homogeneous">False</property>
+ <property name="spacing">3</property>
+
+ <child>
+ <widget class="GtkHBox" id="hbox71">
<property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="relief">GTK_RELIEF_NORMAL</property>
- <property name="focus_on_click">True</property>
+ <property name="homogeneous">False</property>
+ <property name="spacing">0</property>
<child>
- <widget class="GtkAlignment" id="alignment4">
+ <widget class="GtkLabel" id="label80">
<property name="visible">True</property>
+ <property name="label" translatable="yes">Custom Alarm:</property>
+ <property name="use_underline">False</property>
+ <property name="use_markup">False</property>
+ <property name="justify">GTK_JUSTIFY_LEFT</property>
+ <property name="wrap">False</property>
+ <property name="selectable">False</property>
<property name="xalign">0.5</property>
<property name="yalign">0.5</property>
- <property name="xscale">0</property>
- <property name="yscale">0</property>
- <property name="top_padding">0</property>
- <property name="bottom_padding">0</property>
- <property name="left_padding">0</property>
- <property name="right_padding">0</property>
-
- <child>
- <widget class="GtkHBox" id="hbox69">
- <property name="visible">True</property>
- <property name="homogeneous">False</property>
- <property name="spacing">2</property>
-
- <child>
- <widget class="GtkImage" id="image3">
- <property name="visible">True</property>
- <property name="stock">gtk-preferences</property>
- <property name="icon_size">4</property>
- <property name="xalign">0.5</property>
- <property name="yalign">0.5</property>
- <property name="xpad">0</property>
- <property name="ypad">0</property>
- </widget>
- <packing>
- <property name="padding">0</property>
- <property name="expand">False</property>
- <property name="fill">False</property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkLabel" id="label77">
- <property name="visible">True</property>
- <property name="label" translatable="yes">C_ustomize</property>
- <property name="use_underline">True</property>
- <property name="use_markup">False</property>
- <property name="justify">GTK_JUSTIFY_LEFT</property>
- <property name="wrap">False</property>
- <property name="selectable">False</property>
- <property name="xalign">0.5</property>
- <property name="yalign">0.5</property>
- <property name="xpad">0</property>
- <property name="ypad">0</property>
- <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
- <property name="width_chars">-1</property>
- <property name="single_line_mode">False</property>
- <property name="angle">0</property>
- </widget>
- <packing>
- <property name="padding">0</property>
- <property name="expand">False</property>
- <property name="fill">False</property>
- </packing>
- </child>
- </widget>
- </child>
+ <property name="xpad">0</property>
+ <property name="ypad">0</property>
+ <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
+ <property name="width_chars">-1</property>
+ <property name="single_line_mode">False</property>
+ <property name="angle">0</property>
</widget>
+ <packing>
+ <property name="padding">0</property>
+ <property name="expand">False</property>
+ <property name="fill">False</property>
+ </packing>
</child>
</widget>
<packing>
- <property name="padding">4</property>
+ <property name="padding">0</property>
<property name="expand">False</property>
<property name="fill">False</property>
</packing>
</child>
+
+ <child>
+ <placeholder/>
+ </child>
</widget>
<packing>
- <property name="padding">8</property>
+ <property name="padding">0</property>
<property name="expand">True</property>
<property name="fill">True</property>
</packing>