git://git.iain.cx/iain
/
profile.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
83448b4
)
Disable menubar dragging in GTKv2 apps.
author
Iain Patterson
<me@iain.cx>
Thu, 25 Aug 2011 09:58:22 +0000
(10:58 +0100)
committer
Iain Patterson
<me@iain.cx>
Thu, 25 Aug 2011 10:18:48 +0000
(11:18 +0100)
By default you can click in an application's menubar and drag to move
the window around.
Disable this behaviour by setting the "window-dragging" attribute of
GtkMenuBar widgets to 0.
.themes/override-2.0
[new file with mode: 0644]
patch
|
blob
diff --git a/.themes/override-2.0
b/.themes/override-2.0
new file mode 100644
(file)
index 0000000..
8445e56
--- /dev/null
+++ b/
.themes/override-2.0
@@ -0,0
+1,6
@@
+# Disable dragging windows by clicking in the menubar.
+style "no-drag" = "Default" {
+ GtkWidget::window-dragging = 0
+}
+
+widget_class "*<GtkMenuBar>*" style : rc "no-drag"