forked from AuroraMiddleware/gtk
Revert "gizmo: Add a css_changed function"
This reverts commit 39f72b3834
.
This commit is contained in:
parent
31ceb4ddfb
commit
04daa236ad
@ -82,16 +82,6 @@ gtk_gizmo_grab_focus (GtkWidget *widget)
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
static void
|
||||
gtk_gizmo_css_changed (GtkWidget *widget,
|
||||
GtkCssStyleChange *change)
|
||||
{
|
||||
GtkGizmo *self = GTK_GIZMO (widget);
|
||||
|
||||
if (self->css_changed_func)
|
||||
self->css_changed_func (self, change);
|
||||
}
|
||||
|
||||
static void
|
||||
gtk_gizmo_finalize (GObject *object)
|
||||
{
|
||||
@ -125,7 +115,6 @@ gtk_gizmo_class_init (GtkGizmoClass *klass)
|
||||
widget_class->contains = gtk_gizmo_contains;
|
||||
widget_class->grab_focus = gtk_gizmo_grab_focus;
|
||||
widget_class->focus = gtk_gizmo_focus;
|
||||
widget_class->css_changed = gtk_gizmo_css_changed;
|
||||
}
|
||||
|
||||
static void
|
||||
@ -176,12 +165,3 @@ gtk_gizmo_new_with_role (const char *css_name,
|
||||
|
||||
return GTK_WIDGET (gizmo);
|
||||
}
|
||||
|
||||
void
|
||||
gtk_gizmo_set_css_changed_func (GtkGizmo *gizmo,
|
||||
GtkGizmoCssChangedFunc css_changed_func)
|
||||
{
|
||||
g_return_if_fail (!gtk_widget_get_realized (GTK_WIDGET (gizmo)));
|
||||
|
||||
gizmo->css_changed_func = css_changed_func;
|
||||
}
|
||||
|
@ -33,9 +33,7 @@ typedef gboolean (* GtkGizmoContainsFunc) (GtkGizmo *gizmo,
|
||||
double y);
|
||||
typedef gboolean (* GtkGizmoFocusFunc) (GtkGizmo *gizmo,
|
||||
GtkDirectionType direction);
|
||||
typedef gboolean (* GtkGizmoGrabFocusFunc) (GtkGizmo *gizmo);
|
||||
typedef void (* GtkGizmoCssChangedFunc) (GtkGizmo *gizmo,
|
||||
GtkCssStyleChange *change);
|
||||
typedef gboolean (* GtkGizmoGrabFocusFunc)(GtkGizmo *gizmo);
|
||||
|
||||
struct _GtkGizmo
|
||||
{
|
||||
@ -47,7 +45,6 @@ struct _GtkGizmo
|
||||
GtkGizmoContainsFunc contains_func;
|
||||
GtkGizmoFocusFunc focus_func;
|
||||
GtkGizmoGrabFocusFunc grab_focus_func;
|
||||
GtkGizmoCssChangedFunc css_changed_func;
|
||||
};
|
||||
|
||||
struct _GtkGizmoClass
|
||||
@ -74,7 +71,5 @@ GtkWidget *gtk_gizmo_new_with_role (const char *css_name,
|
||||
GtkGizmoFocusFunc focus_func,
|
||||
GtkGizmoGrabFocusFunc grab_focus_func);
|
||||
|
||||
void gtk_gizmo_set_css_changed_func (GtkGizmo *gizmo,
|
||||
GtkGizmoCssChangedFunc css_changed_func);
|
||||
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user