diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/about.c | 3 | ||||
-rw-r--r-- | src/calendar.c | 2 | ||||
-rw-r--r-- | src/fileselection.c | 1 | ||||
-rw-r--r-- | src/option.c | 2 | ||||
-rw-r--r-- | src/progress.c | 1 | ||||
-rw-r--r-- | src/text.c | 3 | ||||
-rw-r--r-- | src/tree.c | 2 | ||||
-rw-r--r-- | src/util.c | 2 |
8 files changed, 4 insertions, 12 deletions
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; @@ -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); @@ -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")); @@ -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); |