[Glade-devel] Patch review request: allowing the palette to be smaller
- From: kov debian org (Gustavo Noronha Silva)
- Subject: [Glade-devel] Patch review request: allowing the palette to be smaller
- Date: Sun, 12 Dec 2004 00:41:22 -0200
--=-ozum3Yf6XZxKYbTJLScP
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
Hello,
I would like to propose the attached patch for glade-3. Glade3 windows
the way they are now really eat screen space, so I'm trying to think
about ways of making them smaller.
I think allowing the palette to be resized to, at least, not overlap
with the glade project window on 1024x768 screens is a good thing to
start with.
This will also not force the size into people using the palette widget
in other windows.
Thanks,
--
kov debian org: Gustavo Noronha <http://people.debian.org/~kov>
Debian: <http://www.debian.org> * <http://www.debian-br.org>
--=-ozum3Yf6XZxKYbTJLScP
Content-Disposition: attachment; filename=let-palette-get-smaller.diff
Content-Type: text/x-patch; name=let-palette-get-smaller.diff; charset=UTF-8
Content-Transfer-Encoding: 7bit
? install-sh
Index: src/glade-palette.c
===================================================================
RCS file: /cvs/gnome/glade3/src/glade-palette.c,v
retrieving revision 1.27
diff -u -r1.27 glade-palette.c
--- src/glade-palette.c 18 Nov 2004 06:14:01 -0000 1.27
+++ src/glade-palette.c 12 Dec 2004 02:38:16 -0000
@@ -266,7 +266,6 @@
gtk_scrolled_window_set_policy (scrolled_window, GTK_POLICY_NEVER, GTK_POLICY_AUTOMATIC);
gtk_scrolled_window_add_with_viewport (scrolled_window, GTK_WIDGET (vbox));
gtk_scrolled_window_set_shadow_type (scrolled_window, GTK_SHADOW_NONE);
- gtk_widget_set_size_request (GTK_WIDGET (scrolled_window), -1, 400);
return GTK_WIDGET (scrolled_window);
}
Index: src/glade-project-window.c
===================================================================
RCS file: /cvs/gnome/glade3/src/glade-project-window.c,v
retrieving revision 1.87
diff -u -r1.87 glade-project-window.c
--- src/glade-project-window.c 18 Nov 2004 06:14:01 -0000 1.87
+++ src/glade-project-window.c 12 Dec 2004 02:38:17 -0000
@@ -561,6 +561,7 @@
g_return_if_fail (gpw != NULL);
gpw->palette_window = GTK_WINDOW (gtk_window_new (GTK_WINDOW_TOPLEVEL));
+ gtk_window_set_default_size (GTK_WIDGET (gpw->palette_window), -1, 400);
gpw->palette = glade_palette_new (gpw->catalogs);
gtk_window_set_title (gpw->palette_window, _("Palette"));
--=-ozum3Yf6XZxKYbTJLScP--
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]