From 46bb12414bfc1d3ea881d4eae7be0b44ed418b54 Mon Sep 17 00:00:00 2001 From: Stefano Karapetsas Date: Sat, 5 Oct 2013 22:59:01 +0200 Subject: Fix some deprecations and remove some unused vars --- capplets/accessibility/at-properties/main.c | 1 - capplets/appearance/appearance-main.c | 2 ++ capplets/display/xrandr-capplet.c | 6 ------ capplets/keybindings/mate-keybinding-properties.c | 2 ++ capplets/network/mate-network-properties.c | 1 - 5 files changed, 4 insertions(+), 8 deletions(-) (limited to 'capplets') diff --git a/capplets/accessibility/at-properties/main.c b/capplets/accessibility/at-properties/main.c index 59160cda..8c62cc1f 100644 --- a/capplets/accessibility/at-properties/main.c +++ b/capplets/accessibility/at-properties/main.c @@ -211,7 +211,6 @@ setup_dialog (GtkBuilder *builder, GSettings *settings) { GtkWidget *widget; GObject *object; - GObject *peditor; object = gtk_builder_get_object (builder, "at_enable_toggle"); g_signal_connect (object, "toggled", diff --git a/capplets/appearance/appearance-main.c b/capplets/appearance/appearance-main.c index 65e703ad..b16b76fe 100644 --- a/capplets/appearance/appearance-main.c +++ b/capplets/appearance/appearance-main.c @@ -38,7 +38,9 @@ init_appearance_data (int *argc, char ***argv, GOptionContext *context) GtkBuilder *ui; GError *err = NULL; +#if !GLIB_CHECK_VERSION (2, 32, 0) g_thread_init (NULL); +#endif gdk_threads_init (); gdk_threads_enter (); theme_thumbnail_factory_init (*argc, *argv); diff --git a/capplets/display/xrandr-capplet.c b/capplets/display/xrandr-capplet.c index 433b25db..7b3d2057 100644 --- a/capplets/display/xrandr-capplet.c +++ b/capplets/display/xrandr-capplet.c @@ -229,7 +229,6 @@ add_key (GtkWidget *widget, GtkComboBox *box = GTK_COMBO_BOX (widget); GtkTreeModel *model = gtk_combo_box_get_model (box); GtkListStore *store = GTK_LIST_STORE (model); - gboolean retval; info.text = text; info.found = FALSE; @@ -248,11 +247,6 @@ add_key (GtkWidget *widget, 5, rotation, -1); - retval = TRUE; - } - else - { - retval = FALSE; } } diff --git a/capplets/keybindings/mate-keybinding-properties.c b/capplets/keybindings/mate-keybinding-properties.c index ab3eaa6e..da017f17 100644 --- a/capplets/keybindings/mate-keybinding-properties.c +++ b/capplets/keybindings/mate-keybinding-properties.c @@ -1935,7 +1935,9 @@ main (int argc, char *argv[]) GtkBuilder *builder; GSettings *marco_settings; +#if !GLIB_CHECK_VERSION (2, 32, 0) g_thread_init (NULL); +#endif gtk_init (&argc, &argv); bindtextdomain (GETTEXT_PACKAGE, MATELOCALEDIR); diff --git a/capplets/network/mate-network-properties.c b/capplets/network/mate-network-properties.c index bb611336..d1eaa515 100644 --- a/capplets/network/mate-network-properties.c +++ b/capplets/network/mate-network-properties.c @@ -380,7 +380,6 @@ cb_ignore_hosts_gsettings_changed (GSettings *settings, gchar *key, gpointer use static void setup_dialog (GtkBuilder *builder) { - gint mode; GSList *mode_group; GtkListStore *store; -- cgit v1.2.1