+2002-12-29 [alfons] 0.8.8claws25
+
+ * src/mainwindow.c
+ when moving focus from a message view to the main
+ window, don't forget to select the summary node
+ of the displayed message. should fix "[ 659103 ]
+ focus-follows-mouse confuses sylpheed"
+
2002-12-29 [christoph] 0.8.8claws24
* src/Makefile.am
guint action,
GtkWidget *widget );
+static gboolean mainwindow_focus_in_event (GtkWidget *widget,
+ GdkEventFocus *focus,
+ gpointer data);
+
#define SEPARATE_ACTION 500
static GtkItemFactoryEntry mainwin_entries[] =
gtk_signal_connect(GTK_OBJECT(window), "delete_event",
GTK_SIGNAL_FUNC(main_window_close_cb), mainwin);
MANAGE_WINDOW_SIGNALS_CONNECT(window);
+ gtk_signal_connect(GTK_OBJECT(window), "focus_in_event",
+ GTK_SIGNAL_FUNC(mainwindow_focus_in_event),
+ mainwin);
gtk_signal_connect(GTK_OBJECT(window), "key_press_event",
GTK_SIGNAL_FUNC(mainwindow_key_pressed), mainwin);
g_free(str);
}
+static gboolean mainwindow_focus_in_event(GtkWidget *widget, GdkEventFocus *focus,
+ gpointer data)
+{
+ SummaryView *summary;
+
+ g_return_val_if_fail(data, FALSE);
+ summary = ((MainWindow *)data)->summaryview;
+ g_return_val_if_fail(summary, FALSE);
+ if (summary->selected != summary->displayed)
+ summary_select_node(summary, summary->displayed, FALSE, TRUE);
+ return FALSE;
+}
+
#define BREAK_ON_MODIFIER_KEY() \
if ((event->state & (GDK_MOD1_MASK|GDK_CONTROL_MASK)) != 0) break