diff options
author | Christian Grothoff <christian@grothoff.org> | 2021-12-30 14:36:34 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2021-12-30 14:36:34 +0100 |
commit | 2e744d665dcdb4eca5ddab5049bd976b135aa62b (patch) | |
tree | 943205827d8c8c6802f42c576647f8c1d901b91a /src | |
parent | d77e7cab65c416f72ff1b52fa590b24ede512e75 (diff) | |
download | anastasis-gtk-2e744d665dcdb4eca5ddab5049bd976b135aa62b.tar.gz anastasis-gtk-2e744d665dcdb4eca5ddab5049bd976b135aa62b.tar.bz2 anastasis-gtk-2e744d665dcdb4eca5ddab5049bd976b135aa62b.zip |
address #7080
Diffstat (limited to 'src')
-rw-r--r-- | src/anastasis/anastasis-gtk_helper.c | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/src/anastasis/anastasis-gtk_helper.c b/src/anastasis/anastasis-gtk_helper.c index dbb66ce..7099475 100644 --- a/src/anastasis/anastasis-gtk_helper.c +++ b/src/anastasis/anastasis-gtk_helper.c @@ -446,3 +446,39 @@ AG_expand_name (const char *name, } return NULL; } + + +/** + * Show widget on focus-in event. + * + * @param w widget to show (called with 'swapped' true!) + * @param event the event + * @param widget the widget being focused on + * @return FALSE + */ +bool +anastasis_gtk_show_on_focus_in_event_cb (GtkWidget *w, + GdkEvent *event, + GtkWidget *widget) +{ + gtk_widget_show (w); + return FALSE; +} + + +/** + * Hide widget on focus-out event. + * + * @param w widget to show (called with 'swapped' true!) + * @param event the event + * @param widget the widget being focused on + * @return FALSE + */ +bool +anastasis_gtk_hide_on_focus_out_event_cb (GtkWidget *w, + GdkEvent *event, + GtkWidget *widget) +{ + gtk_widget_hide (w); + return FALSE; +} |