[gtk+/font-chooser] hsv: Use gtk_widget_class_accessible_set_role()
- From: Alberto Ruiz <aruiz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/font-chooser] hsv: Use gtk_widget_class_accessible_set_role()
- Date: Wed, 20 Jul 2011 20:18:58 +0000 (UTC)
commit 4f7a48b15a7a62951295df3756c9cc92a437d6bf
Author: Benjamin Otte <otte gnome org>
Date: Mon Jul 18 14:22:51 2011 +0200
hsv: Use gtk_widget_class_accessible_set_role()
gtk/gtkhsv.c | 16 ++--------------
1 files changed, 2 insertions(+), 14 deletions(-)
---
diff --git a/gtk/gtkhsv.c b/gtk/gtkhsv.c
index cc01373..ea133aa 100644
--- a/gtk/gtkhsv.c
+++ b/gtk/gtkhsv.c
@@ -124,7 +124,6 @@ static gboolean gtk_hsv_focus (GtkWidget *widget,
GtkDirectionType direction);
static void gtk_hsv_move (GtkHSV *hsv,
GtkDirectionType dir);
-static AtkObject *gtk_hsv_get_accessible (GtkWidget *widget);
static guint hsv_signals[LAST_SIGNAL];
@@ -155,7 +154,8 @@ gtk_hsv_class_init (GtkHSVClass *class)
widget_class->draw = gtk_hsv_draw;
widget_class->focus = gtk_hsv_focus;
widget_class->grab_broken_event = gtk_hsv_grab_broken;
- widget_class->get_accessible = gtk_hsv_get_accessible;
+
+ gtk_widget_class_set_accessible_role (widget_class, ATK_ROLE_COLOR_CHOOSER);
hsv_class->move = gtk_hsv_move;
@@ -1621,15 +1621,3 @@ gtk_hsv_move (GtkHSV *hsv,
gtk_hsv_set_color (hsv, hue, sat, val);
}
-static AtkObject *
-gtk_hsv_get_accessible (GtkWidget *widget)
-{
- AtkObject *obj;
-
- obj = GTK_WIDGET_CLASS (gtk_hsv_parent_class)->get_accessible (widget);
-
- atk_object_set_role (obj, ATK_ROLE_COLOR_CHOOSER);
-
- return obj;
-}
-
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]