[evolution-patches] *NEW* Patch for #303540 "'F10 + Shift Key' doesn't work in evolution contacts."
- From: Mengjie Yu <Meng-Jie Yu Sun COM>
- To: Rodrigo Moya <rodrigo novell com>
- Cc: evolution-patches <evolution-patches lists ximian com>
- Subject: [evolution-patches] *NEW* Patch for #303540 "'F10 + Shift Key' doesn't work in evolution contacts."
- Date: Mon, 09 May 2005 18:13:10 +0800
hi rodrigo,
Here is the patch for #303540
the related URL is:
http://bugzilla.gnome.org/show_bug.cgi?id=303540
The patch for this bug is also available on the above URL.
It is about evolution-data-server part.
Will you please help me to review it?
Yours,
Mengjie
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/evolution-data-server/libedataserverui/ChangeLog,v
retrieving revision 1.39
diff -u -p -r1.39 ChangeLog
--- ChangeLog 4 May 2005 08:43:58 -0000 1.39
+++ ChangeLog 9 May 2005 10:08:38 -0000
@@ -1,3 +1,12 @@
+2005-05-09 Mengjie Yu <meng-jie yu sun com>
+
+ * e-source-selector.c: (selector_popup_menu),
+ (e_source_selector_class_init):
+ We need to implement the popup_menu function to make
+ 'F10 + Shift Key' pressing work.
+
+ Fixes #303540
+
2005-05-04 Hans Petter Jansson <hpj novell com>
* e-book-auth-util.c:
Index: e-source-selector.c
===================================================================
RCS file: /cvs/gnome/evolution-data-server/libedataserverui/e-source-selector.c,v
retrieving revision 1.29
diff -u -p -r1.29 e-source-selector.c
--- e-source-selector.c 4 May 2005 08:43:58 -0000 1.29
+++ e-source-selector.c 9 May 2005 10:08:38 -0000
@@ -68,6 +68,8 @@ enum {
};
static unsigned int signals[NUM_SIGNALS] = { 0 };
+static gboolean selector_popup_menu (GtkWidget *widget);
+
G_DEFINE_TYPE (ESourceSelector, e_source_selector, GTK_TYPE_TREE_VIEW)
/* Selection management. */
@@ -573,6 +575,18 @@ row_expanded_callback (GtkTreeView *tree
}
static gboolean
+selector_popup_menu (GtkWidget *widget)
+{
+ ESourceSelector *selector = E_SOURCE_SELECTOR (widget);
+ ESource *source;
+ gboolean res = FALSE;
+
+ source = e_source_selector_peek_primary_selection (selector);
+ g_signal_emit (selector, signals[POPUP_EVENT], 0, source, NULL, &res);
+ return res;
+}
+
+static gboolean
selector_button_press_event (GtkWidget *widget, GdkEventButton *event, ESourceSelector *selector)
{
ESourceSelectorPrivate *priv = selector->priv;
@@ -679,9 +693,12 @@ static void
e_source_selector_class_init (ESourceSelectorClass *class)
{
GObjectClass *object_class = G_OBJECT_CLASS (class);
+ GtkWidgetClass *widget_class = GTK_WIDGET_CLASS (class);
object_class->dispose = e_source_selector_dispose;
object_class->finalize = e_source_selector_finalize;
+ widget_class->popup_menu = selector_popup_menu;
+
signals[SELECTION_CHANGED] =
g_signal_new ("selection_changed",
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]