mirror of
https://github.com/ZoiteChat/zoitechat.git
synced 2026-03-13 09:10:20 +00:00
Fix some obvious type warnings.
This commit is contained in:
@@ -142,7 +142,7 @@ tab_scroll_left_up_clicked (GtkWidget *widget, chanview *cv)
|
||||
gfloat new_value;
|
||||
GtkWidget *inner;
|
||||
GdkWindow *parent_win;
|
||||
gfloat i;
|
||||
gdouble i;
|
||||
|
||||
inner = ((tabview *)cv)->inner;
|
||||
parent_win = gtk_widget_get_window (gtk_widget_get_parent (inner));
|
||||
@@ -191,7 +191,7 @@ tab_scroll_right_down_clicked (GtkWidget *widget, chanview *cv)
|
||||
gfloat new_value;
|
||||
GtkWidget *inner;
|
||||
GdkWindow *parent_win;
|
||||
gfloat i;
|
||||
gdouble i;
|
||||
|
||||
inner = ((tabview *)cv)->inner;
|
||||
parent_win = gtk_widget_get_window (gtk_widget_get_parent (inner));
|
||||
|
||||
@@ -336,7 +336,7 @@ custom_list_get_iter (GtkTreeModel * tree_model,
|
||||
gint n;
|
||||
|
||||
n = gtk_tree_path_get_indices (path)[0];
|
||||
if (n >= custom_list->num_rows || n < 0)
|
||||
if (n < 0 || (guint) n >= custom_list->num_rows)
|
||||
return FALSE;
|
||||
|
||||
record = custom_list->rows[n];
|
||||
@@ -533,7 +533,7 @@ custom_list_iter_nth_child (GtkTreeModel * tree_model,
|
||||
return FALSE;
|
||||
|
||||
/* special case: if parent == NULL, set iter to n-th top-level row */
|
||||
if (n >= custom_list->num_rows)
|
||||
if (n < 0 || (guint) n >= custom_list->num_rows)
|
||||
return FALSE;
|
||||
|
||||
iter->user_data = custom_list->rows[n];
|
||||
|
||||
@@ -77,10 +77,10 @@ struct _CustomList
|
||||
{
|
||||
GObject parent;
|
||||
|
||||
guint num_rows; /* number of rows that we have used */
|
||||
guint num_alloc; /* number of rows allocated */
|
||||
chanlistrow **rows; /* a dynamically allocated array of pointers to the
|
||||
* CustomRecord structure for each row */
|
||||
guint num_rows; /* number of rows that we have used */
|
||||
guint num_alloc; /* number of rows allocated */
|
||||
chanlistrow **rows; /* a dynamically allocated array of pointers to the
|
||||
* CustomRecord structure for each row */
|
||||
|
||||
gint n_columns;
|
||||
GType column_types[CUSTOM_LIST_N_COLUMNS];
|
||||
|
||||
@@ -92,9 +92,9 @@ struct server_gui
|
||||
guint chanlist_channels_shown_count; /* total number of displayed
|
||||
channels */
|
||||
|
||||
int chanlist_maxusers;
|
||||
int chanlist_minusers;
|
||||
int chanlist_minusers_downloaded; /* used by LIST IRC command */
|
||||
guint32 chanlist_maxusers;
|
||||
guint32 chanlist_minusers;
|
||||
guint32 chanlist_minusers_downloaded; /* used by LIST IRC command */
|
||||
int chanlist_search_type; /* 0=simple 1=pattern/wildcard 2=regexp */
|
||||
gboolean chanlist_caption_is_stale;
|
||||
};
|
||||
|
||||
@@ -1600,7 +1600,7 @@ key_action_tab_comp (GtkWidget *t, GdkEventKey *entry, char *d1, char *d2,
|
||||
old_gcomp.elen = elen;
|
||||
|
||||
/* Get the first nick and put out the data for future nickcompletes */
|
||||
if (prefs.hex_completion_amount && g_list_length (list) <= prefs.hex_completion_amount)
|
||||
if (prefs.hex_completion_amount > 0 && g_list_length (list) <= (guint) prefs.hex_completion_amount)
|
||||
{
|
||||
g_free(result);
|
||||
result = (char*)list->data;
|
||||
|
||||
@@ -151,7 +151,7 @@ joind_show_dialog (server *serv)
|
||||
image1 = gtk_image_new_from_stock (GTK_STOCK_NETWORK, GTK_ICON_SIZE_LARGE_TOOLBAR);
|
||||
gtk_widget_show (image1);
|
||||
gtk_box_pack_start (GTK_BOX (hbox1), image1, FALSE, TRUE, 24);
|
||||
gtk_misc_set_alignment (GTK_MISC (image1), 0.5, 0.06);
|
||||
gtk_misc_set_alignment (GTK_MISC (image1), 0.5f, 0.06f);
|
||||
|
||||
vbox2 = gtk_vbox_new (FALSE, 10);
|
||||
gtk_container_set_border_width (GTK_CONTAINER (vbox2), 6);
|
||||
|
||||
@@ -557,7 +557,7 @@ static int
|
||||
mg_progressbar_update (GtkWidget *bar)
|
||||
{
|
||||
static int type = 0;
|
||||
static float pos = 0;
|
||||
static gdouble pos = 0;
|
||||
|
||||
pos += 0.05;
|
||||
if (pos >= 0.99)
|
||||
|
||||
@@ -146,7 +146,7 @@ fe_add_rawlog (server *serv, char *text, int len, int outbound)
|
||||
{
|
||||
char **split_text;
|
||||
char *new_text;
|
||||
int i;
|
||||
size_t i;
|
||||
|
||||
if (!serv->gui->rawlog_window)
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user