aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/dialogs
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2007-11-19 17:56:52 +0800
committerMilan Crha <mcrha@src.gnome.org>2007-11-19 17:56:52 +0800
commitaa3aab83049c1ff8464de6c1a2d7b7b4139e2200 (patch)
treea728caa2996721875130070adb2f1d06c3542f8c /calendar/gui/dialogs
parent5e800b4fc38673adcac7238d8ac7ad4cd9602f90 (diff)
downloadgsoc2013-evolution-aa3aab83049c1ff8464de6c1a2d7b7b4139e2200.tar.gz
gsoc2013-evolution-aa3aab83049c1ff8464de6c1a2d7b7b4139e2200.tar.zst
gsoc2013-evolution-aa3aab83049c1ff8464de6c1a2d7b7b4139e2200.zip
** Fix for bug #401337
2007-11-19 Milan Crha <mcrha@redhat.com> ** Fix for bug #401337 * gui/dialogs/task-page.glade: * gui/dialogs/task-page.c: (sensitize_widgets), (get_widgets): Use other mnemonic for Organizer and let it work properly. svn path=/trunk/; revision=34552
Diffstat (limited to 'calendar/gui/dialogs')
-rw-r--r--calendar/gui/dialogs/task-page.c9
-rw-r--r--calendar/gui/dialogs/task-page.glade2
2 files changed, 8 insertions, 3 deletions
diff --git a/calendar/gui/dialogs/task-page.c b/calendar/gui/dialogs/task-page.c
index 273e2597c0..8226b750ae 100644
--- a/calendar/gui/dialogs/task-page.c
+++ b/calendar/gui/dialogs/task-page.c
@@ -450,14 +450,16 @@ sensitize_widgets (TaskPage *tpage)
gtk_widget_hide (priv->attendee_box);
gtk_widget_hide (priv->organizer);
gtk_widget_hide (priv->invite);
- gtk_label_set_text_with_mnemonic ((GtkLabel *) priv->org_cal_label, _("_Group:"));
+ gtk_label_set_text_with_mnemonic (GTK_LABEL (priv->org_cal_label), _("_Group:"));
+ gtk_label_set_mnemonic_widget (GTK_LABEL (priv->org_cal_label), priv->source_selector);
} else {
gtk_widget_show (priv->invite);
gtk_widget_show (priv->calendar_label);
gtk_widget_show (priv->list_box);
gtk_widget_show (priv->attendee_box);
gtk_widget_show (priv->organizer);
- gtk_label_set_text_with_mnemonic ((GtkLabel *) priv->org_cal_label, _("Or_ganizer:"));
+ gtk_label_set_text_with_mnemonic (GTK_LABEL (priv->org_cal_label), _("Organi_zer:"));
+ gtk_label_set_mnemonic_widget (GTK_LABEL (priv->org_cal_label), GTK_COMBO (priv->organizer)->entry);
}
}
void
@@ -1517,6 +1519,8 @@ get_widgets (TaskPage *tpage)
priv->source_selector = GW ("source");
+ gtk_label_set_mnemonic_widget (GTK_LABEL (priv->calendar_label), priv->source_selector);
+
#undef GW
return (priv->summary
@@ -1527,6 +1531,7 @@ get_widgets (TaskPage *tpage)
&& priv->description
&& priv->categories_btn
&& priv->categories
+ && priv->organizer
);
}
diff --git a/calendar/gui/dialogs/task-page.glade b/calendar/gui/dialogs/task-page.glade
index 17e2f9071c..a5eb1e271e 100644
--- a/calendar/gui/dialogs/task-page.glade
+++ b/calendar/gui/dialogs/task-page.glade
@@ -141,7 +141,7 @@
<child>
<widget class="GtkLabel" id="org-task-label">
<property name="visible">True</property>
- <property name="label" translatable="yes">Or_ganiser:</property>
+ <property name="label" translatable="yes">Organi_zer:</property>
<property name="use_underline">True</property>
<property name="use_markup">False</property>
<property name="justify">GTK_JUSTIFY_LEFT</property>