From 44c15cac8d362deb7a4febd16d9dc2288f4f54e7 Mon Sep 17 00:00:00 2001 From: Stefano Karapetsas Date: Tue, 28 Jan 2014 17:07:40 +0100 Subject: Fix some gcc warnings --- capplets/about-me/fingerprint-strings.h | 26 -------------------------- capplets/appearance/appearance-style.c | 4 ++-- capplets/mouse/mate-mouse-properties.c | 6 +++--- 3 files changed, 5 insertions(+), 31 deletions(-) (limited to 'capplets') diff --git a/capplets/about-me/fingerprint-strings.h b/capplets/about-me/fingerprint-strings.h index d1b919e9..20446a0b 100644 --- a/capplets/about-me/fingerprint-strings.h +++ b/capplets/about-me/fingerprint-strings.h @@ -57,32 +57,6 @@ static const char *finger_str_to_msg(const char *finger_name, gboolean is_swipe) return NULL; } -/* Cases not handled: - * verify-no-match - * verify-match - * verify-unknown-error - */ -static const char *verify_result_str_to_msg(const char *result, gboolean is_swipe) -{ - if (result == NULL) - return NULL; - - if (strcmp (result, "verify-retry-scan") == 0) { - if (is_swipe == FALSE) - return N_("Place your finger on the reader again"); - else - return N_("Swipe your finger again"); - } - if (strcmp (result, "verify-swipe-too-short") == 0) - return N_("Swipe was too short, try again"); - if (strcmp (result, "verify-finger-not-centered") == 0) - return N_("Your finger was not centered, try swiping your finger again"); - if (strcmp (result, "verify-remove-and-retry") == 0) - return N_("Remove your finger, and try swiping your finger again"); - - return NULL; -} - /* Cases not handled: * enroll-completed * enroll-failed diff --git a/capplets/appearance/appearance-style.c b/capplets/appearance/appearance-style.c index 5ebd9523..ec9f916a 100644 --- a/capplets/appearance/appearance-style.c +++ b/capplets/appearance/appearance-style.c @@ -982,7 +982,7 @@ prepare_list (AppearanceData *data, GtkWidget *list, ThemeType type, GCallback c /* select in treeview the theme set in gsettings */ GtkTreeModel *treemodel; - treemodel = gtk_tree_view_get_model (list); + treemodel = gtk_tree_view_get_model (GTK_TREE_VIEW (list)); gchar *theme = g_settings_get_string (settings, key); gchar *path = find_string_in_model (treemodel, theme, COL_NAME); if (path) @@ -990,7 +990,7 @@ prepare_list (AppearanceData *data, GtkWidget *list, ThemeType type, GCallback c GtkTreeSelection *selection = gtk_tree_view_get_selection (GTK_TREE_VIEW (list)); GtkTreePath *treepath = gtk_tree_path_new_from_string (path); gtk_tree_selection_select_path (selection, treepath); - gtk_tree_view_scroll_to_cell (list, treepath, NULL, FALSE, 0, 0); + gtk_tree_view_scroll_to_cell (GTK_TREE_VIEW (list), treepath, NULL, FALSE, 0, 0); gtk_tree_path_free (treepath); g_free (path); } diff --git a/capplets/mouse/mate-mouse-properties.c b/capplets/mouse/mate-mouse-properties.c index cf5c9deb..38e17530 100644 --- a/capplets/mouse/mate-mouse-properties.c +++ b/capplets/mouse/mate-mouse-properties.c @@ -208,11 +208,11 @@ scrollmethod_gsettings_changed_event (GSettings *settings, GtkBuilder *dialog) { int scroll_method = g_settings_get_int (touchpad_settings, "scroll-method"); - gtk_toggle_button_set_active (WID ("scroll_disabled_radio"), + gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (WID ("scroll_disabled_radio")), scroll_method == 0); - gtk_toggle_button_set_active (WID ("scroll_edge_radio"), + gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (WID ("scroll_edge_radio")), scroll_method == 1); - gtk_toggle_button_set_active (WID ("scroll_twofinger_radio"), + gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (WID ("scroll_twofinger_radio")), scroll_method == 2); gtk_widget_set_sensitive (WID ("horiz_scroll_toggle"), scroll_method != 0); -- cgit v1.2.1