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=XU75PDaJ5wWjnmwihFzZbdLB94vq2cTr+sHnh+e+pe4=; b=eImelXnTZnZsKMQz4QHUBprtjZJCbFvoaDKqtXXHyzv6xO92ZCq3zye043P64U4dQ3 3eCFTkO0yxAVYiCou0QbLKgyCwQOdArhoNJiBa9k6EWfjxM5r578ZQxXfAgfFJy9GwpV oWCupT7d36RHZlqYaoN2HzFSus6A3Jjo4+Xi3DnCKNWroXvGg5uN/w4lSvopGuCmb/hV IIHr5mJZ2vmF2ZT/I9Mm6rV7YGsuow4lI4JmSY4BIXetlxx9it4znTMXNoYeB5Cj/9qS Ok3/FBgRG8bzfB1NwrG2u5J1r2i712h2Jf981XkYdXRdEZt5DcLmOhCFZot1dXW0NRPN acGg== X-Received: by 10.194.185.199 with SMTP id fe7mr4152637wjc.7.1411038529716; Thu, 18 Sep 2014 04:08:49 -0700 (PDT) From: Riccardo Lucchese To: geda-user AT delorie DOT com Cc: Riccardo Lucchese Subject: [geda-user] [PATCH 38/43] Remove deprecated use of GTK_WIDGET_UNSET_FLAGS() Date: Thu, 18 Sep 2014 13:06:33 +0200 Message-Id: <1411038398-10231-39-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_UNSET_FLAGS has been deprecated since version 2.22 and should not be used in newly-written code. Use the proper function instead." --- gattrib/src/gtksheet_2_2.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gattrib/src/gtksheet_2_2.c b/gattrib/src/gtksheet_2_2.c index 5780826..399e473 100644 --- a/gattrib/src/gtksheet_2_2.c +++ b/gattrib/src/gtksheet_2_2.c @@ -927,7 +927,7 @@ gtk_sheet_init (GtkSheet *sheet) sheet->freeze_count = 0; sheet->state = GTK_SHEET_NORMAL; - GTK_WIDGET_UNSET_FLAGS (sheet, GTK_NO_WINDOW); + gtk_widget_set_has_window(sheet, TRUE); gtk_widget_set_can_focus(sheet, TRUE); sheet->maxrow = 0; @@ -2889,7 +2889,7 @@ gtk_sheet_unmap (GtkWidget * widget) if (gtk_widget_get_mapped(widget)) { - GTK_WIDGET_UNSET_FLAGS (widget, GTK_MAPPED); + gtk_widget_set_mapped(widget, FALSE); gdk_window_hide (sheet->sheet_window); if(sheet->column_titles_visible) @@ -4001,7 +4001,7 @@ gtk_sheet_hide_active_cell(GtkSheet *sheet) GTK_WIDGET_UNSET_FLAGS(sheet->sheet_entry, GTK_HAS_FOCUS); gtk_widget_grab_focus(GTK_WIDGET(sheet)); - GTK_WIDGET_UNSET_FLAGS(GTK_WIDGET(sheet->sheet_entry), GTK_VISIBLE); + gtk_widget_set_visible(GTK_WIDGET(sheet->sheet_entry), FALSE); } -- 2.1.0