[totem/uajain/gtk-window-present] totem-object: Present application window on top if already open
- From: Umang Jain <uajain src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [totem/uajain/gtk-window-present] totem-object: Present application window on top if already open
- Date: Mon, 11 Mar 2019 18:37:05 +0000 (UTC)
commit c1325d620b1e99767950d7d8d27c6845cfd3db24
Author: Umang Jain <umang endlessm com>
Date: Sat Mar 9 12:11:59 2019 +0530
totem-object: Present application window on top if already open
This raises the application window on the top of the stack of
all the open windows and present it to the user.
See gtk_window_present_with_time() documentation for more details.
src/totem-object.c | 3 +++
1 file changed, 3 insertions(+)
---
diff --git a/src/totem-object.c b/src/totem-object.c
index 3a02c7e61..93be4fa86 100644
--- a/src/totem-object.c
+++ b/src/totem-object.c
@@ -140,11 +140,14 @@ totem_object_app_open (GApplication *application,
const char *hint)
{
GSList *slist = NULL;
+ Totem *totem = TOTEM_OBJECT (application);
int i;
optionstate.had_filenames = (n_files > 0);
g_application_activate (application);
+ gtk_window_present_with_time (GTK_WINDOW (totem->win),
+ gtk_get_current_event_time ());
totem_object_set_main_page (TOTEM_OBJECT (application), "player");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]