use geometry hints for the toolbox

--Sven
This commit is contained in:
Sven Neumann 2000-02-19 16:29:16 +00:00
parent 5d57b99903
commit ce4894be3d
4 changed files with 44 additions and 1 deletions

View file

@ -1,3 +1,10 @@
Sat Feb 19 17:27:07 CET 2000 Sven Neumann <sven@gimp.org>
* app/interface.c: Use geometry hints (minimum size and size
increments) for the toolbox. This works quite nice here at my
box, but your mileage may vary, so please test this and report
back...
2000-02-19 Michael Natterer <mitch@gimp.org>
* libgimp/gimppixmap.c: gimp_pixmap_new(): set the widget's
@ -35,7 +42,7 @@ Sat Feb 19 13:53:34 CET 2000 Sven Neumann <sven@gimp.org>
control.
* app/nav_window.c: as a workaround for bug #5955 move the
navigation popup on screen if used to close to the screen borders.
navigation popup on screen if used too close to the screen borders.
Moving the cursor will make the image scroll by a large amount
eventually, but IMHO this is better than having a nonfunctional
navigation popup.

View file

@ -510,6 +510,7 @@ create_toolbox (void)
GtkWidget *menubar;
GList *list;
GtkAccelGroup *table;
GdkGeometry geometry;
window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
@ -519,7 +520,18 @@ create_toolbox (void)
gtk_window_set_wmclass (GTK_WINDOW (window), "toolbox", "Gimp");
gtk_window_set_title (GTK_WINDOW (window), _("The GIMP"));
gtk_window_set_policy (GTK_WINDOW (window), TRUE, TRUE, FALSE);
geometry.min_width = 30;
geometry.min_height = 102;
geometry.width_inc = 28;
geometry.height_inc = 28;
gtk_window_set_geometry_hints (GTK_WINDOW (window),
NULL,
&geometry,
GDK_HINT_MIN_SIZE | GDK_HINT_RESIZE_INC);
session_set_window_geometry (window, &toolbox_session_info, TRUE);
gtk_signal_connect (GTK_OBJECT (window), "delete_event",
GTK_SIGNAL_FUNC (toolbox_delete),
NULL);

View file

@ -510,6 +510,7 @@ create_toolbox (void)
GtkWidget *menubar;
GList *list;
GtkAccelGroup *table;
GdkGeometry geometry;
window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
@ -519,7 +520,18 @@ create_toolbox (void)
gtk_window_set_wmclass (GTK_WINDOW (window), "toolbox", "Gimp");
gtk_window_set_title (GTK_WINDOW (window), _("The GIMP"));
gtk_window_set_policy (GTK_WINDOW (window), TRUE, TRUE, FALSE);
geometry.min_width = 30;
geometry.min_height = 102;
geometry.width_inc = 28;
geometry.height_inc = 28;
gtk_window_set_geometry_hints (GTK_WINDOW (window),
NULL,
&geometry,
GDK_HINT_MIN_SIZE | GDK_HINT_RESIZE_INC);
session_set_window_geometry (window, &toolbox_session_info, TRUE);
gtk_signal_connect (GTK_OBJECT (window), "delete_event",
GTK_SIGNAL_FUNC (toolbox_delete),
NULL);

View file

@ -510,6 +510,7 @@ create_toolbox (void)
GtkWidget *menubar;
GList *list;
GtkAccelGroup *table;
GdkGeometry geometry;
window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
@ -519,7 +520,18 @@ create_toolbox (void)
gtk_window_set_wmclass (GTK_WINDOW (window), "toolbox", "Gimp");
gtk_window_set_title (GTK_WINDOW (window), _("The GIMP"));
gtk_window_set_policy (GTK_WINDOW (window), TRUE, TRUE, FALSE);
geometry.min_width = 30;
geometry.min_height = 102;
geometry.width_inc = 28;
geometry.height_inc = 28;
gtk_window_set_geometry_hints (GTK_WINDOW (window),
NULL,
&geometry,
GDK_HINT_MIN_SIZE | GDK_HINT_RESIZE_INC);
session_set_window_geometry (window, &toolbox_session_info, TRUE);
gtk_signal_connect (GTK_OBJECT (window), "delete_event",
GTK_SIGNAL_FUNC (toolbox_delete),
NULL);