summaryrefslogtreecommitdiff
path: root/gtk/gtkwindow.c
diff options
context:
space:
mode:
authorOwen Taylor <otaylor@redhat.com>1999-02-16 04:29:00 +0000
committerOwen Taylor <otaylor@src.gnome.org>1999-02-16 04:29:00 +0000
commitfd2c0c5651ced62c6c235629ee0dcc9cb5d154f2 (patch)
tree2ddfacf5cbeeec1684bb3ba1d6ca56a6ab309d36 /gtk/gtkwindow.c
parent3a5883b7e4a5a6a8d46bbc7ef277e711b6555b26 (diff)
downloadgtk+-fd2c0c5651ced62c6c235629ee0dcc9cb5d154f2.tar.gz
When setting styles, remove unecessary explicits draws and clears.
Fri Feb 12 15:47:20 1999 Owen Taylor <otaylor@redhat.com> * gtk/gtkcalender.c gtk/gtkentry.c gtk/gtkhandlebox.c gtk/gtknotebook.c gtk/gtktext.c gtk/gtkviewport.c gtk/gtkwidget.c: When setting styles, remove unecessary explicits draws and clears. * gtk/gtkrange.c: Ugly fix so the steps get the correct background.
Diffstat (limited to 'gtk/gtkwindow.c')
-rw-r--r--gtk/gtkwindow.c25
1 files changed, 0 insertions, 25 deletions
diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c
index d6edabca10..3ce41b5e97 100644
--- a/gtk/gtkwindow.c
+++ b/gtk/gtkwindow.c
@@ -103,8 +103,6 @@ static void gtk_window_paint (GtkWidget *widget,
GdkRectangle *area);
static gint gtk_window_expose (GtkWidget *widget,
GdkEventExpose *event);
-static void gtk_window_style_set (GtkWidget *widget,
- GtkStyle *previous_style);
static void gtk_window_unset_transient_for (GtkWindow *window);
static void gtk_window_transient_parent_realized (GtkWidget *parent,
GtkWidget *window);
@@ -196,7 +194,6 @@ gtk_window_class_init (GtkWindowClass *klass)
widget_class->focus_in_event = gtk_window_focus_in_event;
widget_class->focus_out_event = gtk_window_focus_out_event;
widget_class->client_event = gtk_window_client_event;
- widget_class->style_set = gtk_window_style_set;
widget_class->draw = gtk_window_draw;
widget_class->expose_event = gtk_window_expose;
@@ -1696,25 +1693,3 @@ gtk_window_draw (GtkWidget *widget,
if (GTK_WIDGET_CLASS (parent_class)->draw)
(* GTK_WIDGET_CLASS (parent_class)->draw) (widget, area);
}
-
-static void
-gtk_window_style_set (GtkWidget *widget,
- GtkStyle *previous_style)
-{
- GdkRectangle area;
-
- if (GTK_WIDGET_REALIZED (widget) &&
- !GTK_WIDGET_NO_WINDOW (widget))
- {
- gtk_style_set_background (widget->style, widget->window, widget->state);
-
- area.x = 0;
- area.y = 0;
- area.width = widget->allocation.width;
- area.height = widget->allocation.height;
- gtk_window_draw(widget, &area);
-
- if (GTK_WIDGET_DRAWABLE (widget))
- gdk_window_clear (widget->window);
- }
-}