X-Authentication-Warning: delorie.com: mail set sender to geda-user-bounces using -f X-Recipient: geda-user AT delorie DOT com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=s7p2UoUKLP0CEzm0LBxPRgv3xBobF11l0x9qZIy9n9E=; b=VHzEVNjwT3fZ4DDi8Nh07G0cPvNm1JpMqdJAflz96RyGPI9XLTAaMBu7F3uy881qTF 722pUBo600LvQhSmqeJbtL4KZtHLQzC/Rp7fSLZdOKe4OHj9mpNyMNEjiQ05UTv6CprQ P2QcBBAY8A4RgRYT4nppYFLwf5hj/cEJ7MJuJXOOegje0BiXOGlnQqwEM9OmDbn5xA7u xQord/svOwCJri7sjuAZU3SJ8KkTohKazz9PtcY+DKvDVeNPJ6fMkTfsdmDct8zCxFZ+ SEhITU8Jpj6/qzjZT69Kq9VdGYgtBNd8jmsk2q3AcXPZf3XkFUEvJ9vGc07vR+92P2ho k6kA== X-Received: by 10.180.39.200 with SMTP id r8mr11772417wik.23.1411038487386; Thu, 18 Sep 2014 04:08:07 -0700 (PDT) From: Riccardo Lucchese To: geda-user AT delorie DOT com Cc: Riccardo Lucchese Subject: [geda-user] [PATCH 25/43] Remove deprecated use of GTK_WIDGET_VISIBLE() Date: Thu, 18 Sep 2014 13:06:20 +0200 Message-Id: <1411038398-10231-26-git-send-email-riccardo.lucchese@gmail.com> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1411038398-10231-1-git-send-email-riccardo.lucchese@gmail.com> References: <1411038398-10231-1-git-send-email-riccardo DOT lucchese AT gmail DOT com> Reply-To: geda-user AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: geda-user AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk Verbatim from Gtk+ 2 Reference Manual: "GTK_WIDGET_VISIBLE has been deprecated since version 2.20 and should not be used in newly-written code. Use gtk_widget_get_visible() instead." --- gattrib/src/gtksheet_2_2.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/gattrib/src/gtksheet_2_2.c b/gattrib/src/gtksheet_2_2.c index e112bc4..91b9c82 100644 --- a/gattrib/src/gtksheet_2_2.c +++ b/gattrib/src/gtksheet_2_2.c @@ -1502,7 +1502,7 @@ gtk_sheet_hide_column_titles(GtkSheet *sheet) if(gtk_widget_get_realized(GTK_WIDGET(sheet))){ if(sheet->column_title_window) gdk_window_hide(sheet->column_title_window); - if(GTK_WIDGET_VISIBLE(sheet->button)) + if(gtk_widget_get_visible(sheet->button)) gtk_widget_hide(sheet->button); for(col = MIN_VISIBLE_COLUMN(sheet); col <= MAX_VISIBLE_COLUMN(sheet); col++){ @@ -1534,7 +1534,7 @@ gtk_sheet_hide_row_titles(GtkSheet *sheet) if(gtk_widget_get_realized(GTK_WIDGET(sheet))){ if(sheet->row_title_window) gdk_window_hide(sheet->row_title_window); - if(GTK_WIDGET_VISIBLE(sheet->button)) + if(gtk_widget_get_visible(sheet->button)) gtk_widget_hide(sheet->button); for(row = MIN_VISIBLE_ROW(sheet); row <= MAX_VISIBLE_ROW(sheet); row++){ GtkSheetChild *child; @@ -2848,14 +2848,14 @@ gtk_sheet_map (GtkWidget * widget) gtk_widget_map (sheet->sheet_entry); } - if (GTK_WIDGET_VISIBLE (sheet->button) && + if (gtk_widget_get_visible(sheet->button) && !gtk_widget_get_mapped(sheet->button)){ gtk_widget_show(sheet->button); gtk_widget_map (sheet->button); } if(GTK_BIN(sheet->button)->child) - if (GTK_WIDGET_VISIBLE (GTK_BIN(sheet->button)->child) && + if (gtk_widget_get_visible(GTK_BIN(sheet->button)->child) && !gtk_widget_get_mapped(GTK_BIN(sheet->button)->child)) gtk_widget_map (GTK_BIN(sheet->button)->child); @@ -2870,7 +2870,7 @@ gtk_sheet_map (GtkWidget * widget) child = children->data; children = g_list_next(children); - if (GTK_WIDGET_VISIBLE (child->widget) && + if (gtk_widget_get_visible(child->widget) && !gtk_widget_get_mapped(child->widget)){ gtk_widget_map (child->widget); gtk_sheet_position_child(sheet, child); @@ -2915,7 +2915,7 @@ gtk_sheet_unmap (GtkWidget * widget) child = children->data; children = g_list_next(children); - if (GTK_WIDGET_VISIBLE (child->widget) && + if (gtk_widget_get_visible(child->widget) && gtk_widget_get_mapped(child->widget)) { gtk_widget_unmap (child->widget); @@ -3882,7 +3882,7 @@ gtk_sheet_entry_changed(GtkWidget *widget, gpointer data) sheet=GTK_SHEET(data); - if(!GTK_WIDGET_VISIBLE(widget)) return; + if(!gtk_widget_get_visible(widget)) return; if(sheet->state != GTK_STATE_NORMAL) return; row=sheet->active_cell.row; @@ -8031,7 +8031,7 @@ gtk_sheet_put(GtkSheet *sheet, GtkWidget *child, gint x, gint y) gtk_widget_size_request(child, &child_requisition); - if (GTK_WIDGET_VISIBLE(GTK_WIDGET(sheet))) + if (gtk_widget_get_visible(GTK_WIDGET(sheet))) { if(gtk_widget_get_realized(GTK_WIDGET(sheet)) && (!gtk_widget_get_realized(child) || GTK_WIDGET_NO_WINDOW(child))) @@ -8129,7 +8129,7 @@ gtk_sheet_attach (GtkSheet *sheet, child->x = area.x + child->xpadding; child->y = area.y + child->ypadding; - if (GTK_WIDGET_VISIBLE(GTK_WIDGET(sheet))) + if (gtk_widget_get_visible(GTK_WIDGET(sheet))) { if(gtk_widget_get_realized(GTK_WIDGET(sheet)) && (!gtk_widget_get_realized(widget) || GTK_WIDGET_NO_WINDOW(widget))) @@ -8206,7 +8206,7 @@ gtk_sheet_button_attach (GtkSheet *sheet, sheet->row[row].height = button_requisition.height; } - if (GTK_WIDGET_VISIBLE(GTK_WIDGET(sheet))) + if (gtk_widget_get_visible(GTK_WIDGET(sheet))) { if(gtk_widget_get_realized(GTK_WIDGET(sheet)) && (!gtk_widget_get_realized(widget) || GTK_WIDGET_NO_WINDOW(widget))) -- 2.1.0