frame: Remove css box drawing
This commit is contained in:
committed by
Matthias Clasen
parent
706b0722d4
commit
90537a5e04
@@ -121,8 +121,6 @@ static void gtk_frame_get_property (GObject *object,
|
||||
guint param_id,
|
||||
GValue *value,
|
||||
GParamSpec *pspec);
|
||||
static void gtk_frame_snapshot (GtkWidget *widget,
|
||||
GtkSnapshot *snapshot);
|
||||
static void gtk_frame_size_allocate (GtkWidget *widget,
|
||||
GtkAllocation *allocation);
|
||||
static void gtk_frame_remove (GtkContainer *container,
|
||||
@@ -163,13 +161,6 @@ static void gtk_frame_allocate (GtkCssGadget *gadget,
|
||||
int baseline,
|
||||
GtkAllocation *out_clip,
|
||||
gpointer data);
|
||||
static gboolean gtk_frame_render (GtkCssGadget *gadget,
|
||||
GtkSnapshot *snapshot,
|
||||
int x,
|
||||
int y,
|
||||
int width,
|
||||
int height,
|
||||
gpointer data);
|
||||
|
||||
|
||||
G_DEFINE_TYPE_WITH_CODE (GtkFrame, gtk_frame, GTK_TYPE_BIN,
|
||||
@@ -232,7 +223,6 @@ gtk_frame_class_init (GtkFrameClass *class)
|
||||
|
||||
g_object_class_install_properties (gobject_class, LAST_PROP, frame_props);
|
||||
|
||||
widget_class->snapshot = gtk_frame_snapshot;
|
||||
widget_class->size_allocate = gtk_frame_size_allocate;
|
||||
widget_class->measure = gtk_frame_measure_;
|
||||
|
||||
@@ -284,7 +274,7 @@ gtk_frame_init (GtkFrame *frame)
|
||||
GTK_WIDGET (frame),
|
||||
gtk_frame_measure,
|
||||
gtk_frame_allocate,
|
||||
gtk_frame_render,
|
||||
NULL,
|
||||
NULL,
|
||||
NULL);
|
||||
}
|
||||
@@ -659,31 +649,6 @@ gtk_frame_get_shadow_type (GtkFrame *frame)
|
||||
return frame->priv->shadow_type;
|
||||
}
|
||||
|
||||
static void
|
||||
gtk_frame_snapshot (GtkWidget *widget,
|
||||
GtkSnapshot *snapshot)
|
||||
{
|
||||
gtk_css_gadget_snapshot (GTK_FRAME (widget)->priv->gadget, snapshot);
|
||||
}
|
||||
|
||||
static gboolean
|
||||
gtk_frame_render (GtkCssGadget *gadget,
|
||||
GtkSnapshot *snapshot,
|
||||
int x,
|
||||
int y,
|
||||
int width,
|
||||
int height,
|
||||
gpointer data)
|
||||
{
|
||||
GtkWidget *widget;
|
||||
|
||||
widget = gtk_css_gadget_get_owner (gadget);
|
||||
|
||||
GTK_WIDGET_CLASS (gtk_frame_parent_class)->snapshot (widget, snapshot);
|
||||
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
static void
|
||||
gtk_frame_size_allocate (GtkWidget *widget,
|
||||
GtkAllocation *allocation)
|
||||
|
||||
Reference in New Issue
Block a user