[gthumb] fixed some compiler warnings
- From: Paolo Bacchilega <paobac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gthumb] fixed some compiler warnings
- Date: Wed, 28 Jun 2017 09:51:07 +0000 (UTC)
commit c7a808c063fae2e6e3e0cdae509575dcfde35f45
Author: Paolo Bacchilega <paobac src gnome org>
Date: Sun Jun 25 19:29:34 2017 +0200
fixed some compiler warnings
extensions/file_tools/gth-file-tool-color-picker.c | 2 --
extensions/image_viewer/gth-image-viewer-page.c | 2 +-
gthumb/gth-image-dragger.c | 4 ++--
gthumb/gth-image-overview.c | 2 +-
gthumb/gth-time-selector.c | 2 +-
5 files changed, 5 insertions(+), 7 deletions(-)
---
diff --git a/extensions/file_tools/gth-file-tool-color-picker.c
b/extensions/file_tools/gth-file-tool-color-picker.c
index eba138e..da2f5df 100644
--- a/extensions/file_tools/gth-file-tool-color-picker.c
+++ b/extensions/file_tools/gth-file-tool-color-picker.c
@@ -117,8 +117,6 @@ color_text_icon_press_cb (GtkEntry *entry,
GdkEvent *event,
gpointer user_data)
{
- GthFileToolColorPicker *self = user_data;
-
if (icon_pos == GTK_ENTRY_ICON_SECONDARY) {
gtk_clipboard_set_text (gtk_clipboard_get_default (gtk_widget_get_display (GTK_WIDGET
(entry))),
gtk_entry_get_text (GTK_ENTRY (entry)),
diff --git a/extensions/image_viewer/gth-image-viewer-page.c b/extensions/image_viewer/gth-image-viewer-page.c
index a8c7af1..1ec6a6b 100644
--- a/extensions/image_viewer/gth-image-viewer-page.c
+++ b/extensions/image_viewer/gth-image-viewer-page.c
@@ -1029,7 +1029,7 @@ gth_image_viewer_page_real_activate (GthViewerPage *base,
self->priv->preloader = gth_browser_get_image_preloader (browser);
self->priv->viewer = gth_image_viewer_new ();
- g_object_add_weak_pointer (G_OBJECT (self->priv->viewer), &self->priv->viewer);
+ g_object_add_weak_pointer (G_OBJECT (self->priv->viewer), (gpointer *) &self->priv->viewer);
gtk_widget_add_events (self->priv->viewer, GDK_ENTER_NOTIFY_MASK | GDK_LEAVE_NOTIFY_MASK);
gth_image_viewer_page_reset_viewer_tool (self);
gtk_widget_show (self->priv->viewer);
diff --git a/gthumb/gth-image-dragger.c b/gthumb/gth-image-dragger.c
index d6b14d8..546c766 100644
--- a/gthumb/gth-image-dragger.c
+++ b/gthumb/gth-image-dragger.c
@@ -169,7 +169,7 @@ gth_image_dragger_set_viewer (GthImageViewerTool *base,
GthImageDragger *self = GTH_IMAGE_DRAGGER (base);
self->priv->viewer = image_viewer;
- g_object_add_weak_pointer (G_OBJECT (image_viewer), &self->priv->viewer);
+ g_object_add_weak_pointer (G_OBJECT (image_viewer), (gpointer *) &self->priv->viewer);
if (self->priv->show_frame)
gth_image_viewer_show_frame (self->priv->viewer, FRAME_BORDER);
}
@@ -183,7 +183,7 @@ gth_image_dragger_unset_viewer (GthImageViewerTool *base,
if ((self->priv->viewer != NULL) && self->priv->show_frame)
gth_image_viewer_hide_frame (self->priv->viewer);
- g_object_remove_weak_pointer (G_OBJECT (image_viewer), &self->priv->viewer);
+ g_object_remove_weak_pointer (G_OBJECT (image_viewer), (gpointer *) &self->priv->viewer);
self->priv->viewer = NULL;
}
diff --git a/gthumb/gth-image-overview.c b/gthumb/gth-image-overview.c
index b91fc6b..ba76227 100644
--- a/gthumb/gth-image-overview.c
+++ b/gthumb/gth-image-overview.c
@@ -110,7 +110,7 @@ _gth_image_overviewer_disconnect_from_viewer (GthImageOverview *self)
}
if (self->priv->viewer != NULL) {
- g_object_remove_weak_pointer (G_OBJECT (self->priv->viewer), &self->priv->viewer);
+ g_object_remove_weak_pointer (G_OBJECT (self->priv->viewer), (gpointer *)
&self->priv->viewer);
self->priv->viewer = NULL;
}
}
diff --git a/gthumb/gth-time-selector.c b/gthumb/gth-time-selector.c
index 9d6ffa6..aeb67b8 100644
--- a/gthumb/gth-time-selector.c
+++ b/gthumb/gth-time-selector.c
@@ -92,7 +92,7 @@ gth_time_selector_unmap (GtkWidget *widget)
}
-gboolean
+static gboolean
gth_time_selector_real_focus (GtkWidget *base,
GtkDirectionType direction)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]