diff options
Diffstat (limited to 'capplets')
-rw-r--r-- | capplets/about-me/e-image-chooser.c | 2 | ||||
-rw-r--r-- | capplets/about-me/mate-about-me-password.c | 2 | ||||
-rw-r--r-- | capplets/appearance/appearance-desktop.c | 1 | ||||
-rw-r--r-- | capplets/appearance/appearance-style.c | 1 | ||||
-rw-r--r-- | capplets/appearance/mate-wp-item.c | 1 | ||||
-rw-r--r-- | capplets/common/gtkrc-utils.c | 1 | ||||
-rw-r--r-- | capplets/common/mate-theme-info.c | 2 | ||||
-rw-r--r-- | capplets/common/theme-thumbnail.c | 6 | ||||
-rw-r--r-- | capplets/default-applications/mate-da-capplet.c | 1 | ||||
-rw-r--r-- | capplets/display/xrandr-capplet.c | 2 | ||||
-rw-r--r-- | capplets/keybindings/eggcellrendererkeys.c | 3 | ||||
-rw-r--r-- | capplets/keybindings/mate-keybinding-properties.c | 3 | ||||
-rw-r--r-- | capplets/keyboard/mate-keyboard-properties-xkblt.c | 1 | ||||
-rw-r--r-- | capplets/keyboard/mate-keyboard-properties-xkbltadd.c | 29 | ||||
-rw-r--r-- | capplets/keyboard/mate-keyboard-properties.c | 1 | ||||
-rw-r--r-- | capplets/mouse/mate-mouse-properties.c | 2 | ||||
-rw-r--r-- | capplets/time-admin/src/time-map.c | 4 | ||||
-rw-r--r-- | capplets/time-admin/src/time-zone.c | 1 |
18 files changed, 0 insertions, 63 deletions
diff --git a/capplets/about-me/e-image-chooser.c b/capplets/about-me/e-image-chooser.c index d03adeb2..945877f8 100644 --- a/capplets/about-me/e-image-chooser.c +++ b/capplets/about-me/e-image-chooser.c @@ -214,7 +214,6 @@ e_image_chooser_dispose (GObject *object) priv = e_image_chooser_get_instance_private (E_IMAGE_CHOOSER (object)); - if (priv->image_buf) { g_free (priv->image_buf); priv->image_buf = NULL; @@ -224,7 +223,6 @@ e_image_chooser_dispose (GObject *object) (* G_OBJECT_CLASS (e_image_chooser_parent_class)->dispose) (object); } - static gboolean set_image_from_data (EImageChooser *chooser, char *data, int length) diff --git a/capplets/about-me/mate-about-me-password.c b/capplets/about-me/mate-about-me-password.c index d03655a4..3b9fce9d 100644 --- a/capplets/about-me/mate-about-me-password.c +++ b/capplets/about-me/mate-about-me-password.c @@ -289,7 +289,6 @@ free_passwd_resources (PasswordDialog *pdialog) pdialog->backend_child_watch_id = 0; } - /* Close IO channels (internal file descriptors are automatically closed) */ if (pdialog->backend_stdin != NULL) { @@ -345,7 +344,6 @@ free_passwd_resources (PasswordDialog *pdialog) pdialog->backend_stderr_watch_id = 0; } - /* Close PID */ if (pdialog->backend_pid != -1) { diff --git a/capplets/appearance/appearance-desktop.c b/capplets/appearance/appearance-desktop.c index 98bc04d1..d9381818 100644 --- a/capplets/appearance/appearance-desktop.c +++ b/capplets/appearance/appearance-desktop.c @@ -46,7 +46,6 @@ static const GtkTargetEntry drag_types[] = { {"text/uri-list", GTK_TARGET_OTHER_WIDGET, TARGET_URI_LIST} }; - static void wp_update_preview(GtkFileChooser* chooser, AppearanceData* data); static void select_item(AppearanceData* data, MateWPItem* item, gboolean scroll) diff --git a/capplets/appearance/appearance-style.c b/capplets/appearance/appearance-style.c index a4283b4f..c353f0e6 100644 --- a/capplets/appearance/appearance-style.c +++ b/capplets/appearance/appearance-style.c @@ -511,7 +511,6 @@ update_cursor_size_scale (MateThemeCursorInfo *theme, adjustment = gtk_range_get_adjustment (range); g_object_set (adjustment, "upper", (gdouble) theme->sizes->len - 1, NULL); - /* fallback if the gsettings value is bigger than all available sizes; use the largest we have */ index = theme->sizes->len - 1; diff --git a/capplets/appearance/mate-wp-item.c b/capplets/appearance/mate-wp-item.c index 1b0566ff..8c75e7d6 100644 --- a/capplets/appearance/mate-wp-item.c +++ b/capplets/appearance/mate-wp-item.c @@ -263,7 +263,6 @@ GdkPixbuf * mate_wp_item_get_frame_thumbnail (MateWPItem * item, return pixbuf; } - GdkPixbuf * mate_wp_item_get_thumbnail (MateWPItem * item, MateDesktopThumbnailFactory * thumbs, gint width, diff --git a/capplets/common/gtkrc-utils.c b/capplets/common/gtkrc-utils.c index b78cbb25..4b5ac0e1 100644 --- a/capplets/common/gtkrc-utils.c +++ b/capplets/common/gtkrc-utils.c @@ -176,7 +176,6 @@ void gtkrc_get_details(gchar* filename, GSList** engines, GSList** symbolic_colo g_scanner_destroy (scanner); } - gchar * gtkrc_get_color_scheme (const gchar *gtkrc_file) { diff --git a/capplets/common/mate-theme-info.c b/capplets/common/mate-theme-info.c index 6971602e..1294b7d2 100644 --- a/capplets/common/mate-theme-info.c +++ b/capplets/common/mate-theme-info.c @@ -88,7 +88,6 @@ typedef struct { gint priority; } CallbackTuple; - /* Hash tables */ /* The hashes_by_dir are indexed by an escaped uri of the common_theme_dir that @@ -1020,7 +1019,6 @@ add_common_theme_dir_monitor (GFile *theme_dir_uri, monitor_data->common_theme_dir_handle = monitor; - /* gtk-2 theme subdir */ subdir = g_file_get_child (theme_dir_uri, "gtk-2.0"); uri = g_file_get_child (subdir, "gtkrc"); diff --git a/capplets/common/theme-thumbnail.c b/capplets/common/theme-thumbnail.c index 2c1957ce..8c92d386 100644 --- a/capplets/common/theme-thumbnail.c +++ b/capplets/common/theme-thumbnail.c @@ -19,7 +19,6 @@ #include "gtkrc-utils.h" #include "capplet-util.h" - typedef struct { gboolean set; gint thumbnail_width; @@ -33,7 +32,6 @@ typedef struct { guint watch_id; } ThemeThumbnailAsyncData; - static ThemeThumbnailAsyncData async_data; /* Protocol */ @@ -89,7 +87,6 @@ static int pipe_from_factory_fd[2]; #define MARCO_THUMBNAIL_WIDTH 120 #define MARCO_THUMBNAIL_HEIGHT 60 - static void pixbuf_apply_mask_region(GdkPixbuf* pixbuf, cairo_region_t* region) { gint nchannels, rowstride, w, h; @@ -102,7 +99,6 @@ static void pixbuf_apply_mask_region(GdkPixbuf* pixbuf, cairo_region_t* region) rowstride = gdk_pixbuf_get_rowstride (pixbuf); pixels = gdk_pixbuf_get_pixels (pixbuf); - /* we need an alpha channel ... */ if (!gdk_pixbuf_get_has_alpha (pixbuf) || nchannels != 4) return; @@ -408,7 +404,6 @@ create_marco_theme_pixbuf (ThemeThumbnailData *theme_thumbnail_data) pixbuf_apply_mask_region (pixbuf, region); cairo_region_destroy (region); - retval = gdk_pixbuf_scale_simple (pixbuf, MARCO_THUMBNAIL_WIDTH, MARCO_THUMBNAIL_HEIGHT, @@ -427,7 +422,6 @@ create_icon_theme_pixbuf (ThemeThumbnailData *theme_thumbnail_data) return create_folder_icon ((char *) theme_thumbnail_data->icon_theme_name->data); } - static void handle_bytes (const guint8 *buffer, gint bytes_read, diff --git a/capplets/default-applications/mate-da-capplet.c b/capplets/default-applications/mate-da-capplet.c index e0e13d34..89154d37 100644 --- a/capplets/default-applications/mate-da-capplet.c +++ b/capplets/default-applications/mate-da-capplet.c @@ -34,7 +34,6 @@ #include "mate-da-capplet.h" #include "capplet-util.h" - enum { DA_TYPE_WEB_BROWSER, DA_TYPE_EMAIL, diff --git a/capplets/display/xrandr-capplet.c b/capplets/display/xrandr-capplet.c index 91a87235..03d9842e 100644 --- a/capplets/display/xrandr-capplet.c +++ b/capplets/display/xrandr-capplet.c @@ -964,7 +964,6 @@ realign_outputs_after_resolution_change (App *app, MateRROutputInfo *output_that else if (output_x + output_width == old_right_edge) output_x = x + width - output_width; - if (output_y >= old_bottom_edge) output_y += dy; else if (output_y + output_height == old_bottom_edge) @@ -1811,7 +1810,6 @@ paint_output (App *app, - x - (w * scale + 0.5) / 2, - y - (h * scale + 0.5) / 2); - cairo_rectangle (cr, x, y, w * scale + 0.5, h * scale + 0.5); cairo_clip_preserve (cr); diff --git a/capplets/keybindings/eggcellrendererkeys.c b/capplets/keybindings/eggcellrendererkeys.c index 162f385c..4e61ce41 100644 --- a/capplets/keybindings/eggcellrendererkeys.c +++ b/capplets/keybindings/eggcellrendererkeys.c @@ -22,7 +22,6 @@ static GtkCellEditable *egg_cell_renderer_keys_start_editing (GtkCellRenderer const GdkRectangle *cell_area, GtkCellRendererState flags); - static void egg_cell_renderer_keys_get_property (GObject *object, guint param_id, GValue *value, @@ -39,7 +38,6 @@ static void egg_cell_renderer_keys_get_size (GtkCellRenderer *cell, gint *width, gint *height); - enum { PROP_0, @@ -205,7 +203,6 @@ egg_cell_renderer_keys_class_init (EggCellRendererKeysClass *cell_keys_class) G_TYPE_STRING); } - GtkCellRenderer* egg_cell_renderer_keys_new(void) { return GTK_CELL_RENDERER(g_object_new(EGG_TYPE_CELL_RENDERER_KEYS, NULL)); diff --git a/capplets/keybindings/mate-keybinding-properties.c b/capplets/keybindings/mate-keybinding-properties.c index fbf911fb..44bdf9e3 100644 --- a/capplets/keybindings/mate-keybinding-properties.c +++ b/capplets/keybindings/mate-keybinding-properties.c @@ -633,8 +633,6 @@ append_keys_to_tree (GtkBuilder *builder, g_warning ("No description for key '%s'", key_string); } - - if (keys_list[j].cmd_key != NULL) { command = g_settings_get_string (settings, keys_list[j].cmd_key); @@ -1405,7 +1403,6 @@ description_edited_callback (GtkCellRendererText *renderer, key_entry->desc_editable = FALSE; } - typedef struct { GtkTreeView *tree_view; diff --git a/capplets/keyboard/mate-keyboard-properties-xkblt.c b/capplets/keyboard/mate-keyboard-properties-xkblt.c index b5ee38e7..12943d53 100644 --- a/capplets/keyboard/mate-keyboard-properties-xkblt.c +++ b/capplets/keyboard/mate-keyboard-properties-xkblt.c @@ -35,7 +35,6 @@ #include "capplet-util.h" #include "mate-keyboard-properties-xkb.h" - #define SEL_LAYOUT_TREE_COL_DESCRIPTION 0 #define SEL_LAYOUT_TREE_COL_ID 1 #define SEL_LAYOUT_TREE_COL_ENABLED 2 diff --git a/capplets/keyboard/mate-keyboard-properties-xkbltadd.c b/capplets/keyboard/mate-keyboard-properties-xkbltadd.c index 2d1e5dd6..723f29fa 100644 --- a/capplets/keyboard/mate-keyboard-properties-xkbltadd.c +++ b/capplets/keyboard/mate-keyboard-properties-xkbltadd.c @@ -49,15 +49,6 @@ typedef struct { } AddVariantData; static void - - - - - - - - - xkb_layout_chooser_available_layouts_fill (GtkBuilder * chooser_dialog, const gchar cblid[], const gchar cbvid[], @@ -67,28 +58,10 @@ xkb_layout_chooser_available_layouts_fill (GtkBuilder * chooser_dialog, GCallback combo_changed_notify); static void - - - - - - - - - xkb_layout_chooser_available_language_variants_fill (GtkBuilder * chooser_dialog); static void - - - - - - - - - xkb_layout_chooser_available_country_variants_fill (GtkBuilder * chooser_dialog); @@ -378,8 +351,6 @@ xkb_layout_strv_from_gslist (GSList *list) return (gchar **) array->data; } - - static void xkl_layout_chooser_add_default_switcher_if_necessary (GSList * layouts_list) diff --git a/capplets/keyboard/mate-keyboard-properties.c b/capplets/keyboard/mate-keyboard-properties.c index 8b96bff5..474aa124 100644 --- a/capplets/keyboard/mate-keyboard-properties.c +++ b/capplets/keyboard/mate-keyboard-properties.c @@ -181,7 +181,6 @@ main (int argc, char **argv) { NULL, 0, 0, G_OPTION_ARG_NONE, NULL, NULL, NULL } }; - context = g_option_context_new (_("- MATE Keyboard Preferences")); g_option_context_add_main_entries (context, cap_options, GETTEXT_PACKAGE); diff --git a/capplets/mouse/mate-mouse-properties.c b/capplets/mouse/mate-mouse-properties.c index 2e9a1408..3008bd7e 100644 --- a/capplets/mouse/mate-mouse-properties.c +++ b/capplets/mouse/mate-mouse-properties.c @@ -283,7 +283,6 @@ setup_dialog (GtkBuilder *dialog) g_settings_bind (interface_settings, "gtk-enable-primary-paste", WID ("middle_button_paste_toggle"), "active", G_SETTINGS_BIND_DEFAULT); - /* Double-click time */ g_settings_bind (mouse_settings, DOUBLE_CLICK_KEY, gtk_range_get_adjustment (GTK_RANGE (WID ("delay_scale"))), "value", @@ -427,7 +426,6 @@ main (int argc, char **argv) G_CALLBACK (capplet_notebook_scroll_event_cb), NULL); - if (start_page != NULL) { gchar *page_name; diff --git a/capplets/time-admin/src/time-map.c b/capplets/time-admin/src/time-map.c index d297b54c..8becefa4 100644 --- a/capplets/time-admin/src/time-map.c +++ b/capplets/time-admin/src/time-map.c @@ -249,7 +249,6 @@ convert_latitude_to_y (gdouble latitude, gdouble map_height) return y; } - static void draw_text_bubble (cairo_t *cr, GtkWidget *widget, @@ -465,7 +464,6 @@ button_press_event (TimezoneMap *map, x = event->x; y = event->y; - rowstride = map->visible_map_rowstride; pixels = map->visible_map_pixels; @@ -474,7 +472,6 @@ button_press_event (TimezoneMap *map, b = pixels[(rowstride * y + x * 4) + 2]; a = pixels[(rowstride * y + x * 4) + 3]; - for (i = 0; color_codes[i].offset != -100; i++) { if (color_codes[i].red == r && color_codes[i].green == g @@ -534,7 +531,6 @@ timezone_map_class_init (TimezoneMapClass *klass) widget_class->draw = cc_timezone_map_draw; widget_class->state_flags_changed = cc_timezone_map_state_flags_changed; - signals[LOCATION_CHANGED] = g_signal_new ("location-changed", TYPE_TIMEZONE_MAP, G_SIGNAL_RUN_FIRST, diff --git a/capplets/time-admin/src/time-zone.c b/capplets/time-admin/src/time-zone.c index e6168535..4e96c558 100644 --- a/capplets/time-admin/src/time-zone.c +++ b/capplets/time-admin/src/time-zone.c @@ -507,7 +507,6 @@ void SetupTimezoneDialog(TimeAdmin *ta) Vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0); gtk_style_context_add_class (gtk_widget_get_style_context (Vbox), "linked"); - TimeZoneFrame = CreateZoneFrame(ta); Scrolled = CreateZoneScrolled(ta); gtk_container_add (GTK_CONTAINER (TimeZoneFrame), Scrolled); |