Disable resize gripper in windows?

up vote 25 down vote favorite
10

Is it possible to disable the the new resize gripper that shows up in Ubuntu Natty/11.04?

spacer

11.04 gtk resize
share|improve this question
edited Mar 15 '11 at 16:12
spacer
Jorge Castro
22.5k40190375
asked Mar 6 '11 at 4:31
spacer
A Hylian Human
14326
5  
just curious why do want to disable it? – Alaukik Mar 28 '11 at 16:53
4  
Maybe because he uses something else (e.g. a keyboard shortcut) for resizing and this handle just needlessly takes up space? – maaartinus Apr 1 '11 at 17:11
12  
Maybe because it draws over the top of the window contents in many applications and generally just looks annoying? – Alistair Buxton Apr 4 '11 at 19:33
feedback

5 Answers

active oldest votes
up vote 18 down vote accepted

It is possible to resize grippers or hide them by setting width and height to a zero. Put the following into ~/.gtkrc-2.0:

style "default-style"
{
  GtkWindow::resize-grip-height = 0
  GtkWindow::resize-grip-width = 0
}

class "GtkWidget" style "default-style"

or add this strings in "default" style body of /usr/share/themes//gtk-2.0/gtkrc:

  GtkWindow::resize-grip-height = 0
  GtkWindow::resize-grip-width = 0
share|improve this answer
edited Jul 19 '11 at 4:31
spacer
Community
1
answered Apr 29 '11 at 3:02
spacer
user15328
20412
This is superb. – Oli May 27 '11 at 11:30
@user15328 Is this also possible for gnome3-based ubuntu(11.10,12.04)? – Khurshid Alam Sep 11 at 7:43
feedback
up vote 12 down vote
+50

You can make the grippers off by default by recompiling gtk+2 and gtk+3:

sudo apt-get build-dep libgtk2.0-0 libgtk3.0-0
sudo apt-get quilt
apt-get source libgtk2.0-0 libgtk3.0-0
export QUILT_PATCHES=debian/patches
cd gtk+2*
quilt new 999_remove_grips.patch
quilt edit gtk/gtkwindow.c

Find the line of code:

priv->has_resize_grip = TRUE;

Change TRUE to FALSE

quilt refresh
fakeroot dpkg-buildpackage
cd ../gtk+3*
quilt new 999_remove_grips.patch
quilt edit gtk/gtkwindow.c

Find the line of code:

priv->has_resize_grip = TRUE;

Change TRUE to FALSE

quilt refresh
fakeroot dpkg-buildpackage

Install the resulting deb packages and reboot.

(Of course, you'll have to do this every time there is an update for gtk)

share|improve this answer
answered Apr 5 '11 at 16:07
spacer
Alistair Buxton
1,897321
I'm really glad @user15328 found a better solution that didn't require recompiling! Thanks for the effort though. – akent May 7 '11 at 7:29
feedback
up vote 10 down vote
+25

As a user, this isn't possible. Since it would require you to manually modify the source of an application and include the below line:

gtk_window_set_has_resize_grip(window, false);

This feature was backported from GTK3 and hence the developer docs for it are on this page.

As long as you are having no problems with the grips, it's best to leave them there as they serve a very important purpose: making it easier to resize windows.

share|improve this answer
answered Apr 1 '11 at 7:40
spacer
Benjamin Humphrey
1977
While true, it is already easy to resize with the added shadows in Ubuntu 11.04. I instinctively reach for the nearest side or corner, rather than go to the bottom right hand corner. On another note, it appears that every application now has this gripper, so I don't think that line of code was added to every application, but some sort of setting forced a resize gripper. – A Hylian Human Apr 3 '11 at 22:54
As far as I understand, it's a backported GTK 3 default that can be changed by adding this line. You wouldn't have to change the code to add this gripper. – htorque Apr 4 '11 at 7:52
feedback
up vote 1 down vote

This may be possible by editing the gtkrc theme files as I found a post on Deviantart that mentions using pixmap engine and a transparent png.

I tried a quick edit but couldn't get it to work however someone with more knowledge of themes might be more successful.

share|improve this answer
answered Apr 25 '11 at 1:04
spacer
Cas
2,7272058
feedback
up vote 1 down vote

I found this to be the easiest way: www.omgubuntu.co.uk/2011/05/disable-the-resize-grip-in-ubuntu-11-04/

share|improve this answer
answered Jun 6 '11 at 5:04
spacer
dobbie
755
1  
While this may be a perfectly good way to remove the resize gripper, -1 for providing only a link. See: meta.stackoverflow.com/questions/8231/… – michaelms Aug 8 '11 at 18:19
feedback

Your Answer

 
log in
or
required, but never shown
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged 11.04 gtk resize or ask your own question.

gipoco.com is neither affiliated with the authors of this page nor responsible for its contents. This is a safe-cache copy of the original web site.