diff options
author | Owen Taylor <otaylor@gtk.org> | 1998-12-07 06:37:27 +0000 |
---|---|---|
committer | Owen Taylor <otaylor@src.gnome.org> | 1998-12-07 06:37:27 +0000 |
commit | 621beb8aaf93c8cfe234723d7001e114ac5a8345 (patch) | |
tree | 40c4267ff9db1dbbe02c70bb1dee962c2e8a20a8 /gtk/gtktogglebutton.c | |
parent | fd7bdf03e002ecd5686ecab534b6254d83ea20ba (diff) | |
download | gtk+-621beb8aaf93c8cfe234723d7001e114ac5a8345.tar.gz |
New functions gtk_window_set_transient_for() - set up a "transient for"
Mon Dec 7 01:29:27 1998 Owen Taylor <otaylor@gtk.org>
* gtk/gtkwindow.c: New functions
gtk_window_set_transient_for() - set up a "transient for" relationship.
gtk_window_set_default_size() - set the initial size of a window
distinct from its minimum size.
gtk_window_set_geometry_hints() - Allow the user to set
minimum, maximum sizes, aspect rations, and gridded geometry,
possibly all with respect to a subwidget of the window.
These interfaces are still a wee bit experimental.
* gdk/gdk.c: Added gdk_window_set_transient_for(),
gdk_window_set_geometry_hints(), and gdk_window_set_role().
* gdk/gdktypes.h: Added new types for find-grained specification
of WM hints.
* gtk/testgtk.c: Various changes to tests to test the
above new functions.
* gtk/gtkfontsel.c: Squash a few 'const' warnings.
* gtk/gtktogglebutton.c (gtk_toggle_button_realize): Restored
call to gtk_style_set_background() to prevent egregious
flashing to black.
Diffstat (limited to 'gtk/gtktogglebutton.c')
-rw-r--r-- | gtk/gtktogglebutton.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gtk/gtktogglebutton.c b/gtk/gtktogglebutton.c index cccbc49e8d..8b6fd6a881 100644 --- a/gtk/gtktogglebutton.c +++ b/gtk/gtktogglebutton.c @@ -538,7 +538,11 @@ gtk_toggle_button_realize (GtkWidget *widget) gdk_window_new (gtk_widget_get_parent_window (widget), &attributes, attributes_mask); gdk_window_set_user_data (widget->window, toggle_button); } + widget->style = gtk_style_attach (widget->style, widget->window); + + if (!toggle_button->draw_indicator) + gtk_style_set_background (widget->style, widget->window, GTK_STATE_NORMAL); } static void |