diff options
author | Chris Lahey <clahey@src.gnome.org> | 2000-01-11 14:44:57 +0800 |
---|---|---|
committer | Chris Lahey <clahey@src.gnome.org> | 2000-01-11 14:44:57 +0800 |
commit | a01de808cd46baea31419a42b221cb65974a9fb1 (patch) | |
tree | a32c6dc47d19d64c907d7d577798cad380a6caa2 /addressbook/gui | |
parent | b2a25c6add10c40eb6d369fdf504f2e7d13d2c97 (diff) | |
download | gsoc2013-evolution-a01de808cd46baea31419a42b221cb65974a9fb1.tar.gz gsoc2013-evolution-a01de808cd46baea31419a42b221cb65974a9fb1.tar.zst gsoc2013-evolution-a01de808cd46baea31419a42b221cb65974a9fb1.zip |
Removed some code which got in the way of testing properly.
* widgets/test-minicard.c: Removed some code which got in the way
of testing properly.
* widgets/e-minicard-label.c (e_minicard_label_realize): Made the
field text item editable.
* widgets/Makefile.am: Added e-text-event-process*.[ch].
* widgets/e-text.c, widgets/e-text.h: Changed these to support
editing.
* widgets/e-text-event-processor.c,
widgets/e-text-event-processor.h,
widgets/e-text-event-processor-types.h,
widgets/e-text-event-processor-emacs-like.c,
widgets/e-text-event-processor-emacs-like.h: These are a new pair
of classes which handle all events from the text item and convert
them into commands.
svn path=/trunk/; revision=1553
Diffstat (limited to 'addressbook/gui')
-rw-r--r-- | addressbook/gui/minicard/e-minicard-label.c | 1 | ||||
-rw-r--r-- | addressbook/gui/minicard/test-minicard.c | 10 | ||||
-rw-r--r-- | addressbook/gui/widgets/e-minicard-label.c | 1 | ||||
-rw-r--r-- | addressbook/gui/widgets/test-minicard.c | 10 |
4 files changed, 2 insertions, 20 deletions
diff --git a/addressbook/gui/minicard/e-minicard-label.c b/addressbook/gui/minicard/e-minicard-label.c index e3c61ff9bf..0b6db4115a 100644 --- a/addressbook/gui/minicard/e-minicard-label.c +++ b/addressbook/gui/minicard/e-minicard-label.c @@ -239,6 +239,7 @@ e_minicard_label_realize (GnomeCanvasItem *item) "use_ellipsis", TRUE, "font", "lucidasans-10", "fill_color", "black", + "editable", TRUE, NULL ); if ( e_minicard_label->field_text ) diff --git a/addressbook/gui/minicard/test-minicard.c b/addressbook/gui/minicard/test-minicard.c index 4f56fbe936..79077c4b2d 100644 --- a/addressbook/gui/minicard/test-minicard.c +++ b/addressbook/gui/minicard/test-minicard.c @@ -61,11 +61,6 @@ static void about_callback( GtkWidget *widget, gpointer data ) gtk_widget_show (about); } -static void button_press_callback( GtkWidget *widget, gpointer data ) -{ - gnome_canvas_item_grab_focus( card ); -} - int main( int argc, char *argv[] ) { GtkWidget *app; @@ -102,7 +97,6 @@ int main( int argc, char *argv[] ) gnome_app_set_contents( GNOME_APP( app ), canvas ); - /* Connect the signals */ gtk_signal_connect( GTK_OBJECT( app ), "destroy", GTK_SIGNAL_FUNC( destroy_callback ), @@ -112,10 +106,6 @@ int main( int argc, char *argv[] ) GTK_SIGNAL_FUNC( allocate_callback ), ( gpointer ) app ); - gtk_signal_connect( GTK_OBJECT( canvas ), "button_press_event", - GTK_SIGNAL_FUNC( button_press_callback ), - ( gpointer ) app ); - gtk_widget_show_all( app ); gtk_main(); diff --git a/addressbook/gui/widgets/e-minicard-label.c b/addressbook/gui/widgets/e-minicard-label.c index e3c61ff9bf..0b6db4115a 100644 --- a/addressbook/gui/widgets/e-minicard-label.c +++ b/addressbook/gui/widgets/e-minicard-label.c @@ -239,6 +239,7 @@ e_minicard_label_realize (GnomeCanvasItem *item) "use_ellipsis", TRUE, "font", "lucidasans-10", "fill_color", "black", + "editable", TRUE, NULL ); if ( e_minicard_label->field_text ) diff --git a/addressbook/gui/widgets/test-minicard.c b/addressbook/gui/widgets/test-minicard.c index 4f56fbe936..79077c4b2d 100644 --- a/addressbook/gui/widgets/test-minicard.c +++ b/addressbook/gui/widgets/test-minicard.c @@ -61,11 +61,6 @@ static void about_callback( GtkWidget *widget, gpointer data ) gtk_widget_show (about); } -static void button_press_callback( GtkWidget *widget, gpointer data ) -{ - gnome_canvas_item_grab_focus( card ); -} - int main( int argc, char *argv[] ) { GtkWidget *app; @@ -102,7 +97,6 @@ int main( int argc, char *argv[] ) gnome_app_set_contents( GNOME_APP( app ), canvas ); - /* Connect the signals */ gtk_signal_connect( GTK_OBJECT( app ), "destroy", GTK_SIGNAL_FUNC( destroy_callback ), @@ -112,10 +106,6 @@ int main( int argc, char *argv[] ) GTK_SIGNAL_FUNC( allocate_callback ), ( gpointer ) app ); - gtk_signal_connect( GTK_OBJECT( canvas ), "button_press_event", - GTK_SIGNAL_FUNC( button_press_callback ), - ( gpointer ) app ); - gtk_widget_show_all( app ); gtk_main(); |