diff options
author | Jeff Garzik <jgarzik@src.gnome.org> | 1998-12-24 17:47:02 +0000 |
---|---|---|
committer | Jeff Garzik <jgarzik@src.gnome.org> | 1998-12-24 17:47:02 +0000 |
commit | 553fa4309eb849f592afa0aead4c669be21ac117 (patch) | |
tree | 9bbbce3406d299faa53aa53d5fc74789225c2c16 /gtk/gtkfontsel.c | |
parent | 9775547b4a062f9b73a3498a0667e12b99313a44 (diff) | |
download | gtk+-553fa4309eb849f592afa0aead4c669be21ac117.tar.gz |
removed unused var 64-bit cast point to const data Made const-correct.
* gdk/gdkfont.c: removed unused var
* gdk/gdkim.c: 64-bit cast
* gtk/gtkaccelgroup.c: point to const data
* gtk/gtkdnd.[ch]: (gtk_drag_dest_set, gtk_drag_source_set):
Made const-correct.
* gtk/gtkfontsel.c: kill uninitialized var warning
* gtk/gtkselection.[ch]: (gtk_target_list_new,
gtk_target_list_add_table, gtk_selection_add_targets):
Made const-correct.
* gtk/testgtk.c: 64-bit cast
Diffstat (limited to 'gtk/gtkfontsel.c')
-rw-r--r-- | gtk/gtkfontsel.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gtk/gtkfontsel.c b/gtk/gtkfontsel.c index a3cfc5ecbc..bfe4132d78 100644 --- a/gtk/gtkfontsel.c +++ b/gtk/gtkfontsel.c @@ -1264,7 +1264,7 @@ gtk_font_selection_select_best_style(GtkFontSelection *fontsel, FontInfo *font; FontStyle *styles; gint row, prop, style, matched; - gint best_matched = -1, best_style = -1, best_row; + gint best_matched = -1, best_style = -1, best_row = -1; #ifdef FONTSEL_DEBUG g_message("In select_best_style\n"); @@ -1301,6 +1301,7 @@ gtk_font_selection_select_best_style(GtkFontSelection *fontsel, } } g_return_if_fail (best_style != -1); + g_return_if_fail (best_row != -1); fontsel->style = best_style; |