summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrbuj <[email protected]>2019-09-07 10:09:17 +0200
committerraveit65 <[email protected]>2019-09-16 11:35:45 +0200
commitf7a4bef0c36a3e67e3fe2bf7ad42b086fbaea0d0 (patch)
tree38c8b435d565ccba8d90a43a3599d944e8b12a62 /src
parent4391ad9928c48d972b542fb584071b64adba641e (diff)
downloadmate-terminal-f7a4bef0c36a3e67e3fe2bf7ad42b086fbaea0d0.tar.bz2
mate-terminal-f7a4bef0c36a3e67e3fe2bf7ad42b086fbaea0d0.tar.xz
terminal-app: remove -Wdiscarded-qualifiers warnings
terminal-app.c:152:26: warning: passing argument 2 of ‘terminal_app_profile_list_notify_cb’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] terminal-app.c:153:29: warning: passing argument 2 of ‘terminal_app_default_profile_notify_cb’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] terminal-app.c:155:27: warning: passing argument 2 of ‘terminal_app_encoding_list_notify_cb’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] terminal-app.c:143:28: warning: passing argument 2 of ‘terminal_app_system_font_notify_cb’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] terminal-app.c:149:35: warning: passing argument 2 of ‘terminal_app_enable_menu_accels_notify_cb’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] terminal-app.c:146:30: warning: passing argument 2 of ‘terminal_app_enable_mnemonics_notify_cb’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
Diffstat (limited to 'src')
-rw-r--r--src/terminal-app.c28
1 files changed, 14 insertions, 14 deletions
diff --git a/src/terminal-app.c b/src/terminal-app.c
index 73870ce..1968282 100644
--- a/src/terminal-app.c
+++ b/src/terminal-app.c
@@ -795,8 +795,8 @@ find_profile_link (GList *profiles,
}
static void
-terminal_app_profile_list_notify_cb (GSettings *settings,
- gchar *key,
+terminal_app_profile_list_notify_cb (GSettings *settings,
+ const gchar *key,
gpointer user_data)
{
TerminalApp *app = TERMINAL_APP (user_data);
@@ -922,8 +922,8 @@ ensure_one_profile:
}
static void
-terminal_app_default_profile_notify_cb (GSettings *settings,
- gchar *key,
+terminal_app_default_profile_notify_cb (GSettings *settings,
+ const gchar *key,
gpointer user_data)
{
TerminalApp *app = TERMINAL_APP (user_data);
@@ -968,8 +968,8 @@ encoding_mark_active (gpointer key,
}
static void
-terminal_app_encoding_list_notify_cb (GSettings *settings,
- gchar *key,
+terminal_app_encoding_list_notify_cb (GSettings *settings,
+ const gchar *key,
gpointer user_data)
{
TerminalApp *app = TERMINAL_APP (user_data);
@@ -1028,8 +1028,8 @@ terminal_app_encoding_list_notify_cb (GSettings *settings,
}
static void
-terminal_app_system_font_notify_cb (GSettings *settings,
- gchar *key,
+terminal_app_system_font_notify_cb (GSettings *settings,
+ const gchar *key,
gpointer user_data)
{
TerminalApp *app = TERMINAL_APP (user_data);
@@ -1069,9 +1069,9 @@ terminal_app_system_font_notify_cb (GSettings *settings,
}
static void
-terminal_app_enable_mnemonics_notify_cb (GSettings *settings,
- gchar *key,
- gpointer user_data)
+terminal_app_enable_mnemonics_notify_cb (GSettings *settings,
+ const gchar *key,
+ gpointer user_data)
{
TerminalApp *app = TERMINAL_APP (user_data);
gboolean enable;
@@ -1085,9 +1085,9 @@ terminal_app_enable_mnemonics_notify_cb (GSettings *settings,
}
static void
-terminal_app_enable_menu_accels_notify_cb (GSettings *settings,
- gchar *key,
- gpointer user_data)
+terminal_app_enable_menu_accels_notify_cb (GSettings *settings,
+ const gchar *key,
+ gpointer user_data)
{
TerminalApp *app = TERMINAL_APP (user_data);
gboolean enable;