summaryrefslogtreecommitdiff
path: root/gtk/gtkfixed.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2014-02-03 15:59:23 -0500
committerMatthias Clasen <mclasen@redhat.com>2014-02-03 16:02:16 -0500
commitffea6a56240ffb97df1c4ac877d6a3a68625e122 (patch)
treeaf7f2a315e0140289ef8046271de8baeaa90f68e /gtk/gtkfixed.c
parentf058b402e407ef7f2444fc07a26486bfb3d88540 (diff)
downloadgtk+-ffea6a56240ffb97df1c4ac877d6a3a68625e122.tar.gz
Revert "fixed: draw css background and borders"
This reverts commit ba6128f8afc90bc32b45559f9c24964e78f6ff3d. This change breaks emacs drawing entirely. Since GtkFixed is somewhat of a legacy widget anyway, lets just not bother doing this modernization there, at least for now.
Diffstat (limited to 'gtk/gtkfixed.c')
-rw-r--r--gtk/gtkfixed.c19
1 files changed, 0 insertions, 19 deletions
diff --git a/gtk/gtkfixed.c b/gtk/gtkfixed.c
index 07665b2977..44b37f95b3 100644
--- a/gtk/gtkfixed.c
+++ b/gtk/gtkfixed.c
@@ -94,8 +94,6 @@ static void gtk_fixed_get_preferred_height (GtkWidget *widget,
gint *natural);
static void gtk_fixed_size_allocate (GtkWidget *widget,
GtkAllocation *allocation);
-static gboolean gtk_fixed_draw (GtkWidget *widget,
- cairo_t *cr);
static void gtk_fixed_add (GtkContainer *container,
GtkWidget *widget);
static void gtk_fixed_remove (GtkContainer *container,
@@ -132,7 +130,6 @@ gtk_fixed_class_init (GtkFixedClass *class)
widget_class->get_preferred_width = gtk_fixed_get_preferred_width;
widget_class->get_preferred_height = gtk_fixed_get_preferred_height;
widget_class->size_allocate = gtk_fixed_size_allocate;
- widget_class->draw = gtk_fixed_draw;
container_class->add = gtk_fixed_add;
container_class->remove = gtk_fixed_remove;
@@ -484,22 +481,6 @@ gtk_fixed_size_allocate (GtkWidget *widget,
}
}
-static gboolean
-gtk_fixed_draw (GtkWidget *widget,
- cairo_t *cr)
-{
- GtkStyleContext *context;
- GtkAllocation alloc;
-
- context = gtk_widget_get_style_context (widget);
- gtk_widget_get_allocation (widget, &alloc);
-
- gtk_render_background (context, cr, 0, 0, alloc.width, alloc.height);
- gtk_render_frame (context, cr, 0, 0, alloc.width, alloc.height);
-
- return GTK_WIDGET_CLASS (gtk_fixed_parent_class)->draw (widget, cr);
-}
-
static void
gtk_fixed_add (GtkContainer *container,
GtkWidget *widget)