diff options
-rw-r--r-- | ChangeLog | 18 | ||||
-rw-r--r-- | ChangeLog.pre-2-0 | 18 | ||||
-rw-r--r-- | ChangeLog.pre-2-10 | 18 | ||||
-rw-r--r-- | ChangeLog.pre-2-2 | 18 | ||||
-rw-r--r-- | ChangeLog.pre-2-4 | 18 | ||||
-rw-r--r-- | ChangeLog.pre-2-6 | 18 | ||||
-rw-r--r-- | ChangeLog.pre-2-8 | 18 | ||||
-rw-r--r-- | gtk/gtkstyle.c | 13 | ||||
-rw-r--r-- | gtk/gtkwindow.c | 12 |
9 files changed, 142 insertions, 9 deletions
@@ -1,3 +1,21 @@ +Sat Feb 23 22:37:23 2002 Owen Taylor <otaylor@redhat.com> + + * gtk/gtkstyle.c (gtk_style_init): Sanity check default + font family name and size. + + * gtk/gtkwindow.c (gtk_window_set_default_size): Remove + incorrect comment about the geometry widget. + + * gtk/gtkwindow.c (gtk_window_move_resize): Unset the + gtk_window_resize)() information once we've set the size + once, to avoid it coming back next time we queue a resize. + (#72359) + + * gtk/gtkwindow.c (gtk_window_move_resize): Remove + setthing of ->need_default_size from here, Havoc + says that it should correspond more or less exactly + to GTK_WIDGET_MAPPED (window). + Sat Feb 23 23:00:48 2002 Jonathan Blandford <jrb@redhat.com> * gtk/gtktreemodel.h: add () to function macros as per owen's diff --git a/ChangeLog.pre-2-0 b/ChangeLog.pre-2-0 index 4810372fa..e68e2174b 100644 --- a/ChangeLog.pre-2-0 +++ b/ChangeLog.pre-2-0 @@ -1,3 +1,21 @@ +Sat Feb 23 22:37:23 2002 Owen Taylor <otaylor@redhat.com> + + * gtk/gtkstyle.c (gtk_style_init): Sanity check default + font family name and size. + + * gtk/gtkwindow.c (gtk_window_set_default_size): Remove + incorrect comment about the geometry widget. + + * gtk/gtkwindow.c (gtk_window_move_resize): Unset the + gtk_window_resize)() information once we've set the size + once, to avoid it coming back next time we queue a resize. + (#72359) + + * gtk/gtkwindow.c (gtk_window_move_resize): Remove + setthing of ->need_default_size from here, Havoc + says that it should correspond more or less exactly + to GTK_WIDGET_MAPPED (window). + Sat Feb 23 23:00:48 2002 Jonathan Blandford <jrb@redhat.com> * gtk/gtktreemodel.h: add () to function macros as per owen's diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index 4810372fa..e68e2174b 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,3 +1,21 @@ +Sat Feb 23 22:37:23 2002 Owen Taylor <otaylor@redhat.com> + + * gtk/gtkstyle.c (gtk_style_init): Sanity check default + font family name and size. + + * gtk/gtkwindow.c (gtk_window_set_default_size): Remove + incorrect comment about the geometry widget. + + * gtk/gtkwindow.c (gtk_window_move_resize): Unset the + gtk_window_resize)() information once we've set the size + once, to avoid it coming back next time we queue a resize. + (#72359) + + * gtk/gtkwindow.c (gtk_window_move_resize): Remove + setthing of ->need_default_size from here, Havoc + says that it should correspond more or less exactly + to GTK_WIDGET_MAPPED (window). + Sat Feb 23 23:00:48 2002 Jonathan Blandford <jrb@redhat.com> * gtk/gtktreemodel.h: add () to function macros as per owen's diff --git a/ChangeLog.pre-2-2 b/ChangeLog.pre-2-2 index 4810372fa..e68e2174b 100644 --- a/ChangeLog.pre-2-2 +++ b/ChangeLog.pre-2-2 @@ -1,3 +1,21 @@ +Sat Feb 23 22:37:23 2002 Owen Taylor <otaylor@redhat.com> + + * gtk/gtkstyle.c (gtk_style_init): Sanity check default + font family name and size. + + * gtk/gtkwindow.c (gtk_window_set_default_size): Remove + incorrect comment about the geometry widget. + + * gtk/gtkwindow.c (gtk_window_move_resize): Unset the + gtk_window_resize)() information once we've set the size + once, to avoid it coming back next time we queue a resize. + (#72359) + + * gtk/gtkwindow.c (gtk_window_move_resize): Remove + setthing of ->need_default_size from here, Havoc + says that it should correspond more or less exactly + to GTK_WIDGET_MAPPED (window). + Sat Feb 23 23:00:48 2002 Jonathan Blandford <jrb@redhat.com> * gtk/gtktreemodel.h: add () to function macros as per owen's diff --git a/ChangeLog.pre-2-4 b/ChangeLog.pre-2-4 index 4810372fa..e68e2174b 100644 --- a/ChangeLog.pre-2-4 +++ b/ChangeLog.pre-2-4 @@ -1,3 +1,21 @@ +Sat Feb 23 22:37:23 2002 Owen Taylor <otaylor@redhat.com> + + * gtk/gtkstyle.c (gtk_style_init): Sanity check default + font family name and size. + + * gtk/gtkwindow.c (gtk_window_set_default_size): Remove + incorrect comment about the geometry widget. + + * gtk/gtkwindow.c (gtk_window_move_resize): Unset the + gtk_window_resize)() information once we've set the size + once, to avoid it coming back next time we queue a resize. + (#72359) + + * gtk/gtkwindow.c (gtk_window_move_resize): Remove + setthing of ->need_default_size from here, Havoc + says that it should correspond more or less exactly + to GTK_WIDGET_MAPPED (window). + Sat Feb 23 23:00:48 2002 Jonathan Blandford <jrb@redhat.com> * gtk/gtktreemodel.h: add () to function macros as per owen's diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6 index 4810372fa..e68e2174b 100644 --- a/ChangeLog.pre-2-6 +++ b/ChangeLog.pre-2-6 @@ -1,3 +1,21 @@ +Sat Feb 23 22:37:23 2002 Owen Taylor <otaylor@redhat.com> + + * gtk/gtkstyle.c (gtk_style_init): Sanity check default + font family name and size. + + * gtk/gtkwindow.c (gtk_window_set_default_size): Remove + incorrect comment about the geometry widget. + + * gtk/gtkwindow.c (gtk_window_move_resize): Unset the + gtk_window_resize)() information once we've set the size + once, to avoid it coming back next time we queue a resize. + (#72359) + + * gtk/gtkwindow.c (gtk_window_move_resize): Remove + setthing of ->need_default_size from here, Havoc + says that it should correspond more or less exactly + to GTK_WIDGET_MAPPED (window). + Sat Feb 23 23:00:48 2002 Jonathan Blandford <jrb@redhat.com> * gtk/gtktreemodel.h: add () to function macros as per owen's diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index 4810372fa..e68e2174b 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,3 +1,21 @@ +Sat Feb 23 22:37:23 2002 Owen Taylor <otaylor@redhat.com> + + * gtk/gtkstyle.c (gtk_style_init): Sanity check default + font family name and size. + + * gtk/gtkwindow.c (gtk_window_set_default_size): Remove + incorrect comment about the geometry widget. + + * gtk/gtkwindow.c (gtk_window_move_resize): Unset the + gtk_window_resize)() information once we've set the size + once, to avoid it coming back next time we queue a resize. + (#72359) + + * gtk/gtkwindow.c (gtk_window_move_resize): Remove + setthing of ->need_default_size from here, Havoc + says that it should correspond more or less exactly + to GTK_WIDGET_MAPPED (window). + Sat Feb 23 23:00:48 2002 Jonathan Blandford <jrb@redhat.com> * gtk/gtktreemodel.h: add () to function macros as per owen's diff --git a/gtk/gtkstyle.c b/gtk/gtkstyle.c index 608f5aed6..eca446b3d 100644 --- a/gtk/gtkstyle.c +++ b/gtk/gtkstyle.c @@ -486,9 +486,20 @@ gtk_style_init (GtkStyle *style) { gint i; const gchar *font_name = _gtk_rc_context_get_default_font_name (gtk_settings_get_default ()); - + style->font_desc = pango_font_description_from_string (font_name); + if (!pango_font_description_get_family (style->font_desc)) + { + g_warning ("Default font does not have a family set"); + pango_font_description_set_family (style->font_desc, "Sans"); + } + if (pango_font_description_get_size (style->font_desc) <= 0) + { + g_warning ("Default font does not have a positive size"); + pango_font_description_set_size (style->font_desc, 10 * PANGO_SCALE); + } + style->attach_count = 0; style->colormap = NULL; style->depth = -1; diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c index 7f860fc58..dbfd9c69f 100644 --- a/gtk/gtkwindow.c +++ b/gtk/gtkwindow.c @@ -2405,11 +2405,6 @@ gtk_window_set_default_size_internal (GtkWindow *window, * For more control over a window's initial size and how resizing works, * investigate gtk_window_set_geometry_hints(). * - * A useful feature: if you set the "geometry widget" via - * gtk_window_set_geometry_hints(), the default size specified by - * gtk_window_set_default_size() will be the default size of that - * widget, not of the entire window. - * * For some uses, gtk_window_resize() is a more appropriate function. * gtk_window_resize() changes the current size of the window, rather * than the size to be used on initial display. gtk_window_resize() always @@ -2467,8 +2462,8 @@ gtk_window_get_default_size (GtkWindow *window, /** * gtk_window_resize: * @window: a #GtkWindow - * @width: width to resize the window to - * @height: height to resize the window to + * @width: width in pixels to resize the window to + * @height: height in pixels to resize the window to * * Resizes the window as if the user had done so, obeying geometry * constraints. The default geometry constraint is that windows may @@ -4384,8 +4379,9 @@ gtk_window_move_resize (GtkWindow *window) * GTK_RESIZE_IMMEDIATE containers) */ info->position_constraints_changed = FALSE; - window->need_default_position = FALSE; info->initial_pos_set = FALSE; + info->resize_width = -1; + info->resize_height = -1; /* for GTK_RESIZE_QUEUE toplevels, we are now awaiting a new * configure event in response to our resizing request. |