[gitg] Fixed compiler warnings
- From: Jesse van den Kieboom <jessevdk src gnome org>
- To: svn-commits-list gnome org
- Subject: [gitg] Fixed compiler warnings
- Date: Sun, 5 Jul 2009 01:13:19 +0000 (UTC)
commit f5dc1aaec6d371fd58fe3cb0168926c0cc9d5858
Author: Jesse van den Kieboom <jessevdk gnome org>
Date: Mon Jun 29 00:32:31 2009 +0200
Fixed compiler warnings
gitg/gitg-branch-actions.c | 5 +++++
gitg/gitg-dnd.c | 8 +++++---
gitg/gitg-repository-dialog.c | 2 ++
3 files changed, 12 insertions(+), 3 deletions(-)
---
diff --git a/gitg/gitg-branch-actions.c b/gitg/gitg-branch-actions.c
index e485383..3d75327 100644
--- a/gitg/gitg-branch-actions.c
+++ b/gitg/gitg-branch-actions.c
@@ -102,8 +102,11 @@ remove_local_branch (GitgWindow *window,
else
{
gitg_repository_reload (repository);
+
return TRUE;
}
+
+ return FALSE;
}
static gboolean
@@ -237,10 +240,12 @@ checkout_local_branch (GitgWindow *window,
NULL,
NULL,
name);
+ return FALSE;
}
else
{
gitg_repository_load (repository, 1, (gchar const **)&name, NULL);
+ return TRUE;
}
}
diff --git a/gitg/gitg-dnd.c b/gitg/gitg-dnd.c
index 9ffe0f9..80a2912 100644
--- a/gitg/gitg-dnd.c
+++ b/gitg/gitg-dnd.c
@@ -191,8 +191,8 @@ begin_drag (GtkWidget *widget,
1,
event);
- gint minwidth;
- gint h;
+ guint minwidth;
+ guint h;
gdk_display_get_maximal_cursor_size (gtk_widget_get_display (widget), &minwidth, &h);
GdkPixbuf *pixbuf = gitg_cell_renderer_path_render_ref (GTK_WIDGET (tree_view),
@@ -271,7 +271,7 @@ vertical_autoscroll (GitgDndData *data)
if (offset < 0)
{
- return;
+ return TRUE;
}
}
@@ -446,6 +446,7 @@ gitg_drag_source_drop_cb (GtkWidget *widget,
}
gtk_drag_finish (context, ret, FALSE, time);
+ return ret;
}
static gboolean
@@ -455,6 +456,7 @@ gitg_drag_source_leave_cb (GtkWidget *widget,
GitgDndData *data)
{
remove_scroll_timeout (data);
+ return FALSE;
}
void
diff --git a/gitg/gitg-repository-dialog.c b/gitg/gitg-repository-dialog.c
index aea8b5c..84e9880 100644
--- a/gitg/gitg-repository-dialog.c
+++ b/gitg/gitg-repository-dialog.c
@@ -1,5 +1,7 @@
#include <glib/gi18n.h>
+#include <stdlib.h>
+
#include "gitg-repository-dialog.h"
#include "gitg-utils.h"
#include "gitg-config.h"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]