summaryrefslogtreecommitdiff
path: root/gtk/gtkcombobox.c
diff options
context:
space:
mode:
authorTimm Bäder <mail@baedert.org>2017-05-03 11:31:18 +0200
committerMatthias Clasen <mclasen@redhat.com>2017-07-19 21:27:11 -0400
commitc804e8a4c57996a9c83cfc339456a3ea4ba4c883 (patch)
tree3e16a4943c8fa1f9b981d9e5e635b448ef31809c /gtk/gtkcombobox.c
parent8aefa0976584055b397a5ecffc058249590be07a (diff)
downloadgtk+-c804e8a4c57996a9c83cfc339456a3ea4ba4c883.tar.gz
combobox: Remove css box drawing
Diffstat (limited to 'gtk/gtkcombobox.c')
-rw-r--r--gtk/gtkcombobox.c29
1 files changed, 1 insertions, 28 deletions
diff --git a/gtk/gtkcombobox.c b/gtk/gtkcombobox.c
index bcdad85a80..b4268ef778 100644
--- a/gtk/gtkcombobox.c
+++ b/gtk/gtkcombobox.c
@@ -410,25 +410,6 @@ gtk_combo_box_allocate (GtkCssGadget *gadget,
}
}
-static gboolean
-gtk_combo_box_render (GtkCssGadget *gadget,
- GtkSnapshot *snapshot,
- int x,
- int y,
- int width,
- int height,
- gpointer data)
-{
- GtkWidget *widget = gtk_css_gadget_get_owner (gadget);
- GtkComboBox *combo_box = GTK_COMBO_BOX (widget);
- GtkComboBoxPrivate *priv = combo_box->priv;
-
- gtk_widget_snapshot_child (widget,
- priv->box, snapshot);
-
- return FALSE;
-}
-
static void
gtk_combo_box_measure_ (GtkWidget *widget,
GtkOrientation orientation,
@@ -468,13 +449,6 @@ gtk_combo_box_size_allocate (GtkWidget *widget,
}
static void
-gtk_combo_box_snapshot (GtkWidget *widget,
- GtkSnapshot *snapshot)
-{
- gtk_css_gadget_snapshot (GTK_COMBO_BOX (widget)->priv->gadget, snapshot);
-}
-
-static void
gtk_combo_box_compute_expand (GtkWidget *widget,
gboolean *hexpand,
gboolean *vexpand)
@@ -511,7 +485,6 @@ gtk_combo_box_class_init (GtkComboBoxClass *klass)
widget_class = (GtkWidgetClass *)klass;
widget_class->size_allocate = gtk_combo_box_size_allocate;
- widget_class->snapshot = gtk_combo_box_snapshot;
widget_class->scroll_event = gtk_combo_box_scroll_event;
widget_class->mnemonic_activate = gtk_combo_box_mnemonic_activate;
widget_class->grab_focus = gtk_combo_box_grab_focus;
@@ -1055,7 +1028,7 @@ gtk_combo_box_init (GtkComboBox *combo_box)
GTK_WIDGET (combo_box),
gtk_combo_box_measure,
gtk_combo_box_allocate,
- gtk_combo_box_render,
+ NULL,
NULL, NULL);
menu = GTK_TREE_MENU (priv->popup_widget);