Commit b497c844 authored by Morten Welinder's avatar Morten Welinder

sparse: fix signedness problems.

parent 0b014163
2010-07-18 Morten Welinder <terra@gnome.org>
* src/wbc-gtk-edit.c (attrs_at_byte): Fix signedness problem.
(cb_entry_cursor_pos): Ditto.
2010-07-18 Andreas J. Guelzow <aguelzow@pyrshep.ca>
* src/clipboard.c (clipboard_paste_region): allow single merge to single
......
......@@ -568,13 +568,13 @@ cb_entry_insert_text (GtkEditable *editable,
}
static GSList *
attrs_at_byte (PangoAttrList *alist, guint bytepos)
attrs_at_byte (PangoAttrList *alist, gint bytepos)
{
PangoAttrIterator *iter = pango_attr_list_get_iterator (alist);
GSList *attrs = NULL;
do {
guint start, end;
gint start, end;
pango_attr_iterator_range (iter, &start, &end);
if (start <= bytepos && bytepos < end) {
attrs = pango_attr_iterator_get_attrs (iter);
......@@ -608,7 +608,7 @@ set_cur_fmt (WBCGtk *wbcg, int target_pos_in_bytes)
static void
cb_entry_cursor_pos (WBCGtk *wbcg)
{
guint start, end, target_pos_in_chars, target_pos_in_bytes;
gint start, end, target_pos_in_chars, target_pos_in_bytes;
GtkEditable *entry = GTK_EDITABLE (wbcg_get_entry (wbcg));
char const *str = gtk_entry_get_text (GTK_ENTRY (entry));
int edit_pos = gtk_editable_get_position (entry);
......
2010-07-18 Morten Welinder <terra@gnome.org>
* gnumeric-expr-entry.c (cb_icon_clicked): Fix signedness problem.
2010-07-16 Andreas J. Guelzow <aguelzow@pyrshep.ca>
* gnumeric-expr-entry.c (gnm_expr_entry_find_range): permit
......
......@@ -234,7 +234,8 @@ cb_icon_clicked (GtkButton *icon,
g_assert (GTK_IS_WINDOW (toplevel));
if (gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (icon))) {
int n, width, height;
int width, height;
guint n;
/* roll-up request */
......@@ -264,16 +265,16 @@ cb_icon_clicked (GtkButton *icon,
(G_OBJECT_GET_CLASS (old_entry_parent), &n);
if (container_props_pspec[0] != NULL) {
int i;
guint ui;
container_props = g_value_array_new (n);
for (i = 0; i < n; i++) {
for (ui = 0; ui < n; ui++) {
GValue value = { 0 };
g_value_init (&value, G_PARAM_SPEC_VALUE_TYPE (container_props_pspec[i]));
g_value_init (&value, G_PARAM_SPEC_VALUE_TYPE (container_props_pspec[ui]));
gtk_container_child_get_property (GTK_CONTAINER (old_entry_parent), GTK_WIDGET (entry),
g_param_spec_get_name (container_props_pspec[i]),
g_param_spec_get_name (container_props_pspec[ui]),
&value);
g_value_array_append (container_props, &value);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment