From 3839abae1051014fb91453751af6fc8d4c0f8d9e Mon Sep 17 00:00:00 2001 From: Michael Natterer Date: Mon, 5 Mar 2001 16:44:18 +0000 Subject: [PATCH] made the "parent_class" pointer static. 2001-03-05 Michael Natterer * src/pixbuf-draw.c: made the "parent_class" pointer static. (Owen, I just commented out the draw methods which don't exist any more to make it compile). --- modules/engines/pixbuf/ChangeLog | 7 +++++++ modules/engines/pixbuf/pixbuf-draw.c | 14 ++++++++------ 2 files changed, 15 insertions(+), 6 deletions(-) diff --git a/modules/engines/pixbuf/ChangeLog b/modules/engines/pixbuf/ChangeLog index 9bad2a49a9..fdd47e2230 100644 --- a/modules/engines/pixbuf/ChangeLog +++ b/modules/engines/pixbuf/ChangeLog @@ -1,3 +1,10 @@ +2001-03-05 Michael Natterer + + * src/pixbuf-draw.c: made the "parent_class" pointer static. + + (Owen, I just commented out the draw methods which don't exist any + more to make it compile). + 2001-02-20 Sven Neumann * src/pixbuf-draw.c (draw_vline): use draw_vline method of diff --git a/modules/engines/pixbuf/pixbuf-draw.c b/modules/engines/pixbuf/pixbuf-draw.c index 870284403d..1ffe35c942 100644 --- a/modules/engines/pixbuf/pixbuf-draw.c +++ b/modules/engines/pixbuf/pixbuf-draw.c @@ -30,7 +30,7 @@ static void pixbuf_style_init (PixbufStyle *style); static void pixbuf_style_class_init (PixbufStyleClass *klass); -GtkStyleClass *parent_class; +static GtkStyleClass *parent_class = NULL; static ThemeImage * match_theme_image (GtkStyle *style, @@ -581,7 +581,7 @@ draw_diamond (GtkStyle *style, parent_class->draw_diamond (style, window, state, shadow, area, widget, detail, x, y, width, height); } - +/* static void draw_oval (GtkStyle *style, GdkWindow *window, @@ -611,7 +611,7 @@ draw_oval (GtkStyle *style, parent_class->draw_oval (style, window, state, shadow, area, widget, detail, x, y, width, height); } - +*/ static void draw_string (GtkStyle * style, GdkWindow * window, @@ -770,6 +770,7 @@ draw_option (GtkStyle *style, x, y, width, height); } +/* static void draw_cross (GtkStyle *style, GdkWindow *window, @@ -830,6 +831,7 @@ draw_ramp (GtkStyle *style, parent_class->draw_ramp (style, window, state, shadow, area, widget, detail, arrow_direction, x, y, width, height); } +*/ static void draw_tab (GtkStyle *style, @@ -1108,14 +1110,14 @@ pixbuf_style_class_init (PixbufStyleClass *klass) style_class->draw_polygon = draw_polygon; style_class->draw_arrow = draw_arrow; style_class->draw_diamond = draw_diamond; - style_class->draw_oval = draw_oval; + /*style_class->draw_oval = draw_oval;*/ style_class->draw_string = draw_string; style_class->draw_box = draw_box; style_class->draw_flat_box = draw_flat_box; style_class->draw_check = draw_check; style_class->draw_option = draw_option; - style_class->draw_cross = draw_cross; - style_class->draw_ramp = draw_ramp; + /*style_class->draw_cross = draw_cross;*/ + /*style_class->draw_ramp = draw_ramp;*/ style_class->draw_tab = draw_tab; style_class->draw_shadow_gap = draw_shadow_gap; style_class->draw_box_gap = draw_box_gap;