From 496f55eea6aa46e5d0a537c8e334575645bacdb1 Mon Sep 17 00:00:00 2001 From: perry.werneck@gmail.com Date: Tue, 3 Jul 2012 10:53:15 +0000 Subject: [PATCH] Removendo warnings --- accessible.c | 11 ++++++++--- oia.c | 3 ++- selection.c | 5 +++-- widget.c | 4 +++- 4 files changed, 16 insertions(+), 7 deletions(-) diff --git a/accessible.c b/accessible.c index 3ffefb6..d4dace0 100644 --- a/accessible.c +++ b/accessible.c @@ -42,6 +42,10 @@ #include "private.h" #include "accessible.h" + #ifdef GDK_WINDOWING_X11 + #include + #endif // GDK_WINDOWING_X11 + // References: // // http://git.gnome.org/browse/gtk+/tree/gtk/a11y/gtkwidgetaccessible.c @@ -226,7 +230,7 @@ static gint v3270_accessible_get_caret_offset(AtkText *text) static gint v3270_accessible_get_character_count(AtkText *text) { - int rows,cols; +// int rows,cols; GtkWidget *widget = gtk_accessible_get_widget(GTK_ACCESSIBLE(text)); if(!widget) @@ -328,7 +332,7 @@ static gchar * v3270_accessible_get_text_at_offset(AtkText *atk_text, gint offse { GtkWidget * widget = gtk_accessible_get_widget(GTK_ACCESSIBLE (atk_text)); H3270 * host; - char * text; + char * text = NULL; int rows,cols,pos; if(!widget) @@ -520,7 +524,7 @@ static gboolean v3270_accessible_add_selection(AtkText *text, gint start_pos, gi static gboolean v3270_accessible_set_selection(AtkText *text, gint selection_num, gint start_pos, gint end_pos) { GtkWidget *widget = gtk_accessible_get_widget (GTK_ACCESSIBLE (text)); - gint start, end; +// gint start, end; if(widget == NULL || selection_num != 0) return FALSE; @@ -846,6 +850,7 @@ void v3270_acessible_set_state(GtkAccessible *obj, LIB3270_MESSAGE id) case LIB3270_MESSAGE_MINUS: case LIB3270_MESSAGE_INHIBIT: case LIB3270_MESSAGE_X: + case LIB3270_MESSAGE_USER: break; case LIB3270_MESSAGE_PROTECTED: diff --git a/oia.c b/oia.c index fdb4808..8e24755 100644 --- a/oia.c +++ b/oia.c @@ -41,6 +41,7 @@ #include #include "private.h" + #include "accessible.h" /*--[ Prototipes ]-----------------------------------------------------------------------------------*/ @@ -307,7 +308,7 @@ void v3270_draw_ssl_status(cairo_t *cr, H3270 *host, struct v3270_metrics *metri { cairo_surface_t * icon; double sz = rect->width < rect->height ? rect->width : rect->height; - int idx = 0; // lib3270_get_ssl_state(host) ? 1 : 0; +// int idx = 0; // lib3270_get_ssl_state(host) ? 1 : 0; unsigned short width; unsigned short height; unsigned char * bits; diff --git a/selection.c b/selection.c index a4a973f..f973445 100644 --- a/selection.c +++ b/selection.c @@ -33,6 +33,7 @@ #include "private.h" #include #include + #include /*--[ Globals ]--------------------------------------------------------------------------------------*/ @@ -155,7 +156,7 @@ const gchar * v3270_get_selected_text(GtkWidget *widget) { int c; gchar * ptr = ln[l]; - GString * buffer; +// GString * buffer; for(c=0;c cols ? GTK_SIZE_REQUEST_WIDTH_FOR_HEIGHT : GTK_SIZE_REQUEST_HEIGHT_FOR_WIDTH; } +*/ void get_preferred_height(GtkWidget *widget, gint *minimum_height, gint *natural_height) { @@ -1239,7 +1241,7 @@ void v3270_set_font_family(GtkWidget *widget, const gchar *name) if(terminal->font_family) { - if(!g_strcasecmp(terminal->font_family,name)) + if(!g_ascii_strcasecmp(terminal->font_family,name)) return; g_free(terminal->font_family); terminal->font_family = NULL; -- libgit2 0.21.2