aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/gui/widgets
diff options
context:
space:
mode:
authorChristopher James Lahey <clahey@helixcode.com>2000-01-27 15:51:37 +0800
committerChris Lahey <clahey@src.gnome.org>2000-01-27 15:51:37 +0800
commit905f7de48f5c591caa340f099fff821e07bf82e4 (patch)
tree29848942ad019efff76c85c90234627392b8b93e /addressbook/gui/widgets
parent074aff3059b7d127a7670c65ed3f1ae542b1b1cb (diff)
downloadgsoc2013-evolution-905f7de48f5c591caa340f099fff821e07bf82e4.tar
gsoc2013-evolution-905f7de48f5c591caa340f099fff821e07bf82e4.tar.gz
gsoc2013-evolution-905f7de48f5c591caa340f099fff821e07bf82e4.tar.bz2
gsoc2013-evolution-905f7de48f5c591caa340f099fff821e07bf82e4.tar.lz
gsoc2013-evolution-905f7de48f5c591caa340f099fff821e07bf82e4.tar.xz
gsoc2013-evolution-905f7de48f5c591caa340f099fff821e07bf82e4.tar.zst
gsoc2013-evolution-905f7de48f5c591caa340f099fff821e07bf82e4.zip
Use e_canvas_item_grab_focus so that it will work with old versions of
2000-01-28 Christopher James Lahey <clahey@helixcode.com> * widgets/e-minicard-label.c, widgets/e-minicard.c: Use e_canvas_item_grab_focus so that it will work with old versions of gnome-canvas. * widgets/e-canvas.c, widgets/e-canvas.h: Finished working around focus bugs. svn path=/trunk/; revision=1649
Diffstat (limited to 'addressbook/gui/widgets')
-rw-r--r--addressbook/gui/widgets/e-minicard-label.c3
-rw-r--r--addressbook/gui/widgets/e-minicard.c5
2 files changed, 5 insertions, 3 deletions
diff --git a/addressbook/gui/widgets/e-minicard-label.c b/addressbook/gui/widgets/e-minicard-label.c
index 2b0fb3faf8..43603f2d6d 100644
--- a/addressbook/gui/widgets/e-minicard-label.c
+++ b/addressbook/gui/widgets/e-minicard-label.c
@@ -23,6 +23,7 @@
#include <gnome.h>
#include "e-minicard-label.h"
#include "e-text.h"
+#include "e-canvas.h"
static void e_minicard_label_init (EMinicardLabel *card);
static void e_minicard_label_class_init (EMinicardLabelClass *klass);
static void e_minicard_label_set_arg (GtkObject *o, GtkArg *arg, guint arg_id);
@@ -152,7 +153,7 @@ e_minicard_label_set_arg (GtkObject *o, GtkArg *arg, guint arg_id)
break;
case ARG_HAS_FOCUS:
if (e_minicard_label->field && GTK_VALUE_BOOL(*arg))
- gnome_canvas_item_grab_focus(e_minicard_label->field);
+ e_canvas_item_grab_focus(e_minicard_label->field);
break;
case ARG_FIELD:
if ( e_minicard_label->field )
diff --git a/addressbook/gui/widgets/e-minicard.c b/addressbook/gui/widgets/e-minicard.c
index b6de4b2d0c..b667f1ac21 100644
--- a/addressbook/gui/widgets/e-minicard.c
+++ b/addressbook/gui/widgets/e-minicard.c
@@ -24,6 +24,7 @@
#include "e-minicard.h"
#include "e-minicard-label.h"
#include "e-text.h"
+#include "e-canvas.h"
static void e_minicard_init (EMinicard *card);
static void e_minicard_class_init (EMinicardClass *klass);
static void e_minicard_set_arg (GtkObject *o, GtkArg *arg, guint arg_id);
@@ -153,7 +154,7 @@ e_minicard_set_arg (GtkObject *o, GtkArg *arg, guint arg_id)
"has_focus", GTK_VALUE_BOOL(*arg),
NULL);
else
- gnome_canvas_item_grab_focus(GNOME_CANVAS_ITEM(e_minicard));
+ e_canvas_item_grab_focus(GNOME_CANVAS_ITEM(e_minicard));
break;
case ARG_CARD:
/* e_minicard->card = GTK_VALUE_POINTER (*arg);
@@ -353,7 +354,7 @@ e_minicard_event (GnomeCanvasItem *item, GdkEvent *event)
break;
case GDK_BUTTON_PRESS:
if (event->button.button == 1) {
- gnome_canvas_item_grab_focus(item);
+ e_canvas_item_grab_focus(item);
}
break;
case GDK_KEY_PRESS: