summaryrefslogtreecommitdiff
path: root/gtk/gtkpreview.c
diff options
context:
space:
mode:
authorFederico Mena Quintero <federico@nuclecu.unam.mx>1998-02-12 03:02:14 +0000
committerArturo Espinosa <unammx@src.gnome.org>1998-02-12 03:02:14 +0000
commit9dee8ee4e4fca545ae4b2a2d41aa748cdc8cac1a (patch)
tree39139a8cfbfcc7907bc0a6a5a7068ff53f457b59 /gtk/gtkpreview.c
parent31a238b6b67f5d45ecb0c82d950da47a85052108 (diff)
downloadgtk+-9dee8ee4e4fca545ae4b2a2d41aa748cdc8cac1a.tar.gz
Fixed unrealize handler to comply with the documentation (which mentions
2018-02-11 Federico Mena Quintero <federico@nuclecu.unam.mx> * gtk/gtkclist.c: * gtk/gtkentry.c: * gtk/gtkfixed.c: * gtk/gtkhandlebox.c: * gtk/gtknotebook.c: * gtk/gtkpaned.c: * gtk/gtkpreview.c: * gtk/gtkrange.c: * gtk/gtkruler.c: * gtk/gtktext.c: * gtk/gtkviewport.c: Fixed unrealize handler to comply with the documentation (which mentions the right thing to do).
Diffstat (limited to 'gtk/gtkpreview.c')
-rw-r--r--gtk/gtkpreview.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/gtk/gtkpreview.c b/gtk/gtkpreview.c
index 8e73d277dd..269c9fe706 100644
--- a/gtk/gtkpreview.c
+++ b/gtk/gtkpreview.c
@@ -48,7 +48,6 @@ static void gtk_preview_class_init (GtkPreviewClass *klass);
static void gtk_preview_init (GtkPreview *preview);
static void gtk_preview_finalize (GtkObject *object);
static void gtk_preview_realize (GtkWidget *widget);
-static void gtk_preview_unrealize (GtkWidget *widget);
static gint gtk_preview_expose (GtkWidget *widget,
GdkEventExpose *event);
static void gtk_preview_make_buffer (GtkPreview *preview);
@@ -165,7 +164,6 @@ gtk_preview_class_init (GtkPreviewClass *klass)
object_class->finalize = gtk_preview_finalize;
widget_class->realize = gtk_preview_realize;
- widget_class->unrealize = gtk_preview_unrealize;
widget_class->expose_event = gtk_preview_expose;
if (preview_info)
@@ -682,20 +680,6 @@ gtk_preview_realize (GtkWidget *widget)
gtk_style_set_background (widget->style, widget->window, GTK_STATE_NORMAL);
}
-static void
-gtk_preview_unrealize (GtkWidget *widget)
-{
- GtkPreview *preview;
-
- g_return_if_fail (widget != NULL);
- g_return_if_fail (GTK_IS_PREVIEW (widget));
-
- preview = GTK_PREVIEW (widget);
-
- if (GTK_WIDGET_CLASS (parent_class)->unrealize)
- (* GTK_WIDGET_CLASS (parent_class)->unrealize) (widget);
-}
-
static gint
gtk_preview_expose (GtkWidget *widget,
GdkEventExpose *event)