summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLucas Rocha <lucasr@cvs.gnome.org>2005-07-08 23:21:34 +0000
committerLucas Almeida Rocha <lucasr@src.gnome.org>2005-07-08 23:21:34 +0000
commit21f7bc6a54636c749cf5514e091feb68cc88907b (patch)
treeff059e33b5d7a16687db8003ba1da7f4da20dbc4
parentmarks static many functions and global variables. Contribution from (diff)
downloadzenity-21f7bc6a54636c749cf5514e091feb68cc88907b.tar.gz
zenity-21f7bc6a54636c749cf5514e091feb68cc88907b.tar.bz2
zenity-21f7bc6a54636c749cf5514e091feb68cc88907b.zip
general code cleanups. Contribution from Benoît Dejean.
2005-07-08 Lucas Rocha <lucasr@cvs.gnome.org> * src/about.c, src/calendar.c, src/fileselection.c, src/option.c, src/progress.c, src/text.c, src/tree.c, src/util.c: general code cleanups. Contribution from Benoît Dejean.
-rw-r--r--ChangeLog7
-rw-r--r--src/about.c3
-rw-r--r--src/calendar.c2
-rw-r--r--src/fileselection.c1
-rw-r--r--src/option.c2
-rw-r--r--src/progress.c1
-rw-r--r--src/text.c3
-rw-r--r--src/tree.c2
-rw-r--r--src/util.c2
9 files changed, 11 insertions, 12 deletions
diff --git a/ChangeLog b/ChangeLog
index 2381abab..2d5535ae 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
2005-07-08 Lucas Rocha <lucasr@cvs.gnome.org>
+ * src/about.c, src/calendar.c, src/fileselection.c,
+ src/option.c, src/progress.c, src/text.c, src/tree.c,
+ src/util.c: general code cleanups. Contribution from
+ Benoît Dejean.
+
+2005-07-08 Lucas Rocha <lucasr@cvs.gnome.org>
+
* src/about.c, src/option.c, src/fileselection.c:
marks static many functions and global variables.
Contribution from Benoît Dejean.
diff --git a/src/about.c b/src/about.c
index 1b9d921b..6522e3c8 100644
--- a/src/about.c
+++ b/src/about.c
@@ -255,7 +255,7 @@ zenity_create_clothes (GtkWidget *canvas_board)
GdkPixbuf *pixbuf;
GnomeCanvasItem *canvas_item;
gchar *pixbuf_path;
- gint i;
+ size_t i;
for (i = 0; i < G_N_ELEMENTS (monk_clothes); i++) {
pixbuf_path = g_strconcat (ZENITY_CLOTHES_PATH, monk_clothes[i].filename, NULL);
@@ -557,7 +557,6 @@ static void
zenity_about_dialog_response (GtkWidget *widget, int response, gpointer data)
{
ZenityData *zen_data = data;
- GError *error = NULL;
switch (response) {
case GTK_RESPONSE_OK:
diff --git a/src/calendar.c b/src/calendar.c
index 7e9eb9ca..f876c038 100644
--- a/src/calendar.c
+++ b/src/calendar.c
@@ -89,7 +89,7 @@ static void
zenity_calendar_dialog_response (GtkWidget *widget, int response, gpointer data)
{
ZenityData *zen_data;
- gint day, month, year;
+ guint day, month, year;
gchar time_string[128];
GDate *date = NULL;
diff --git a/src/fileselection.c b/src/fileselection.c
index 91c0a0f3..53859229 100644
--- a/src/fileselection.c
+++ b/src/fileselection.c
@@ -91,7 +91,6 @@ zenity_fileselection_dialog_response (GtkWidget *widget, int response, gpointer
{
ZenityFileData *file_data = data;
GSList *selections, *iter;
- int i;
switch (response) {
case GTK_RESPONSE_OK:
diff --git a/src/option.c b/src/option.c
index 1d47be81..362751f2 100644
--- a/src/option.c
+++ b/src/option.c
@@ -947,8 +947,6 @@ zenity_calendar_post_callback (GOptionContext *context,
gpointer data,
GError **error)
{
- int i;
-
zenity_option_set_dialog_mode (zenity_calendar_active, MODE_CALENDAR);
if (results->mode == MODE_CALENDAR) {
diff --git a/src/progress.c b/src/progress.c
index d92d2e2d..34779c12 100644
--- a/src/progress.c
+++ b/src/progress.c
@@ -33,7 +33,6 @@
#include "zenity.h"
#include "util.h"
-static guint timer;
static GladeXML *glade_dialog;
static ZenityData *zen_data;
static GIOChannel *channel;
diff --git a/src/text.c b/src/text.c
index 151e000e..f3b331d4 100644
--- a/src/text.c
+++ b/src/text.c
@@ -39,9 +39,6 @@ zenity_text_handle_stdin (GIOChannel *channel,
static GtkTextBuffer *buffer;
gchar buf[1024];
- static GtkTextIter iter, end;
- static gboolean first_time = FALSE;
- gchar *str;
gsize len;
buffer = GTK_TEXT_BUFFER (data);
diff --git a/src/tree.c b/src/tree.c
index 72a9b392..d6621c32 100644
--- a/src/tree.c
+++ b/src/tree.c
@@ -529,7 +529,7 @@ static gboolean
zenity_tree_dialog_toggle_get_selected (GtkTreeModel *model, GtkTreePath *path, GtkTreeIter *iter, GtkTreeView *tree_view)
{
GValue toggle_value = {0, };
- gint n_columns, print_column, i;
+ gint n_columns, i;
n_columns = GPOINTER_TO_INT (g_object_get_data (G_OBJECT (tree_view), "n_columns"));
diff --git a/src/util.c b/src/util.c
index f503526e..4fc7f8d4 100644
--- a/src/util.c
+++ b/src/util.c
@@ -320,7 +320,7 @@ transient_get_xterm_toplevel (void)
while (xterm != None && !transient_is_toplevel (xterm))
{
Window root, parent, *children;
- int nchildren;
+ unsigned nchildren;
XQueryTree (dpy, xterm,
&root, &parent,
&children, &nchildren);
bgstack15