summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorinfirit <[email protected]>2014-02-26 12:03:05 +0100
committerinfirit <[email protected]>2014-02-26 12:06:29 +0100
commit72fbb0ab1afb0dcf0e3aab21456d6478350bd74c (patch)
tree5f02b144bcc8d342affe857ec390433a0e5729d7
parent28f865614367bfdd868fd8efc29362dd9875cb5b (diff)
downloadmate-power-manager-72fbb0ab1afb0dcf0e3aab21456d6478350bd74c.tar.bz2
mate-power-manager-72fbb0ab1afb0dcf0e3aab21456d6478350bd74c.tar.xz
fix mouse click on brightness applet
Based on pull request from raveit65 <[email protected]>. close #82 #62
-rw-r--r--applets/brightness/brightness-applet.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/applets/brightness/brightness-applet.c b/applets/brightness/brightness-applet.c
index 6041fb2..f442765 100644
--- a/applets/brightness/brightness-applet.c
+++ b/applets/brightness/brightness-applet.c
@@ -656,6 +656,9 @@ gpm_applet_create_popup (GpmBrightnessApplet *applet)
/* window */
applet->popup = gtk_window_new (GTK_WINDOW_POPUP);
+#if !GTK_CHECK_VERSION (2, 90, 0)
+ GTK_WIDGET_UNSET_FLAGS (applet->popup, GTK_TOPLEVEL);
+#endif
gtk_window_set_type_hint (GTK_WINDOW(applet->popup), GDK_WINDOW_TYPE_HINT_UTILITY);
gtk_widget_set_parent (applet->popup, GTK_WIDGET(applet));
gtk_container_add (GTK_CONTAINER(applet->popup), frame);