Commit 99d6fd1a authored by Christian Hergert's avatar Christian Hergert

gstyle: fix constness

parent d8434308
Pipeline #15942 passed with stage
in 16 minutes and 47 seconds
......@@ -32,18 +32,17 @@
G_DEFINE_TYPE (GstyleColorPanel, gstyle_color_panel, GTK_TYPE_BOX)
static gchar * comp_names [N_GSTYLE_COLOR_COMPONENT] =
{
"hsv_h",
"hsv_s",
"hsv_v",
"lab_l",
"lab_a",
"lab_b",
"rgb_red",
"rgb_green",
"rgb_blue"
};
static const gchar *comp_names [N_GSTYLE_COLOR_COMPONENT] = {
"hsv_h",
"hsv_s",
"hsv_v",
"lab_l",
"lab_a",
"lab_b",
"rgb_red",
"rgb_green",
"rgb_blue"
};
/* Conversion between component and color plane mode :
* component without a corresponding mode return
......
......@@ -1592,7 +1592,7 @@ gstyle_palette_widget_init (GstylePaletteWidget *self)
GtkStyleContext *context;
static const GtkTargetEntry dnd_targets [] = {
{"GSTYLE_COLOR_WIDGET", GTK_TARGET_SAME_APP, 0},
{ (gchar *)"GSTYLE_COLOR_WIDGET", GTK_TARGET_SAME_APP, 0 },
};
gtk_widget_init_template (GTK_WIDGET (self));
......
......@@ -23,7 +23,7 @@
#include "gstyle-palette.h"
static GstylePalette *
load_palette (gchar *name)
load_palette (const gchar *name)
{
GstylePalette *palette;
g_autoptr (GFile) file = NULL;
......
......@@ -26,7 +26,7 @@
typedef struct
{
gchar *rgb;
const gchar *rgb;
gdouble h;
gdouble s;
......
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