diff options
author | Benjamin Otte <otte@redhat.com> | 2017-11-30 00:09:37 +0100 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2017-12-03 05:46:48 +0100 |
commit | 4cce109e16f71b0e844dab304e97f61bef2a5580 (patch) | |
tree | a50cc6f10d756c9554c01bf357c6270741dba331 /gtk/gtkmain.c | |
parent | fe7c283aea96e5a9678fd39a9cce009abd6d106e (diff) | |
download | gtk+-4cce109e16f71b0e844dab304e97f61bef2a5580.tar.gz |
application: Put shared code into a common function
Diffstat (limited to 'gtk/gtkmain.c')
-rw-r--r-- | gtk/gtkmain.c | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/gtk/gtkmain.c b/gtk/gtkmain.c index a80201c774..c71637f1f6 100644 --- a/gtk/gtkmain.c +++ b/gtk/gtkmain.c @@ -995,15 +995,17 @@ gtk_main (void) gtk_main_loop_level--; if (gtk_main_loop_level == 0) - { - /* Keep this section in sync with gtk_application_shutdown() */ + gtk_main_sync (); +} - /* Try storing all clipboard data we have */ - _gtk_clipboard_store_all (); +void +gtk_main_sync (void) +{ + /* Try storing all clipboard data we have */ + _gtk_clipboard_store_all (); - /* Synchronize the recent manager singleton */ - _gtk_recent_manager_sync (); - } + /* Synchronize the recent manager singleton */ + _gtk_recent_manager_sync (); } /** |