EasysetupCountryComboBoxPrivate *priv = COUNTRY_COMBO_BOX_GET_PRIVATE (self);
/* Load the file one line at a time: */
-#ifndef MODEST_HILDON_VERSION_0
+#ifdef MODEST_HILDON_VERSION_0
const gchar* filepath = PROVIDER_DATA_DIR "/mcc_mapping";
#else
/* This is the official version, in the 'operator-wizard-settings' package */
/* no gdk_threads_enter (), CHECKED */
- /* * Bugfix by PVH
- *
- * Javier: if I remove this one, tny_folder_copy_async does not hang anymore
- *
- * g_signal_emit (G_OBJECT (self), signals[PROGRESS_CHANGED_SIGNAL], 0, state, NULL);
- *
- * https://projects.maemo.org/bugzilla/show_bug.cgi?id=63060
- *
- * */
+ g_signal_emit (G_OBJECT (self), signals[PROGRESS_CHANGED_SIGNAL], 0, state, NULL);
/* no gdk_threads_leave (), CHECKED */
/* Check window specific dimming rules */
if (MODEST_IS_MAIN_WINDOW (win)) {
- if (!dimmed) {
- dimmed = _selected_folder_is_empty (MODEST_MAIN_WINDOW(win));
- if (dimmed)
- modest_dimming_rule_set_notification (rule, "");
- }
- if (!dimmed) {
- dimmed = _selected_msg_sent_in_progress (win);
- if (dimmed)
+ /* Get focused widget */
+ GtkWidget *focused = gtk_window_get_focus (GTK_WINDOW (win));
+
+ if (MODEST_IS_HEADER_VIEW (focused)) {
+ if (!dimmed) {
+ dimmed = _selected_folder_is_empty (MODEST_MAIN_WINDOW(win));
+ if (dimmed)
+ modest_dimming_rule_set_notification (rule, "");
+ }
+ if (!dimmed) {
+ dimmed = _selected_msg_sent_in_progress (win);
+ if (dimmed)
modest_dimming_rule_set_notification (rule, _("mcen_ib_unable_to_cut_mess"));
+ }
}
}
-
+
return dimmed;
}
/* Check window specific dimming rules */
if (MODEST_IS_MAIN_WINDOW (win)) {
- if (!dimmed) {
- dimmed = _selected_folder_is_empty (MODEST_MAIN_WINDOW(win));
- if (dimmed)
- modest_dimming_rule_set_notification (rule, "");
- }
- if (!dimmed) {
- dimmed = _selected_msg_sent_in_progress (win);
- if (dimmed)
- modest_dimming_rule_set_notification (rule, _("mcen_ib_unable_to_cut_mess"));
+ /* Get focused widget */
+ GtkWidget *focused = gtk_window_get_focus (GTK_WINDOW (win));
+
+ if (MODEST_IS_HEADER_VIEW (focused)) {
+ if (!dimmed) {
+ dimmed = _selected_folder_is_empty (MODEST_MAIN_WINDOW(win));
+ if (dimmed)
+ modest_dimming_rule_set_notification (rule, "");
+ }
+ if (!dimmed) {
+ dimmed = _selected_msg_sent_in_progress (win);
+ if (dimmed)
+ modest_dimming_rule_set_notification (rule, _("mcen_ib_unable_to_cut_mess"));
+ }
}
}