Commit 9331ef24 authored by Michael Natterer's avatar Michael Natterer 😴

libgimpwidgets: change GimpController's stock_id to icon_name

This API change is OK since the entire controller API is marked as
unstable and needs a special #define to be visible at all.
parent 88d2df0a
......@@ -212,8 +212,7 @@ gimp_controller_info_set_property (GObject *object,
controller_class = GIMP_CONTROLLER_GET_CLASS (info->controller);
gimp_viewable_set_icon_name (GIMP_VIEWABLE (info),
/* FIXME icon name */
controller_class->stock_id);
controller_class->icon_name);
}
break;
case PROP_MAPPING:
......
......@@ -175,7 +175,7 @@ gimp_controller_keyboard_class_init (GimpControllerKeyboardClass *klass)
controller_class->name = _("Keyboard");
controller_class->help_id = GIMP_HELP_CONTROLLER_KEYBOARD;
controller_class->stock_id = GIMP_STOCK_CONTROLLER_KEYBOARD;
controller_class->icon_name = GIMP_STOCK_CONTROLLER_KEYBOARD;
controller_class->get_n_events = gimp_controller_keyboard_get_n_events;
controller_class->get_event_name = gimp_controller_keyboard_get_event_name;
......
......@@ -223,7 +223,7 @@ gimp_controller_list_init (GimpControllerList *list)
gtk_list_store_append (list->src, &iter);
gtk_list_store_set (list->src, &iter,
COLUMN_ICON, controller_class->stock_id,
COLUMN_ICON, controller_class->icon_name,
COLUMN_NAME, controller_class->name,
COLUMN_TYPE, controller_types[i],
-1);
......
......@@ -203,7 +203,7 @@ gimp_controller_mouse_class_init (GimpControllerMouseClass *klass)
controller_class->name = _("Mouse Buttons");
controller_class->help_id = GIMP_HELP_CONTROLLER_MOUSE;
controller_class->stock_id = GIMP_STOCK_CONTROLLER_MOUSE;
controller_class->icon_name = GIMP_STOCK_CONTROLLER_MOUSE;
controller_class->get_n_events = gimp_controller_mouse_get_n_events;
controller_class->get_event_name = gimp_controller_mouse_get_event_name;
......
......@@ -177,7 +177,7 @@ gimp_controller_wheel_class_init (GimpControllerWheelClass *klass)
controller_class->name = _("Mouse Wheel");
controller_class->help_id = GIMP_HELP_CONTROLLER_WHEEL;
controller_class->stock_id = GIMP_STOCK_CONTROLLER_WHEEL;
controller_class->icon_name = GIMP_STOCK_CONTROLLER_WHEEL;
controller_class->get_n_events = gimp_controller_wheel_get_n_events;
controller_class->get_event_name = gimp_controller_wheel_get_event_name;
......
......@@ -90,7 +90,7 @@ gimp_controller_class_init (GimpControllerClass *klass)
klass->name = "Unnamed";
klass->help_domain = NULL;
klass->help_id = NULL;
klass->stock_id = GIMP_STOCK_CONTROLLER;
klass->icon_name = GIMP_STOCK_CONTROLLER;
klass->get_n_events = NULL;
klass->get_event_name = NULL;
......
......@@ -118,7 +118,7 @@ struct _GimpControllerClass
gboolean (* event) (GimpController *controller,
const GimpControllerEvent *event);
const gchar *stock_id;
const gchar *icon_name;
/* Padding for future expansion */
void (* _gimp_reserved2) (void);
......
......@@ -205,7 +205,7 @@ controller_dx_dinput_class_init (ControllerDXDInputClass *klass)
controller_class->name = _("DirectX DirectInput");
controller_class->help_id = "gimp-controller-directx-directinput";
controller_class->stock_id = GIMP_STOCK_CONTROLLER_LINUX_INPUT;
controller_class->icon_name = GIMP_STOCK_CONTROLLER_LINUX_INPUT;
controller_class->get_n_events = dx_dinput_get_n_events;
controller_class->get_event_name = dx_dinput_get_event_name;
......
......@@ -229,7 +229,7 @@ controller_linux_input_class_init (ControllerLinuxInputClass *klass)
controller_class->name = _("Linux Input");
controller_class->help_id = "gimp-controller-linux-input";
controller_class->stock_id = GIMP_STOCK_CONTROLLER_LINUX_INPUT;
controller_class->icon_name = GIMP_STOCK_CONTROLLER_LINUX_INPUT;
controller_class->get_n_events = linux_input_get_n_events;
controller_class->get_event_name = linux_input_get_event_name;
......
......@@ -225,7 +225,7 @@ controller_midi_class_init (ControllerMidiClass *klass)
controller_class->name = _("MIDI");
controller_class->help_id = "gimp-controller-midi";
controller_class->stock_id = GIMP_STOCK_CONTROLLER_MIDI;
controller_class->icon_name = GIMP_STOCK_CONTROLLER_MIDI;
controller_class->get_n_events = midi_get_n_events;
controller_class->get_event_name = midi_get_event_name;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment