Skip to content

Commit

Permalink
cc-display-panel.c: Use correct type for dbus label colors.
Browse files Browse the repository at this point in the history
3ab95fe went back to storing colors as GdkRGBA, but they still
need to be a string when sending to Cinnamon.
  • Loading branch information
mtwebster committed Feb 16, 2024
1 parent a4619ac commit a99f1d4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion panels/display/cc-display-panel.c
Original file line number Diff line number Diff line change
Expand Up @@ -381,12 +381,13 @@ show_labels_dbus (CcDisplayPanel *self)
continue;

GVariant *var;
g_autofree gchar *color_str = get_color_string_for_output (self, color_index);

var = g_variant_new ("(ibss)",
number,
cc_display_config_is_cloning (self->current_config),
cc_display_monitor_get_display_name (output),
self->palette[color_index]);
color_str);

g_variant_builder_add (&builder, "{sv}",
cc_display_monitor_get_connector_name (output),
Expand Down

0 comments on commit a99f1d4

Please sign in to comment.