[gtk+] gtkplug.c: remove draw function, not needed
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] gtkplug.c: remove draw function, not needed
- Date: Fri, 11 Sep 2015 16:33:30 +0000 (UTC)
commit 4539804086b464fa12adbb76a36c339bc69c9e3b
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date: Fri Sep 11 12:49:51 2015 +0300
gtkplug.c: remove draw function, not needed
Background will be rendered by parent class - GtkWindow.
https://bugzilla.gnome.org/show_bug.cgi?id=754854
gtk/gtkplug.c | 15 ---------------
1 files changed, 0 insertions(+), 15 deletions(-)
---
diff --git a/gtk/gtkplug.c b/gtk/gtkplug.c
index b65dacb..79ffba3 100644
--- a/gtk/gtkplug.c
+++ b/gtk/gtkplug.c
@@ -91,8 +91,6 @@ static void gtk_plug_show (GtkWidget *widget)
static void gtk_plug_hide (GtkWidget *widget);
static void gtk_plug_map (GtkWidget *widget);
static void gtk_plug_unmap (GtkWidget *widget);
-static gboolean gtk_plug_draw (GtkWidget *widget,
- cairo_t *cr);
static gboolean gtk_plug_key_press_event (GtkWidget *widget,
GdkEventKey *event);
static gboolean gtk_plug_focus_event (GtkWidget *widget,
@@ -176,7 +174,6 @@ gtk_plug_class_init (GtkPlugClass *class)
widget_class->hide = gtk_plug_hide;
widget_class->map = gtk_plug_map;
widget_class->unmap = gtk_plug_unmap;
- widget_class->draw = gtk_plug_draw;
widget_class->focus = gtk_plug_focus;
gtk_widget_class_set_accessible_role (widget_class, ATK_ROLE_PANEL);
@@ -694,18 +691,6 @@ gtk_plug_unrealize (GtkWidget *widget)
GTK_WIDGET_CLASS (gtk_plug_parent_class)->unrealize (widget);
}
-static gboolean
-gtk_plug_draw (GtkWidget *widget,
- cairo_t *cr)
-{
- gtk_render_background (gtk_widget_get_style_context (widget), cr,
- 0, 0,
- gtk_widget_get_allocated_width (widget),
- gtk_widget_get_allocated_height (widget));
-
- return GTK_WIDGET_CLASS (gtk_plug_parent_class)->draw (widget, cr);
-}
-
static void
xembed_set_info (GdkWindow *window,
unsigned long flags)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]