summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorrbuj <[email protected]>2020-04-06 17:51:07 +0200
committerZenWalker <[email protected]>2020-04-16 14:01:02 +0200
commit820a5d620fd66372820353d0bd2604bcf02b88c1 (patch)
tree41e1770925ad06458d5a3612222ce08f8c221c8e /plugins
parent2f62a468a6e7813a843f6951f19e33c9f0eb08ca (diff)
downloadmate-settings-daemon-820a5d620fd66372820353d0bd2604bcf02b88c1.tar.bz2
mate-settings-daemon-820a5d620fd66372820353d0bd2604bcf02b88c1.tar.xz
Remove warnings about function declaration isn’t a prototype
Diffstat (limited to 'plugins')
-rw-r--r--plugins/housekeeping/msd-disk-space.c2
-rw-r--r--plugins/housekeeping/msd-ldsm-trash-empty.c4
-rw-r--r--plugins/keyboard/msd-keyboard-xkb.c12
-rw-r--r--plugins/xsettings/msd-xsettings-manager.c2
4 files changed, 10 insertions, 10 deletions
diff --git a/plugins/housekeeping/msd-disk-space.c b/plugins/housekeeping/msd-disk-space.c
index 33581d0..95bd62b 100644
--- a/plugins/housekeeping/msd-disk-space.c
+++ b/plugins/housekeeping/msd-disk-space.c
@@ -584,7 +584,7 @@ ldsm_is_hash_item_in_ignore_paths (gpointer key,
}
static void
-msd_ldsm_get_config ()
+msd_ldsm_get_config (void)
{
gchar **settings_list;
diff --git a/plugins/housekeeping/msd-ldsm-trash-empty.c b/plugins/housekeeping/msd-ldsm-trash-empty.c
index d126b83..74291d0 100644
--- a/plugins/housekeeping/msd-ldsm-trash-empty.c
+++ b/plugins/housekeeping/msd-ldsm-trash-empty.c
@@ -233,7 +233,7 @@ trash_empty_job (GIOSchedulerJob *job,
/* Worker thread end */
static void
-trash_empty_start ()
+trash_empty_start (void)
{
GtkWidget *vbox1, *vbox2, *hbox;
GtkWidget *label1, *label3;
@@ -340,7 +340,7 @@ trash_empty_require_confirmation (void)
}
static void
-trash_empty_show_confirmation_dialog ()
+trash_empty_show_confirmation_dialog (void)
{
GtkWidget *button;
diff --git a/plugins/keyboard/msd-keyboard-xkb.c b/plugins/keyboard/msd-keyboard-xkb.c
index 578b0a6..a71edb7 100644
--- a/plugins/keyboard/msd-keyboard-xkb.c
+++ b/plugins/keyboard/msd-keyboard-xkb.c
@@ -163,7 +163,7 @@ apply_desktop_settings_cb (GSettings *settings, gchar *key, gpointer user_data
}
static void
-popup_menu_launch_capplet ()
+popup_menu_launch_capplet (void)
{
GAppInfo *info;
GdkAppLaunchContext *context;
@@ -195,7 +195,7 @@ show_layout_destroy (GtkWidget * dialog, gint group)
}
static void
-popup_menu_show_layout ()
+popup_menu_show_layout (void)
{
GtkWidget *dialog;
XklEngine *engine = xkl_engine_get_instance (GDK_DISPLAY_XDISPLAY(gdk_display_get_default()));
@@ -285,13 +285,13 @@ status_icon_popup_menu_cb (GtkStatusIcon * icon, guint button, guint time)
item =
gtk_menu_item_new_with_mnemonic (_("Keyboard _Preferences"));
gtk_widget_show (item);
- g_signal_connect (item, "activate", popup_menu_launch_capplet,
+ g_signal_connect (item, "activate", G_CALLBACK (popup_menu_launch_capplet),
NULL);
gtk_menu_shell_append (GTK_MENU_SHELL (popup_menu), item);
item = gtk_menu_item_new_with_mnemonic (_("Show _Current Layout"));
gtk_widget_show (item);
- g_signal_connect (item, "activate", popup_menu_show_layout, NULL);
+ g_signal_connect (item, "activate", G_CALLBACK (popup_menu_show_layout), NULL);
gtk_menu_shell_append (GTK_MENU_SHELL (popup_menu), item);
for (i = 0; *current_name; i++, current_name++) {
@@ -330,7 +330,7 @@ status_icon_popup_menu_cb (GtkStatusIcon * icon, guint button, guint time)
}
static void
-show_hide_icon ()
+show_hide_icon (void)
{
if (g_strv_length (current_kbd_config.layouts_variants) > 1) {
if (icon == NULL) {
@@ -512,7 +512,7 @@ msd_keyboard_new_device (XklEngine * engine)
}
static void
-msd_keyboard_update_indicator_icons ()
+msd_keyboard_update_indicator_icons (void)
{
Bool state;
int new_state, i;
diff --git a/plugins/xsettings/msd-xsettings-manager.c b/plugins/xsettings/msd-xsettings-manager.c
index 48bd702..3e7392e 100644
--- a/plugins/xsettings/msd-xsettings-manager.c
+++ b/plugins/xsettings/msd-xsettings-manager.c
@@ -227,7 +227,7 @@ translate_bool_int },
* A lot of this code is shamelessly copied and adapted from Linux Mint/Cinnamon.
*/
static int
-get_window_scale_auto ()
+get_window_scale_auto (void)
{
GdkDisplay *display;
GdkMonitor *monitor;