[Xfce4-commits] [xfce/xfce4-appfinder] 01/01: Fix single window behavior
noreply at xfce.org
noreply at xfce.org
Sat Aug 18 05:32:03 CEST 2018
This is an automated email from the git hooks/post-receive script.
a n d r e p u s h e d a c o m m i t t o b r a n c h m a s t e r
in repository xfce/xfce4-appfinder.
commit 51b04bbb457814b1357eda6999bdad9eb9c6b4df
Author: Andre Miranda <andreldm at xfce.org>
Date: Sat Aug 18 00:31:16 2018 -0300
Fix single window behavior
---
src/main.c | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/src/main.c b/src/main.c
index 5be8284..c958a80 100644
--- a/src/main.c
+++ b/src/main.c
@@ -183,9 +183,12 @@ appfinder_window_new (const gchar *startup_id,
if (g_slist_length (windows) > 0)
{
channel = xfconf_channel_get ("xfce4-appfinder");
- if (xfconf_channel_get_bool (channel, "/single-window", FALSE))
- gtk_window_present (GTK_WINDOW (g_slist_nth_data (windows, 0)));
- return;
+ if (xfconf_channel_get_bool (channel, "/enable-service", TRUE) &&
+ xfconf_channel_get_bool (channel, "/single-window", TRUE))
+ {
+ gtk_window_present (GTK_WINDOW (g_slist_nth_data (windows, 0)));
+ return;
+ }
}
window = g_object_new (XFCE_TYPE_APPFINDER_WINDOW,
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list