Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions shell/platform/linux/fl_accessible_text_field.cc
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@ static gboolean fl_accessible_text_field_set_caret_offset(AtkText* text,
FlAccessibleTextField* self = FL_ACCESSIBLE_TEXT_FIELD(text);

perform_set_selection_action(self, offset, offset);
return true;
return TRUE;
}

// Implements AtkText::get_n_selections.
Expand Down Expand Up @@ -435,11 +435,11 @@ static gboolean fl_accessible_text_field_add_selection(AtkText* text,
FlAccessibleTextField* self = FL_ACCESSIBLE_TEXT_FIELD(text);

if (self->selection_base != self->selection_extent) {
return false;
return FALSE;
}

perform_set_selection_action(self, start_offset, end_offset);
return true;
return TRUE;
}

// Implements AtkText::remove_selection.
Expand All @@ -449,12 +449,12 @@ static gboolean fl_accessible_text_field_remove_selection(AtkText* text,
FlAccessibleTextField* self = FL_ACCESSIBLE_TEXT_FIELD(text);

if (selection_num != 0 || self->selection_base == self->selection_extent) {
return false;
return FALSE;
}

perform_set_selection_action(self, self->selection_extent,
self->selection_extent);
return true;
return TRUE;
}

// Implements AtkText::set_selection.
Expand All @@ -466,11 +466,11 @@ static gboolean fl_accessible_text_field_set_selection(AtkText* text,
FlAccessibleTextField* self = FL_ACCESSIBLE_TEXT_FIELD(text);

if (selection_num != 0) {
return false;
return FALSE;
}

perform_set_selection_action(self, start_offset, end_offset);
return true;
return TRUE;
}

// Implements AtkEditableText::set_text_contents.
Expand Down
4 changes: 2 additions & 2 deletions shell/platform/linux/fl_gnome_settings.cc
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,11 @@ static FlColorScheme fl_gnome_settings_get_color_scheme(FlSettings* settings) {
}

static gboolean fl_gnome_settings_get_enable_animations(FlSettings* settings) {
return true;
return TRUE;
}

static gboolean fl_gnome_settings_get_high_contrast(FlSettings* settings) {
return false;
return FALSE;
}

static gdouble fl_gnome_settings_get_text_scaling_factor(FlSettings* settings) {
Expand Down
2 changes: 1 addition & 1 deletion shell/platform/linux/fl_renderer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ gboolean fl_renderer_present_layers(FlRenderer* self,
layers[0]->offset.x == 0 && layers[0]->offset.y == 0 &&
(layers[0]->size.width != priv->target_width ||
layers[0]->size.height != priv->target_height)) {
return true;
return TRUE;
}

priv->had_first_frame = true;
Expand Down
10 changes: 5 additions & 5 deletions shell/platform/linux/fl_settings_portal.cc
Original file line number Diff line number Diff line change
Expand Up @@ -123,25 +123,25 @@ static gboolean settings_portal_read(GDBusProxy* proxy,
if (error->domain == G_DBUS_ERROR &&
error->code == G_DBUS_ERROR_SERVICE_UNKNOWN) {
g_debug("XDG desktop portal unavailable: %s", error->message);
return false;
return FALSE;
}

if (error->domain == G_DBUS_ERROR &&
error->code == G_DBUS_ERROR_UNKNOWN_METHOD) {
g_debug("XDG desktop portal settings unavailable: %s", error->message);
return false;
return FALSE;
}

g_critical("Failed to read XDG desktop portal settings: %s",
error->message);
return false;
return FALSE;
}

g_autoptr(GVariant) child = nullptr;
g_variant_get(value, "(v)", &child);
g_variant_get(child, "v", out);

return true;
return TRUE;
}

static void settings_portal_changed_cb(GDBusProxy* proxy,
Expand Down Expand Up @@ -282,7 +282,7 @@ gboolean fl_settings_portal_start(FlSettingsPortal* self, GError** error) {
kPortalPath, kPortalSettings, nullptr, error);

if (self->dbus_proxy == nullptr) {
return false;
return FALSE;
}

for (const FlSetting setting : kAllSettings) {
Expand Down
2 changes: 1 addition & 1 deletion shell/platform/linux/fl_view_accessible.cc
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ void fl_view_accessible_handle_update_semantics(
}
fl_accessible_node_set_children(parent, children);

return true;
return TRUE;
},
self);
}