summaryrefslogtreecommitdiff
path: root/eel
diff options
context:
space:
mode:
authorrbuj <[email protected]>2020-05-10 12:53:17 +0200
committerraveit65 <[email protected]>2022-07-21 17:32:54 +0200
commit92f8b0406955c7e3cc5648d0dbd19d66ed205be7 (patch)
treec3157d6d8eaad843b3a33b780232195277f2e237 /eel
parent45527582fc8b6a510407e02ae4b29bb44a52d010 (diff)
downloadcaja-92f8b0406955c7e3cc5648d0dbd19d66ed205be7.tar.bz2
caja-92f8b0406955c7e3cc5648d0dbd19d66ed205be7.tar.xz
Replace GtkStateType (GTK2 enum) with GtkStateFlags (GTK3 enum)
Diffstat (limited to 'eel')
-rw-r--r--eel/eel-editable-label.c16
-rw-r--r--eel/eel-labeled-image.c2
2 files changed, 9 insertions, 9 deletions
diff --git a/eel/eel-editable-label.c b/eel/eel-editable-label.c
index 6683b476..af008c56 100644
--- a/eel/eel-editable-label.c
+++ b/eel/eel-editable-label.c
@@ -94,8 +94,8 @@ static void eel_editable_label_get_preferred_height (GtkWidget
static void eel_editable_label_size_allocate (GtkWidget *widget,
GtkAllocation *allocation);
-static void eel_editable_label_state_changed (GtkWidget *widget,
- GtkStateType state);
+static void eel_editable_label_state_flags_changed (GtkWidget *widget,
+ GtkStateFlags state);
static void eel_editable_label_style_updated (GtkWidget *widget);
@@ -239,7 +239,7 @@ eel_editable_label_class_init (EelEditableLabelClass *class)
widget_class->get_preferred_width = eel_editable_label_get_preferred_width;
widget_class->get_preferred_height = eel_editable_label_get_preferred_height;
widget_class->size_allocate = eel_editable_label_size_allocate;
- widget_class->state_changed = eel_editable_label_state_changed;
+ widget_class->state_flags_changed = eel_editable_label_state_flags_changed;
widget_class->style_updated = eel_editable_label_style_updated;
widget_class->direction_changed = eel_editable_label_direction_changed;
widget_class->draw = eel_editable_label_draw;
@@ -1211,8 +1211,8 @@ eel_editable_label_size_allocate (GtkWidget *widget,
}
static void
-eel_editable_label_state_changed (GtkWidget *widget,
- GtkStateType prev_state)
+eel_editable_label_state_flags_changed (GtkWidget *widget,
+ GtkStateFlags prev_state)
{
EelEditableLabel *label;
@@ -1222,8 +1222,8 @@ eel_editable_label_state_changed (GtkWidget *widget,
if (!gtk_widget_is_sensitive (widget))
eel_editable_label_select_region (label, 0, 0);
- if (GTK_WIDGET_CLASS (eel_editable_label_parent_class)->state_changed)
- GTK_WIDGET_CLASS (eel_editable_label_parent_class)->state_changed (widget, prev_state);
+ if (GTK_WIDGET_CLASS (eel_editable_label_parent_class)->state_flags_changed)
+ GTK_WIDGET_CLASS (eel_editable_label_parent_class)->state_flags_changed (widget, prev_state);
}
static void
@@ -1578,7 +1578,7 @@ eel_editable_label_draw (GtkWidget *widget,
{
gint range[2];
cairo_region_t *clip;
- GtkStateType state;
+ GtkStateFlags state;
GdkRGBA background_color;
GdkRGBA *c;
diff --git a/eel/eel-labeled-image.c b/eel/eel-labeled-image.c
index daa9a866..66880c42 100644
--- a/eel/eel-labeled-image.c
+++ b/eel/eel-labeled-image.c
@@ -1530,7 +1530,7 @@ void
eel_labeled_image_set_selected (EelLabeledImage *labeled_image,
gboolean selected)
{
- GtkStateType state;
+ GtkStateFlags state;
g_return_if_fail (EEL_IS_LABELED_IMAGE (labeled_image));
state = selected ? GTK_STATE_FLAG_SELECTED : GTK_STATE_FLAG_NORMAL;