diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/eom-application-internal.h | 1 | ||||
-rw-r--r-- | src/eom-close-confirmation-dialog.c | 2 | ||||
-rw-r--r-- | src/eom-file-chooser.c | 1 | ||||
-rw-r--r-- | src/eom-file-chooser.h | 2 | ||||
-rw-r--r-- | src/eom-image-jpeg.c | 2 | ||||
-rw-r--r-- | src/eom-image.c | 4 | ||||
-rw-r--r-- | src/eom-jobs.h | 1 | ||||
-rw-r--r-- | src/eom-list-store.c | 1 | ||||
-rw-r--r-- | src/eom-metadata-details.c | 1 | ||||
-rw-r--r-- | src/eom-metadata-reader-jpg.c | 5 | ||||
-rw-r--r-- | src/eom-metadata-reader-png.c | 1 | ||||
-rw-r--r-- | src/eom-metadata-reader.c | 1 | ||||
-rw-r--r-- | src/eom-metadata-sidebar.c | 2 | ||||
-rw-r--r-- | src/eom-print-image-setup.c | 2 | ||||
-rw-r--r-- | src/eom-properties-dialog.c | 2 | ||||
-rw-r--r-- | src/eom-save-as-dialog-helper.h | 2 | ||||
-rw-r--r-- | src/eom-scroll-view.c | 8 | ||||
-rw-r--r-- | src/eom-scroll-view.h | 2 | ||||
-rw-r--r-- | src/eom-sidebar.h | 1 | ||||
-rw-r--r-- | src/eom-thumb-view.c | 2 | ||||
-rw-r--r-- | src/eom-transform.h | 1 | ||||
-rw-r--r-- | src/eom-uri-converter.c | 11 | ||||
-rw-r--r-- | src/eom-uri-converter.h | 1 | ||||
-rw-r--r-- | src/eom-util.c | 1 | ||||
-rw-r--r-- | src/eom-window.c | 1 | ||||
-rw-r--r-- | src/main.c | 1 |
26 files changed, 0 insertions, 59 deletions
diff --git a/src/eom-application-internal.h b/src/eom-application-internal.h index 720ef77..c782f29 100644 --- a/src/eom-application-internal.h +++ b/src/eom-application-internal.h @@ -48,7 +48,6 @@ struct _EomApplicationPrivate { PeasExtensionSet *extensions; }; - EggToolbarsModel *eom_application_get_toolbars_model (EomApplication *application); void eom_application_save_toolbars_model (EomApplication *application); diff --git a/src/eom-close-confirmation-dialog.c b/src/eom-close-confirmation-dialog.c index a035f57..ad8dc63 100644 --- a/src/eom-close-confirmation-dialog.c +++ b/src/eom-close-confirmation-dialog.c @@ -540,8 +540,6 @@ create_treeview (EomCloseConfirmationDialogPrivate *priv) NULL); gtk_tree_view_append_column (GTK_TREE_VIEW (treeview), column); - - renderer = gtk_cell_renderer_text_new (); column = gtk_tree_view_column_new_with_attributes ("Name", renderer, diff --git a/src/eom-file-chooser.c b/src/eom-file-chooser.c index 342c600..5d82901 100644 --- a/src/eom-file-chooser.c +++ b/src/eom-file-chooser.c @@ -354,7 +354,6 @@ update_preview_cb (GtkFileChooser *file_chooser, gpointer data) gchar *mime_type = g_content_type_get_mime_type ( g_file_info_get_content_type (file_info)); - if (G_LIKELY (mime_type)) { gboolean can_thumbnail, has_failed; diff --git a/src/eom-file-chooser.h b/src/eom-file-chooser.h index f642b6d..9ee5529 100644 --- a/src/eom-file-chooser.h +++ b/src/eom-file-chooser.h @@ -47,14 +47,12 @@ struct _EomFileChooserClass GtkFileChooserDialogClass parent_class; }; - GType eom_file_chooser_get_type (void) G_GNUC_CONST; GtkWidget *eom_file_chooser_new (GtkFileChooserAction action); GdkPixbufFormat *eom_file_chooser_get_format (EomFileChooser *chooser); - G_END_DECLS #endif /* _EOM_FILE_CHOOSER_H_ */ diff --git a/src/eom-image-jpeg.c b/src/eom-image-jpeg.c index 21f67ff..4118d15 100644 --- a/src/eom-image-jpeg.c +++ b/src/eom-image-jpeg.c @@ -73,7 +73,6 @@ struct error_handler_data { char *filename; }; - static void fatal_error_handler (j_common_ptr cinfo) { @@ -103,7 +102,6 @@ fatal_error_handler (j_common_ptr cinfo) g_assert_not_reached (); } - static void output_message_handler (j_common_ptr cinfo) { diff --git a/src/eom-image.c b/src/eom-image.c index cc667a8..f24b528 100644 --- a/src/eom-image.c +++ b/src/eom-image.c @@ -700,7 +700,6 @@ eom_image_set_icc_data (EomImage *img, EomMetadataReader *md_reader) priv->profile = eom_metadata_reader_get_icc_profile (md_reader); - } #endif @@ -897,7 +896,6 @@ eom_image_real_load (EomImage *img, gboolean read_only_dimension = (data2read & EOM_IMAGE_DATA_DIMENSION) && ((data2read ^ EOM_IMAGE_DATA_DIMENSION) == 0); - priv = img->priv; g_assert (!read_image_data || priv->image == NULL); @@ -1878,7 +1876,6 @@ eom_image_save_as_by_info (EomImage *img, EomImageSaveInfo *source, EomImageSave return success; } - /* * This function is extracted from * File: caja/libcaja-private/caja-file.c @@ -2070,7 +2067,6 @@ eom_image_get_xmp_info (EomImage *img) return data; } - /** * eom_image_get_file: * @img: a #EomImage diff --git a/src/eom-jobs.h b/src/eom-jobs.h index 1667d43..df2283e 100644 --- a/src/eom-jobs.h +++ b/src/eom-jobs.h @@ -115,7 +115,6 @@ typedef struct _EomJobCopyClass EomJobCopyClass; #define EOM_JOB_COPY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), EOM_TYPE_JOB_COPY, EomJobCopyClass)) #define EOM_IS_JOB_COPY(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), EOM_TYPE_JOB_COPY)) - struct _EomJob { GObject parent; diff --git a/src/eom-list-store.c b/src/eom-list-store.c index 900cbdf..0115b1d 100644 --- a/src/eom-list-store.c +++ b/src/eom-list-store.c @@ -821,7 +821,6 @@ eom_list_store_remove_thumbnail_job (EomListStore *store, g_mutex_unlock (&store->priv->mutex); } - } static void diff --git a/src/eom-metadata-details.c b/src/eom-metadata-details.c index 9947300..032de24 100644 --- a/src/eom-metadata-details.c +++ b/src/eom-metadata-details.c @@ -375,7 +375,6 @@ eom_exif_entry_get_value (ExifEntry *e, ExifRational r; gfloat h = 0., m = 0., s = 0.; - rational_size = exif_format_get_size (EXIF_FORMAT_RATIONAL); if (G_UNLIKELY (e->components != 3 || e->format != EXIF_FORMAT_RATIONAL)) diff --git a/src/eom-metadata-reader-jpg.c b/src/eom-metadata-reader-jpg.c index 9c1897e..b21f3c1 100644 --- a/src/eom-metadata-reader-jpg.c +++ b/src/eom-metadata-reader-jpg.c @@ -52,7 +52,6 @@ typedef enum { EJA_OTHER } EomJpegApp1Type; - #define EOM_JPEG_MARKER_START 0xFF #define EOM_JPEG_MARKER_APP1 0xE1 #define EOM_JPEG_MARKER_APP2 0xE2 @@ -89,14 +88,12 @@ struct _EomMetadataReaderJpgPrivate { static void eom_metadata_reader_jpg_init_emr_iface (gpointer g_iface, gpointer iface_data); - G_DEFINE_TYPE_WITH_CODE (EomMetadataReaderJpg, eom_metadata_reader_jpg, G_TYPE_OBJECT, G_IMPLEMENT_INTERFACE (EOM_TYPE_METADATA_READER, eom_metadata_reader_jpg_init_emr_iface) \ G_ADD_PRIVATE (EomMetadataReaderJpg)) - static void eom_metadata_reader_jpg_dispose (GObject *object) { @@ -155,7 +152,6 @@ eom_metadata_reader_jpg_finished (EomMetadataReaderJpg *emr) return (emr->priv->state == EMR_FINISHED); } - static EomJpegApp1Type eom_metadata_identify_app1 (gchar *buf, guint len) { @@ -467,7 +463,6 @@ eom_metadata_reader_jpg_get_exif_data (EomMetadataReaderJpg *emr) } #endif - #ifdef HAVE_EXEMPI /* skip the signature */ diff --git a/src/eom-metadata-reader-png.c b/src/eom-metadata-reader-png.c index a0ca172..7093144 100644 --- a/src/eom-metadata-reader-png.c +++ b/src/eom-metadata-reader-png.c @@ -158,7 +158,6 @@ eom_metadata_reader_png_finished (EomMetadataReaderPng *emr) return (emr->priv->state == EMR_FINISHED); } - static void eom_metadata_reader_png_get_next_block (EomMetadataReaderPngPrivate* priv, guchar *chunk, diff --git a/src/eom-metadata-reader.c b/src/eom-metadata-reader.c index 2c93a14..d7b3e9b 100644 --- a/src/eom-metadata-reader.c +++ b/src/eom-metadata-reader.c @@ -60,7 +60,6 @@ eom_metadata_reader_finished (EomMetadataReader *emr) return EOM_METADATA_READER_GET_INTERFACE (emr)->finished (emr); } - void eom_metadata_reader_consume (EomMetadataReader *emr, const guchar *buf, guint len) { diff --git a/src/eom-metadata-sidebar.c b/src/eom-metadata-sidebar.c index ba31937..982a937 100644 --- a/src/eom-metadata-sidebar.c +++ b/src/eom-metadata-sidebar.c @@ -263,7 +263,6 @@ eom_metadata_sidebar_set_image (EomMetadataSidebar *sidebar, EomImage *image) if (image == priv->image) return; - if (priv->thumb_changed_id != 0) { g_signal_handler_disconnect (priv->image, priv->thumb_changed_id); @@ -525,7 +524,6 @@ eom_metadata_sidebar_class_init (EomMetadataSidebarClass *klass) #endif /* HAVE_METADATA */ } - GtkWidget* eom_metadata_sidebar_new (EomWindow *window) { diff --git a/src/eom-print-image-setup.c b/src/eom-print-image-setup.c index 2fde257..b7b86f2 100644 --- a/src/eom-print-image-setup.c +++ b/src/eom-print-image-setup.c @@ -781,7 +781,6 @@ set_initial_values (EomPrintImageSetup *setup) update_image_pos_ranges (setup, page_width, page_height, width, height); - } static void @@ -973,7 +972,6 @@ eom_print_image_setup_init (EomPrintImageSetup *setup) gtk_widget_show_all (GTK_WIDGET (setup)); } - /** * eom_print_image_setup_new: * @image: the #EomImage to print diff --git a/src/eom-properties-dialog.c b/src/eom-properties-dialog.c index 67c3d6b..0bad997 100644 --- a/src/eom-properties-dialog.c +++ b/src/eom-properties-dialog.c @@ -120,7 +120,6 @@ parent_file_display_name_query_info_cb (GObject *source_object, GFileInfo *file_info; gchar *display_name; - file_info = g_file_query_info_finish (parent_file, res, NULL); if (file_info == NULL) { display_name = g_file_get_basename (parent_file); @@ -346,7 +345,6 @@ pd_update_metadata_tab (EomPropertiesDialog *prop_dlg, eom_exif_util_set_label_text (GTK_LABEL (priv->exif_iso_label), exif_data, EXIF_TAG_ISO_SPEED_RATINGS); - eom_exif_util_set_label_text (GTK_LABEL (priv->exif_metering_label), exif_data, EXIF_TAG_METERING_MODE); diff --git a/src/eom-save-as-dialog-helper.h b/src/eom-save-as-dialog-helper.h index dd72fa9..9374ea8 100644 --- a/src/eom-save-as-dialog-helper.h +++ b/src/eom-save-as-dialog-helper.h @@ -5,7 +5,6 @@ #include <gio/gio.h> #include "eom-uri-converter.h" - G_BEGIN_DECLS G_GNUC_INTERNAL @@ -14,7 +13,6 @@ GtkWidget* eom_save_as_dialog_new (GtkWindow *main, GList *images, GFil G_GNUC_INTERNAL EomURIConverter* eom_save_as_dialog_get_converter (GtkWidget *dlg); - G_END_DECLS #endif /* _EOM_SAVE_DIALOG_HELPER_H_ */ diff --git a/src/eom-scroll-view.c b/src/eom-scroll-view.c index f35e022..d438021 100644 --- a/src/eom-scroll-view.c +++ b/src/eom-scroll-view.c @@ -558,7 +558,6 @@ create_background_surface (EomScrollView *view) --------------------------------------*/ - /* Scrolls the view to the specified offsets. */ static void scroll_to (EomScrollView *view, int x, int y, gboolean change_adjustments) @@ -640,7 +639,6 @@ scroll_by (EomScrollView *view, int xofs, int yofs) scroll_to (view, priv->xofs + xofs, priv->yofs + yofs, TRUE); } - /* Callback used when an adjustment is changed */ static void adjustment_changed_cb (GtkAdjustment *adj, gpointer data) @@ -657,7 +655,6 @@ adjustment_changed_cb (GtkAdjustment *adj, gpointer data) gtk_widget_queue_resize (GTK_WIDGET (view)); } - /* Drags the image to the specified position */ static void drag_to (EomScrollView *view, int x, int y) @@ -923,7 +920,6 @@ display_key_press_event (GtkWidget *widget, GdkEventKey *event, gpointer data) return TRUE; } - /* Button press event handler for the image view */ static gboolean eom_scroll_view_button_press_event (GtkWidget *widget, GdkEventButton *event, gpointer data) @@ -1158,7 +1154,6 @@ display_size_change (GtkWidget *widget, GdkEventConfigure *event, gpointer data) update_scrollbar_values (view); } - static gboolean eom_scroll_view_focus_in_event (GtkWidget *widget, GdkEventFocus *event, @@ -1370,7 +1365,6 @@ display_draw (GtkWidget *widget, cairo_t *cr, gpointer data) return TRUE; } - /*================================== image loading callbacks @@ -2075,7 +2069,6 @@ eom_scroll_view_set_property (GObject *object, guint property_id, } } - static void eom_scroll_view_class_init (EomScrollViewClass *klass) { @@ -2248,7 +2241,6 @@ eom_scroll_view_new (void) "column-homogeneous", FALSE, NULL); - return widget; } diff --git a/src/eom-scroll-view.h b/src/eom-scroll-view.h index 2dffec3..2f10e3e 100644 --- a/src/eom-scroll-view.h +++ b/src/eom-scroll-view.h @@ -16,7 +16,6 @@ typedef struct _EomScrollViewPrivate EomScrollViewPrivate; #define EOM_IS_SCROLL_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), EOM_TYPE_SCROLL_VIEW)) #define EOM_IS_SCROLL_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), EOM_TYPE_SCROLL_VIEW)) - struct _EomScrollView { GtkGrid base_instance; @@ -72,4 +71,3 @@ G_END_DECLS #endif /* _EOM_SCROLL_VIEW_H_ */ - diff --git a/src/eom-sidebar.h b/src/eom-sidebar.h index 6986f41..3a1a3a2 100644 --- a/src/eom-sidebar.h +++ b/src/eom-sidebar.h @@ -79,4 +79,3 @@ G_END_DECLS #endif /* __EOM_SIDEBAR_H__ */ - diff --git a/src/eom-thumb-view.c b/src/eom-thumb-view.c index bc1184e..3a2ddf4 100644 --- a/src/eom-thumb-view.c +++ b/src/eom-thumb-view.c @@ -1024,7 +1024,6 @@ eom_thumb_view_select_single (EomThumbView *thumbview, gtk_tree_path_free (path); } - /** * eom_thumb_view_set_thumbnail_popup: * @thumbview: An #EomThumbView. @@ -1052,7 +1051,6 @@ eom_thumb_view_set_thumbnail_popup (EomThumbView *thumbview, NULL); } - static void eom_thumb_view_popup_menu (EomThumbView *thumbview, GdkEventButton *event) { diff --git a/src/eom-transform.h b/src/eom-transform.h index a321e03..7df2df4 100644 --- a/src/eom-transform.h +++ b/src/eom-transform.h @@ -72,4 +72,3 @@ G_END_DECLS #endif /* _EOM_TRANSFORM_H_ */ - diff --git a/src/eom-uri-converter.c b/src/eom-uri-converter.c index 68c5714..345cf54 100644 --- a/src/eom-uri-converter.c +++ b/src/eom-uri-converter.c @@ -26,7 +26,6 @@ typedef struct { } data; } EomUCToken; - struct _EomURIConverterPrivate { GFile *base_file; GList *token_list; @@ -88,7 +87,6 @@ eom_uri_converter_dispose (GObject *object) priv->suffix = NULL; } - G_OBJECT_CLASS (eom_uri_converter_parent_class)->dispose (object); } @@ -148,7 +146,6 @@ eom_uri_converter_class_init (EomURIConverterClass *klass) 1, G_PARAM_READWRITE)); - g_object_class_install_property ( object_class, PROP_N_IMAGES, @@ -169,7 +166,6 @@ eom_uc_error_quark (void) return q; } - static void eom_uri_converter_set_property (GObject *object, guint property_id, @@ -418,7 +414,6 @@ eom_uri_converter_parse_string (EomURIConverter *conv, const char *string) g_assert_not_reached (); } - if (token != NULL) { list = g_list_append (list, token); } @@ -500,7 +495,6 @@ eom_uri_converter_print_list (EomURIConverter *conv) } } - EomURIConverter* eom_uri_converter_new (GFile *base_file, GdkPixbufFormat *img_format, const char *format_str) { @@ -615,7 +609,6 @@ append_counter (GString *str, gulong counter, EomURIConverter *conv) return str; } - static void build_absolute_file (EomURIConverter *conv, EomImage *image, GString *str, /* input */ GFile **file, GdkPixbufFormat **format) /* output */ @@ -671,7 +664,6 @@ build_absolute_file (EomURIConverter *conv, EomImage *image, GString *str, /* i g_object_unref (dir_file); } - static GString* replace_remove_chars (GString *str, gboolean convert_spaces, gunichar space_char) { @@ -801,11 +793,9 @@ eom_uri_converter_do (EomURIConverter *conv, EomImage *image, g_string_free (repl_str, TRUE); g_string_free (str, TRUE); - return (*file != NULL); } - char* eom_uri_converter_preview (const char *format_str, EomImage *img, GdkPixbufFormat *format, gulong counter, guint n_images, @@ -888,7 +878,6 @@ eom_uri_converter_preview (const char *format_str, EomImage *img, GdkPixbufForma } } - filename = NULL; repl_str = replace_remove_chars (str, convert_spaces, space_char); diff --git a/src/eom-uri-converter.h b/src/eom-uri-converter.h index b1cbe94..5168466 100644 --- a/src/eom-uri-converter.h +++ b/src/eom-uri-converter.h @@ -52,7 +52,6 @@ typedef enum { #define EOM_UC_ERROR eom_uc_error_quark () - struct _EomURIConverter { GObject parent; diff --git a/src/eom-util.c b/src/eom-util.c index 324b7f3..e914223 100644 --- a/src/eom-util.c +++ b/src/eom-util.c @@ -311,7 +311,6 @@ eom_util_filename_get_extension (const char * filename) return g_strdup (begin); } - /** * eom_util_file_is_persistent: * @file: a #GFile diff --git a/src/eom-window.c b/src/eom-window.c index 607b2fb..6c4b5d2 100644 --- a/src/eom-window.c +++ b/src/eom-window.c @@ -2814,7 +2814,6 @@ eom_window_set_wallpaper (EomWindow *window, const gchar *filename, const gchar gtk_widget_show_all (hbox); gtk_widget_show (info_bar); - eom_window_set_message_area (window, info_bar); gtk_info_bar_set_default_response (GTK_INFO_BAR (info_bar), GTK_RESPONSE_YES); @@ -130,7 +130,6 @@ main (int argc, char **argv) } g_option_context_free (ctx); - set_startup_flags (); #ifdef HAVE_EXEMPI |