diff options
author | Johnny Jacob <johnnyjacob@gmail.com> | 2006-01-30 17:43:53 +0800 |
---|---|---|
committer | Parthasarathi Susarla <saps@src.gnome.org> | 2006-01-30 17:43:53 +0800 |
commit | a25781876ca0819accf6c9339555237686d2919c (patch) | |
tree | 6fb1443866df2891a74349ca0ba2ddcc221d1ee8 | |
parent | 20d72f43f15e96ec4d90b14315909c7c5654b986 (diff) | |
download | gsoc2013-evolution-a25781876ca0819accf6c9339555237686d2919c.tar gsoc2013-evolution-a25781876ca0819accf6c9339555237686d2919c.tar.gz gsoc2013-evolution-a25781876ca0819accf6c9339555237686d2919c.tar.bz2 gsoc2013-evolution-a25781876ca0819accf6c9339555237686d2919c.tar.lz gsoc2013-evolution-a25781876ca0819accf6c9339555237686d2919c.tar.xz gsoc2013-evolution-a25781876ca0819accf6c9339555237686d2919c.tar.zst gsoc2013-evolution-a25781876ca0819accf6c9339555237686d2919c.zip |
Fixes #328285 Added. Handle focus in and out events. (init_widgets):
2006-01-30 Johnny Jacob <johnnyjacob@gmail.com>
Fixes #328285
* gui/dialogs/memo-page.c (widget_focus_out_cb),
(widget_focus_out_cb) : Added. Handle focus in and out
events.
(init_widgets): Connect focus in and out signals for
memo_content .
Committed to HEAD on behalf of johnny since he does not
have commit rights - partha
svn path=/trunk/; revision=31354
-rw-r--r-- | calendar/ChangeLog | 12 | ||||
-rw-r--r-- | calendar/gui/dialogs/memo-page.c | 29 |
2 files changed, 41 insertions, 0 deletions
diff --git a/calendar/ChangeLog b/calendar/ChangeLog index 5cfe74f80e..9748303b01 100644 --- a/calendar/ChangeLog +++ b/calendar/ChangeLog @@ -1,3 +1,15 @@ +2006-01-30 Johnny Jacob <johnnyjacob@gmail.com> + + Fixes #328285 + * gui/dialogs/memo-page.c (widget_focus_out_cb), + (widget_focus_out_cb) : Added. Handle focus in and out + events. + (init_widgets): Connect focus in and out signals for + memo_content . + + Committed to HEAD on behalf of johnny since he does not + have commit rights - partha + 2006-01-18 Johnny Jacob <johnnyjacob@gmail.com> Fixes #225816 diff --git a/calendar/gui/dialogs/memo-page.c b/calendar/gui/dialogs/memo-page.c index 762b366624..eb29f368a9 100644 --- a/calendar/gui/dialogs/memo-page.c +++ b/calendar/gui/dialogs/memo-page.c @@ -561,6 +561,30 @@ source_changed_cb (GtkWidget *widget, ESource *source, gpointer data) } } +/*sets the current focused widget */ +static gboolean +widget_focus_in_cb (GtkWidget *widget, GdkEventFocus *event, gpointer data) +{ + MemoPage *tpage; + tpage = MEMO_PAGE (data); + + comp_editor_page_set_focused_widget (COMP_EDITOR_PAGE (tpage), widget); + + return FALSE; +} + +/*unset the current focused widget */ +static gboolean +widget_focus_out_cb (GtkWidget *widget, GdkEventFocus *event, gpointer data) +{ + MemoPage *tpage; + tpage = MEMO_PAGE (data); + + comp_editor_page_unset_focused_widget (COMP_EDITOR_PAGE (tpage), widget); + + return FALSE; +} + /* Hooks the widget signals */ static gboolean init_widgets (MemoPage *mpage) @@ -575,6 +599,11 @@ init_widgets (MemoPage *mpage) gtk_text_view_set_wrap_mode (GTK_TEXT_VIEW (priv->memo_content), GTK_WRAP_WORD); + g_signal_connect(priv->memo_content, "focus-in-event", + G_CALLBACK (widget_focus_in_cb), tpage); + g_signal_connect(priv->memo_content, "focus-out-event", + G_CALLBACK (widget_focus_out_cb), tpage); + /* Categories button */ g_signal_connect((priv->categories_btn), "clicked", G_CALLBACK (categories_clicked_cb), mpage); |