From ebassi@gmail.com Mon Aug 1 09:04:07 2016 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp.gnome.org (Postfix) with ESMTP id 4999376A06 for ; Mon, 1 Aug 2016 09:04:07 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.7 X-Spam-Level: X-Spam-Status: No, score=-2.7 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001] autolearn=ham Received: from smtp.gnome.org ([127.0.0.1]) by localhost (restaurant.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id WhrhZl-mexbh for ; Mon, 1 Aug 2016 09:04:06 +0000 (UTC) Received: from mail-lf0-f44.google.com (mail-lf0-f44.google.com [209.85.215.44]) by smtp.gnome.org (Postfix) with ESMTPS id 1D4CB762C5 for ; Mon, 1 Aug 2016 09:04:05 +0000 (UTC) Received: by mail-lf0-f44.google.com with SMTP id b199so110884100lfe.0 for ; Mon, 01 Aug 2016 02:04:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=MDs7pNgsGmiZlDBQa3LJbHSnTfosdtxVGvNhiynhQTw=; b=ffAhrnv3dw0DBydq+B+sPftizDhZwKhS0kCDD5XFrsftvTWp9PSxbIrOyjvLVqr3hd A919wWDsqGdg2+Ny80FrLUmt3ntbR2lTuX5L9SfsVhSIftidj56ja63gKXLp0rffKsyV GCUp5XWdkcGxuifQhdpCOf7MIiSs3dXCUTYQH7ev3k1x2cwVRwh55xePklcR2AWClSKB 5tUi7h0P6h9ykWEFPvAAVKwQtYMso5/PWbjFtQSaIcZx+Zw/2rGnLuB7UXZksTp3rlq1 w5NcyNjsUAqA3aRS8k4Ijrz/mYdeNbn6WU6fIFSWEZ2I2Mwqhmlv81xbFhh83vV9OFAC nJqg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=MDs7pNgsGmiZlDBQa3LJbHSnTfosdtxVGvNhiynhQTw=; b=eG4ON52Ilr/CpPE58hBvWD2Bf7KQAa7paLOnYXGwJ9JTrjeCNmchsG5dwECR19A4Lo I4pKKtMIbcIkYm8iHFc2vX45XpAUJkmSwBOa1dMHMOSwUs8uEmRlUfYqbTDJOjg/PtcI vekbkiqOPPwwA+jskNgqdE9qtrr6jMpp/EQ+cDRGFKz76e5zLz3tkSDfnRIBl5VnR070 Mj0RslrTNBLLL0mmSfZqUgiFGJUsq8wVi6zHaenb482R19jLOivK+MOrEaCwvEMg8vEl 8ppdD0cOvpfNJevAq8H8vLbBXhUCSi0fXXOcEuLyCD0PQ0MfmIVFAx9oL6q8dC3BTg+R d1Qw== X-Gm-Message-State: AEkooutDu3i7cTjCb12zgZoozNOjwT6XIpR31yb92c0WuHxCcb/3qTHYdd5bG5r3A2o3HPPigujezQpLi8KpoQ== X-Received: by 10.25.16.212 with SMTP id 81mr15992638lfq.174.1470042243020; Mon, 01 Aug 2016 02:04:03 -0700 (PDT) MIME-Version: 1.0 Received: by 10.114.26.2 with HTTP; Mon, 1 Aug 2016 02:04:02 -0700 (PDT) In-Reply-To: References: From: Emmanuele Bassi Date: Mon, 1 Aug 2016 10:04:02 +0100 Message-ID: Subject: Re: Custom CSS in GtkBuilder XML To: "lukas@middelberg-bi.net" Content-Type: text/plain; charset=UTF-8 Cc: ML-gtk X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 01 Aug 2016 09:04:07 -0000 Hi; On 30 July 2016 at 11:54, lukas@middelberg-bi.net wrote: > Using GtkBuilder XML, you can currently only add Styling Information like > so: > > > > > > So (please correct me if I'm wrong) CSS cannot be added without actions > outside of this XML File. Correct. > You always have to create a GtkCssProvider and add > it to the widget's GtkStyleContext in your programming code. Only if you have custom CSS, yes. > Wouldn't it be more consistent to allow something like this: If by "consistent" you mean "convenient", then possibly. In reality, though, you may want to determine the additional CSS to be loaded based on programmatic conditions, like the current user theme, or the current platform. Adding a bunch of conditions to the XML instead of code is not going to help much in terms of making Glade more useful. Ciao, Emmanuele. -- https://www.bassi.io [@] ebassi [@gmail.com] From ebassi@gmail.com Mon Aug 1 09:16:52 2016 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp.gnome.org (Postfix) with ESMTP id 5DD4976990 for ; Mon, 1 Aug 2016 09:16:52 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.7 X-Spam-Level: X-Spam-Status: No, score=-2.7 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001] autolearn=ham Received: from smtp.gnome.org ([127.0.0.1]) by localhost (restaurant.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id EzDPpcA7ByUJ for ; Mon, 1 Aug 2016 09:16:51 +0000 (UTC) Received: from mail-lf0-f49.google.com (mail-lf0-f49.google.com [209.85.215.49]) by smtp.gnome.org (Postfix) with ESMTPS id 0BD59762C5 for ; Mon, 1 Aug 2016 09:16:50 +0000 (UTC) Received: by mail-lf0-f49.google.com with SMTP id b199so111106184lfe.0 for ; Mon, 01 Aug 2016 02:16:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=E7KSCdU1dxctV78EXqwlw6EWBNbxnpjCoh7gXa7/BeU=; b=RpfMLHRiLMK9FDXa7MYX//LHW5fRoer+9DXOc2wtrh3TI6YqJOYPHEjVfvW6lPhpL8 TBg3zJMygulwgzXwPkC10/xIPJ65WbZplEwTzur99a+Xz/Bh4ESSXSwh7d3fN1VuzI1g zfM8oCtwE0LfqW+kAQPd0Uijp63KFDgbCiUG+xnbizvw25kcBX+FuEItEO2M+jLmarnc DJmXDfyD3SFdXhl4h1kcO6uWz9JuRDrDdMlvOA1HzOf1XUVTrXrs6zMQSvg+m017+qrI TzJur72YO+tj8gW9+U+ROSkbHqeNbxP8ufoNdd1/JB59179UTG7svS+dNmujaM4iKGdj YcCA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=E7KSCdU1dxctV78EXqwlw6EWBNbxnpjCoh7gXa7/BeU=; b=IlietW2HWvSkNkLJ39p56Ze3WUBDbO0QFSRPbdvGZaWmwygeS95JwDXs+QUh0HAyWp gQFeikD3eFPy+BT77bPC/n91Nsp1Djg4X8nbjkAj/Hvf4B+SanEh/7GdhDL2cv/sg9ET dMeboq4MMq+h6BGAbs2T40f4iIZ4CBdlibyBxUnFUhHzH2v/YEFUhOJVdv8GpNxVMVUi 8/mBDxc0jVaqt8WspOyv+hniwFWMp8zq9+Q0phcgNu+JnZvvuoiVpSrDyNKJI4Rt1AAL NakjTbh5EXGJlYtAQv0+xDL2orQyW8pq35par+B8WJKteG0DRIG1tkl5x9yaRJwv15eQ 08Lw== X-Gm-Message-State: AEkoousNRt4Hlvi7OUuG1LGWz4IT+kLd7KBXLzLlZ6WFalUaLJI8XYheWy451GKih0l/OkzeBcIVUPeafLh1WQ== X-Received: by 10.25.150.208 with SMTP id y199mr18537850lfd.92.1470043007941; Mon, 01 Aug 2016 02:16:47 -0700 (PDT) MIME-Version: 1.0 Received: by 10.114.26.2 with HTTP; Mon, 1 Aug 2016 02:16:47 -0700 (PDT) In-Reply-To: References: From: Emmanuele Bassi Date: Mon, 1 Aug 2016 10:16:47 +0100 Message-ID: Subject: Re: gtk_main_iteration under broadway To: Daniel Kasak Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: gtk list X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 01 Aug 2016 09:16:52 -0000 Hi; On 29 July 2016 at 04:48, Daniel Kasak wrote: > Hi all. > > I've got some convenience functions that update a progress bar for long > running operations. I do: > > Gtk3::main_iteration() while ( Gtk3::events_pending() ); Stop. I know this kind of behaviour is peddled and cargo culted on gtk-perl-list because "hey, it works in my abominable 2500 lines single file Perl program that I have to use for work and nobody will ever bother to read or change", but it's a really stupid thing to do, that goes against the design of GTK+. Either you move your blocking code inside a thread and update the UI using Glib::idle_add(), like any sensible person would; or you stop using synchronous operations blocking the main loop, and then try to "catch up" at the end so that your UI doesn't continuously lock up. Those two functions are a crutch that expose design and implementation issues in your code, or in the library code you're using. Stop hurting yourself. The only reason why those two functions haven't been deprecated =E2=80=94 a= nd I swear I'll deprecate them before we get into GTK+ 4 =E2=80=94 is because they were used in the test suite, i.e. for controlled, non-interactive use cases. > ... ( in Perl ) after updating the progress bar, so that the window's > contents are updated while my code continues to run. This works great in = X > and wayland. However in broadway, I quite often see CPU usage in broadway= d > rise to 100%, and my application hang, immediately after the above line o= f > line. You're doing a busy loop. > Is this known to be not safe under broadway? That construct is known to be unsafe *everywhere*. The only reason why you don't get into a busy loop just as often is that you're getting another process involved (the X server on X11, the Wayland compositor on Wayland) and that introduces a potential lag between the "events pending" and the "main iteration" steps of the loop. You're doing something broken. Stop doing it. Ciao, Emmanuele. --=20 https://www.bassi.io [@] ebassi [@gmail.com] From d.j.kasak.dk@gmail.com Mon Aug 1 23:02:03 2016 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp.gnome.org (Postfix) with ESMTP id 1213776AB9 for ; Mon, 1 Aug 2016 23:02:03 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2 X-Spam-Level: X-Spam-Status: No, score=-2 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001] autolearn=ham Received: from smtp.gnome.org ([127.0.0.1]) by localhost (restaurant.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ZaCOPrIBm-TR for ; Mon, 1 Aug 2016 23:02:02 +0000 (UTC) Received: from mail-yw0-f173.google.com (mail-yw0-f173.google.com [209.85.161.173]) by smtp.gnome.org (Postfix) with ESMTPS id 1536D76A5A for ; Mon, 1 Aug 2016 23:02:01 +0000 (UTC) Received: by mail-yw0-f173.google.com with SMTP id j12so185987584ywb.2 for ; Mon, 01 Aug 2016 16:02:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=BhqhAtfwg+OC/hjppqyS7gNomV1+8xoguqy9fnSVWAE=; b=QsDvOXropm+qkGVUHPCI+eIdgXtAyaC0I/fhUDz1Uv0hGC4bHS/wia+NerD6FPVmis EkzrWY39EOiQAsVEJ1mhUaQwSAAM4YGOz28kVSXp5/mMVXQHU2qAJkLYmMwCupZPxT+V Z7BGo/XzLaXZJvgkdbtI6okNcmaOItVrs8CB6CIG8jKIMlVcZDhYyoeLKuKZ/b42WiRD B9rksK25DsISvhCBkWRbG1/NwqcNo2D/4J26dlSrOp+zDH0SUoOjUxY/c8zDM1opEWu0 OU77Owu7Djh0Pi2SrWNjS7gQz2ro1yekMiodxulZ8022/5Sgk5gusz+sUTzt6TIXSKtW 3JSA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=BhqhAtfwg+OC/hjppqyS7gNomV1+8xoguqy9fnSVWAE=; b=Lx8YPeQaj2hyiyodGEGOJ59ZCsqZjAF9oLYNU2gyZYePcGmCaFcDc0Hua7Dhj241w5 A2snb7GKZj68sDQfnc4fqym3slU0oGqqNgWlcg1TAwRBF0U4V8wBbUBDyJpq+XJ/AnwN 25hfVY0D8alkUwGKxYfWS3OYpM1iKP6g3ss9ULrhoBN/ez6QGIDbPvN1GRWb9j+TWQ8y 5KzeRdmQi7zr9RVlacXiClKz6gDhi8xQrEI3UC6vO4nFyXRANX6KJweIXai6/tJIyRCp 0SMh3t9wA0U8jOdR6IR4NpXA3RDcba7gw3orXSdD9qMFLOknVr2+7B4ecHIonJLlu6xJ A9pg== X-Gm-Message-State: AEkoouvX5abpL8l8URj+yId5MVnBH728xQAO5vpE89nzn8gvzecd1PIfrn6oZJkuM6OcjziZdxsFj9D3ZE3K4g== X-Received: by 10.37.11.83 with SMTP id 80mr39071732ybl.178.1470092519956; Mon, 01 Aug 2016 16:01:59 -0700 (PDT) MIME-Version: 1.0 Received: by 10.129.136.197 with HTTP; Mon, 1 Aug 2016 16:01:59 -0700 (PDT) In-Reply-To: References: From: Daniel Kasak Date: Tue, 2 Aug 2016 09:01:59 +1000 Message-ID: Subject: Re: gtk_main_iteration under broadway To: Emmanuele Bassi Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: gtk list X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 01 Aug 2016 23:02:03 -0000 I see. Sorry to ruffle your feathers :) Until now, I was under the impression that this was the way things are done - as you note, it's what's recommended to us evil Perl users. I've done some parts threaded already, but I've found implementations on different platforms ( eg Windows ) kinda temperamental. Anyway, thanks for the response and explanation. Dan On Mon, Aug 1, 2016 at 7:16 PM, Emmanuele Bassi wrote: > Hi; > > On 29 July 2016 at 04:48, Daniel Kasak wrote: >> Hi all. >> >> I've got some convenience functions that update a progress bar for long >> running operations. I do: >> >> Gtk3::main_iteration() while ( Gtk3::events_pending() ); > > Stop. I know this kind of behaviour is peddled and cargo culted on > gtk-perl-list because "hey, it works in my abominable 2500 lines > single file Perl program that I have to use for work and nobody will > ever bother to read or change", but it's a really stupid thing to do, > that goes against the design of GTK+. > > Either you move your blocking code inside a thread and update the UI > using Glib::idle_add(), like any sensible person would; or you stop > using synchronous operations blocking the main loop, and then try to > "catch up" at the end so that your UI doesn't continuously lock up. > > Those two functions are a crutch that expose design and implementation > issues in your code, or in the library code you're using. Stop hurting > yourself. > > The only reason why those two functions haven't been deprecated =E2=80=94= and > I swear I'll deprecate them before we get into GTK+ 4 =E2=80=94 is becaus= e > they were used in the test suite, i.e. for controlled, non-interactive > use cases. > >> ... ( in Perl ) after updating the progress bar, so that the window's >> contents are updated while my code continues to run. This works great in= X >> and wayland. However in broadway, I quite often see CPU usage in broadwa= yd >> rise to 100%, and my application hang, immediately after the above line = of >> line. > > You're doing a busy loop. > >> Is this known to be not safe under broadway? > > That construct is known to be unsafe *everywhere*. The only reason why > you don't get into a busy loop just as often is that you're getting > another process involved (the X server on X11, the Wayland compositor > on Wayland) and that introduces a potential lag between the "events > pending" and the "main iteration" steps of the loop. > > You're doing something broken. Stop doing it. > > Ciao, > Emmanuele. > > -- > https://www.bassi.io > [@] ebassi [@gmail.com] From ramien43@windstream.net Fri Aug 5 23:47:32 2016 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp.gnome.org (Postfix) with ESMTP id B8A3176A8E for ; Fri, 5 Aug 2016 23:47:32 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -3.848 X-Spam-Level: X-Spam-Status: No, score=-3.848 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, RP_MATCHES_RCVD=-1.247, SPF_PASS=-0.001] autolearn=ham Received: from smtp.gnome.org ([127.0.0.1]) by localhost (restaurant.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id i55BpQ8v0h7m for ; Fri, 5 Aug 2016 23:47:32 +0000 (UTC) X-Greylist: delayed 494 seconds by postgrey-1.34 at restaurant.gnome.org; Fri, 05 Aug 2016 23:47:31 UTC Received: from pacmmta54.windstream.net (pacmmta54.windstream.net [162.39.147.220]) by smtp.gnome.org (Postfix) with ESMTPS id D766B763DC for ; Fri, 5 Aug 2016 23:47:31 +0000 (UTC) Received: from [192.168.254.2] ([98.16.216.173]) by pacmmta54.windstream.net with pacmmta54 id TbfE1t00U3l2rle01bfFsx; Fri, 05 Aug 2016 19:39:15 -0400 X-WS-COS: WSOB804 X-Cloudmark-Category: undefined X-Cloudmark-Analysis: v=2.1 cv=N866SQNB c=1 sm=1 tr=0 a=fp2fBiiSHLdUymAwAyHCBQ==:117 a=fp2fBiiSHLdUymAwAyHCBQ==:17 a=L9H7d07YOLsA:10 a=9cW_t1CCXrUA:10 a=s5jvgZ67dGcA:10 a=IkcTkHD0fZMA:10 a=P1tImv9wVv3zRpBMn38A:9 a=QEXdDO2ut3YA:10 X-Cloudmark-Score: 0.00 X-WS-Auth: ramien43@windstream.net Authentication-Results: pacmmta54.windstream.net ; auth=pass smtp.auth=ramien43@windstream.net To: gtk-list@gnome.org From: Marshall Neill Subject: Deprecated css functions Message-ID: Date: Fri, 5 Aug 2016 18:39:14 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 05 Aug 2016 23:47:32 -0000 I have a theme that uses -GtkWidget-link-color: @theme_link_color; -GtkWidget-visited-link-color: #00ffff; My question is, "What replaces those functions?" My .xsession-errors file (Xfce user here) is loaded with the errors about deprecation. If a function is deprecated it would be nice to know what is the replacement. I am running with gtk3.20.8-1 on Arch using a modified vertex theme. Any help in this request would be greatly appreciated. Regards, Marshall Neill From mail@ssalewski.de Mon Aug 8 05:45:14 2016 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp.gnome.org (Postfix) with ESMTP id 2E3B47628F for ; Mon, 8 Aug 2016 05:45:14 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.6 X-Spam-Level: X-Spam-Status: No, score=-2.6 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7] autolearn=ham Received: from smtp.gnome.org ([127.0.0.1]) by localhost (restaurant.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id XFrCusHJYeiK for ; Mon, 8 Aug 2016 05:45:13 +0000 (UTC) Received: from dd10024.kasserver.com (dd10024.kasserver.com [85.13.132.243]) by smtp.gnome.org (Postfix) with ESMTPS id 1C7487609D for ; Mon, 8 Aug 2016 05:45:12 +0000 (UTC) Received: from AMD64X2.fritz.box (p5B0DCBE4.dip0.t-ipconnect.de [91.13.203.228]) by dd10024.kasserver.com (Postfix) with ESMTPA id 54F211E2034E for ; Mon, 8 Aug 2016 07:45:09 +0200 (CEST) Message-ID: <1470635109.751.6.camel@ssalewski.de> Subject: GDK_IS_WINDOW (window) failed From: Stefan Salewski To: gtk-list@gnome.org Date: Mon, 08 Aug 2016 07:45:09 +0200 Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.18.5.2 Mime-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Aug 2016 05:45:14 -0000 I have still no concreate idea about this message from my Nim editor ht tps://github.com/ngtk3/NEd Gdk-CRITICAL **: gdk_window_move_resize_internal: assertion 'GDK_IS_WINDOW (window)' failed I get that message for GTK 3.18 when I launch the editor from the command line with two file arguments, and then use HSplit or VSplit from gears menu. But only when automatic scrollbars with overlay are selected in preferences. That is the default. No idea. I tried some hours to modify my code, but no change. Is that a known bug of GTK 3.18? Well, gedit seems to have it not, so there may be a way to suppress it. Google told me that it may be related to the realize functions, but that does not really help me removing that problem. From mail@baedert.org Mon Aug 8 07:15:27 2016 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp.gnome.org (Postfix) with ESMTP id 8993D765A3 for ; Mon, 8 Aug 2016 07:15:27 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -1.79 X-Spam-Level: X-Spam-Status: No, score=-1.79 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, T_DKIM_INVALID=0.01] autolearn=no Received: from smtp.gnome.org ([127.0.0.1]) by localhost (restaurant.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 107z0LXXIKBB for ; Mon, 8 Aug 2016 07:15:26 +0000 (UTC) Received: from baedersonline.de (delorean.baedersonline.de [84.38.64.56]) by smtp.gnome.org (Postfix) with ESMTPS id 318EA7609D for ; Mon, 8 Aug 2016 07:15:26 +0000 (UTC) Received: by baedersonline.de (Postfix, from userid 1006) id ECF4FB01FB; Mon, 8 Aug 2016 09:15:22 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=baedert.org; s=mail; t=1470640522; bh=LZqovI444kZ1KGYjNuk/23Kihsr2YHZ3YbMVpgV7xOE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=j/n1ZLK66flaBb48iAeICVfmPrFXCCTfdyOf85zMd1KOQZszBUylb3PvieKZrOzb0 wJgc/aoSuQ+tL0/3dKYh6QuloUVHFxpFwiWzKEbtXRGylFFCsMS1yeSXMU/983p5Bx ltGkt82n+AMCJaeE6q1pWlByA3/hsZOs5Z4SsdeM= Received: from localhost (x5f71e6fb.dyn.telefonica.de [95.113.230.251]) by baedersonline.de (Postfix) with ESMTPA id 1B0E4B0162; Mon, 8 Aug 2016 09:15:22 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=baedert.org; s=mail; t=1470640522; bh=LZqovI444kZ1KGYjNuk/23Kihsr2YHZ3YbMVpgV7xOE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=j/n1ZLK66flaBb48iAeICVfmPrFXCCTfdyOf85zMd1KOQZszBUylb3PvieKZrOzb0 wJgc/aoSuQ+tL0/3dKYh6QuloUVHFxpFwiWzKEbtXRGylFFCsMS1yeSXMU/983p5Bx ltGkt82n+AMCJaeE6q1pWlByA3/hsZOs5Z4SsdeM= Date: Mon, 8 Aug 2016 09:16:18 +0200 From: Timm =?iso-8859-1?Q?B=E4der?= To: Stefan Salewski Subject: Re: GDK_IS_WINDOW (window) failed Message-ID: <20160808071618.GA19175@aleroth> References: <1470635109.751.6.camel@ssalewski.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1470635109.751.6.camel@ssalewski.de> User-Agent: Mutt/1.6.2 (2016-07-01) Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Aug 2016 07:15:27 -0000 On 08.08, Stefan Salewski wrote: > No idea. I tried some hours to modify my code, but no change. Is that a > known bug of GTK 3.18? Well, gedit seems to have it not, so there may > be a way to suppress it. Google told me that it may be related to the > realize functions, but that does not really help me removing that > problem. That might be possible of course (especially if your code base does not contain a widget that creates its own GdkWindows), but the advice is the same for all criticals and warnings you get: Run in gdb with G_DEBUG=fatal-warnings or G_DEBUG=fatal-criticals and once you hit the one you're interested in, print a backtrace (make sure you have GTK+ debugging symbols). From ivbsd1@gmail.com Tue Aug 9 16:28:32 2016 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp.gnome.org (Postfix) with ESMTP id B30AB769DD for ; Tue, 9 Aug 2016 16:28:32 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.449 X-Spam-Level: X-Spam-Status: No, score=-2.449 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001] autolearn=ham Received: from smtp.gnome.org ([127.0.0.1]) by localhost (restaurant.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ErQvHnH2a9uU for ; Tue, 9 Aug 2016 16:28:32 +0000 (UTC) Received: from mail-wm0-f43.google.com (mail-wm0-f43.google.com [74.125.82.43]) by smtp.gnome.org (Postfix) with ESMTPS id D464F76955 for ; Tue, 9 Aug 2016 16:28:31 +0000 (UTC) Received: by mail-wm0-f43.google.com with SMTP id i5so46753978wmg.0 for ; Tue, 09 Aug 2016 09:28:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to; bh=VPqiq6Wbk/nbZzU0AN3AtVUjCyAIVu6M05zshIp54/Q=; b=CmhdTvjEW1LjdK1BQ2IjlzhDEm+eP7LBzc27J1iFBg42ZVkAXKGQihFVjY4OaMLPiZ PseOqKpdlKg4NisJsDFKh8Cfiv08r4Munj1ID7iEi5Q+vswlfVjSDexcwcBLuAGF0QWb n4dMX0JRvXC8gOWvalxyAB6rgY6GjAwXC5AgThz8XwHXrc42877DrJM0TTq41xwwD2WI U+UY8ulIi6pZ1Xme9+uOr9Yq4hmTDbtaRT5swncTVYVTKidgE5lKE6QM2A2M9r3Cl5kK ynZ2J8azda7cy7nGTlk2aCo1BWPzu99as/DgZGeLFQoOXOWB7/l0GwYzFn2pe4KgNpcx D0nQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=VPqiq6Wbk/nbZzU0AN3AtVUjCyAIVu6M05zshIp54/Q=; b=hGBjHzIV0U/l5vFV+jnR6YfucP1FR3XiTxVMpvWRMk0e+nn21LkEQVYAaaVTafXsl1 u+7mD/cMiK3Z/Aai+vi6ZHJycfNRirPlbu5u9G9FrFjOOTbCMjT7PAt0myfBjFcG7B9O yzvffcrTMmA97KGju21OGaVD7X7qLX/XY89LqyVwudLYI4vdm+vFxdXrDr//QtcMVlyD 9HWJYvWT2JbFw0iQqpANx8wZCAf9GkFjMpghvCQUWTtMDxK85Xl67Rp8hnwXXH3yvTQz GVxC11D/nLCWcZlRzIN+UVi73fjhwirj5YcMf712s2UQwW/MpcaRe/6nuKp10UJCYOAZ 8yuw== X-Gm-Message-State: AEkoouvqTVe2lMPYClm57IOTRccHFgWJQwqJMStNz9KFQF74mbj7U+E6HY5dop5A5o/7Q4LdIHyvBsu/3eK9Gg== X-Received: by 10.46.1.162 with SMTP id f34mr25729163lji.22.1470760108824; Tue, 09 Aug 2016 09:28:28 -0700 (PDT) MIME-Version: 1.0 Received: by 10.114.19.7 with HTTP; Tue, 9 Aug 2016 09:28:08 -0700 (PDT) From: Igor D Date: Tue, 9 Aug 2016 19:28:08 +0300 Message-ID: Subject: Using GTK+ with Broadway To: gtk-list@gnome.org Content-Type: multipart/alternative; boundary=001a1142b8ded61d040539a60564 X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Aug 2016 16:28:32 -0000 --001a1142b8ded61d040539a60564 Content-Type: text/plain; charset=UTF-8 Hi all, I consider to use GTK+ with Broadway for development of device control application. Device is with functionality similar to broadband modem/router (I intentionally selected example which is familiar for all :-) ). Device should be controlled remotely via web browser. My concern is about performance of such control. I'm afraid that Broadway may be a bottleneck. Probably I'm wrong but even in simple pilot I built it looks not so good. It will be very appreciated to have your inputs based on real experience. Thanks a lot, Igor --001a1142b8ded61d040539a60564 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi all,

I consider to use GTK+ with Bro= adway for development of device control application.
Device is wi= th functionality similar to =C2=A0broadband modem/router (I intentionally s= elected example which is familiar for all :-) =C2=A0).
Device sho= uld be controlled remotely via web browser.

My con= cern is about performance of such control. I'm afraid that Broadway may= be a bottleneck.
Probably I'm wrong but even in simple pilot= I built it looks not so good.

It will be very app= reciated to have your inputs based on real experience.

=
Thanks a lot,
Igor


--001a1142b8ded61d040539a60564-- From mail@ssalewski.de Tue Aug 9 18:36:41 2016 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp.gnome.org (Postfix) with ESMTP id 1151E76A36 for ; Tue, 9 Aug 2016 18:36:41 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.6 X-Spam-Level: X-Spam-Status: No, score=-2.6 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7] autolearn=ham Received: from smtp.gnome.org ([127.0.0.1]) by localhost (restaurant.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id i-1NV2f9_wiY for ; Tue, 9 Aug 2016 18:36:40 +0000 (UTC) Received: from dd10024.kasserver.com (dd10024.kasserver.com [85.13.132.243]) by smtp.gnome.org (Postfix) with ESMTPS id B3FC576A22 for ; Tue, 9 Aug 2016 18:36:39 +0000 (UTC) Received: from AMD64X2.fritz.box (p5086F605.dip0.t-ipconnect.de [80.134.246.5]) by dd10024.kasserver.com (Postfix) with ESMTPA id AAC971E20281 for ; Tue, 9 Aug 2016 20:36:36 +0200 (CEST) Message-ID: <1470767796.4443.14.camel@ssalewski.de> Subject: Plain C code bug example for the experts From: Stefan Salewski To: gtk-list@gnome.org Date: Tue, 09 Aug 2016 20:36:36 +0200 Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.18.5.2 Mime-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Aug 2016 18:36:41 -0000 I told you about this bug some days ago, I get it in my Nim editor https://github.com/ngtk3/NEd Here is some minimal C code which seems to show a very similar problem. This is for gtk+-3.18.9 Linux AMD64 The task is to replace a GTK notebook with a paned widget containing two notebooks. To reproduce: Compile and run the program. Click on Tab2 to make textview 2 visible. Enter a long text line, so that bottom scrollbar becomes visible. Click on Tab1 to make textview 1 visible. Click into textview1 so that paned is created. Resize window by dragging lower left corner of window. You should get messages like bassi:4400): Gdk-CRITICAL **: gdk_window_move_resize_internal: assertion 'GDK_IS_WINDOW (window)' failed It is really not easy to generate this bug, so my assumption is that the problem is inside of GTK, but maybe I am doing something wrong indeed. #include // based on https://developer.gnome.org/gtk3/stable/gtk-getting-started.html#id-1.2.3.5 // gcc `pkg-config --cflags gtk+-3.0` -o bassi bassi.c `pkg-config --libs gtk+-3.0` #include static gboolean button_press_cb (GtkWidget *widget,                  GdkEvent  *event,                  gpointer   window) {   GtkWidget *notebook1;   GtkWidget *notebook2;   GtkWidget *paned1;   GtkWidget *textview3;   GtkWidget *scrolled3; notebook1 = gtk_bin_get_child (GTK_BIN(window));   g_object_ref(notebook1);   gtk_container_remove (GTK_CONTAINER (window), notebook1);   paned1 = gtk_paned_new (GTK_ORIENTATION_HORIZONTAL);   gtk_paned_pack1 (GTK_PANED (paned1), notebook1, TRUE, FALSE);   notebook2 = gtk_notebook_new ();   scrolled3 = gtk_scrolled_window_new (NULL, NULL);   textview3 = gtk_text_view_new ();   gtk_container_add (GTK_CONTAINER (scrolled3), textview3);   gtk_notebook_append_page (GTK_NOTEBOOK (notebook2), scrolled3, NULL);   gtk_paned_pack2 (GTK_PANED (paned1), notebook2, TRUE, FALSE);   gtk_container_add (GTK_CONTAINER (window), paned1);   gtk_widget_show_all (window);   g_object_unref(notebook1); return FALSE; } static void activate (GtkApplication *app,           gpointer        user_data) {   GtkWidget *window;   GtkWidget *scrolled1;   GtkWidget *scrolled2;   GtkWidget *textview1;   GtkWidget *textview2;   GtkWidget *notebook1;   window = gtk_application_window_new (app);   gtk_window_set_title (GTK_WINDOW (window), "Window");   gtk_window_set_default_size (GTK_WINDOW (window), 200, 200);   notebook1 = gtk_notebook_new ();   scrolled1 = gtk_scrolled_window_new (NULL, NULL);   textview1 = gtk_text_view_new ();   gtk_container_add (GTK_CONTAINER (scrolled1), textview1);   g_signal_connect (textview1, "button-press-event", G_CALLBACK (button_press_cb), window);   scrolled2 = gtk_scrolled_window_new (NULL, NULL);   textview2 = gtk_text_view_new ();   gtk_container_add (GTK_CONTAINER (scrolled2), textview2);   gtk_notebook_append_page (GTK_NOTEBOOK (notebook1), scrolled1, NULL);   gtk_notebook_append_page (GTK_NOTEBOOK (notebook1), scrolled2, NULL);   gtk_container_add (GTK_CONTAINER (window), notebook1);   gtk_widget_show_all (window); } int main (int    argc,       char **argv) {   GtkApplication *app;   int status;   app = gtk_application_new ("org.gtk.example", G_APPLICATION_FLAGS_NONE);   g_signal_connect (app, "activate", G_CALLBACK (activate), NULL);   status = g_application_run (G_APPLICATION (app), argc, argv);   g_object_unref (app);   return status; } From Matthew.Brown@nuance.com Wed Aug 10 21:44:20 2016 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp.gnome.org (Postfix) with ESMTP id DEC477634E for ; Wed, 10 Aug 2016 21:44:20 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.352 X-Spam-Level: X-Spam-Status: No, score=-2.352 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, RP_MATCHES_RCVD=-0.451, SPF_PASS=-0.001] autolearn=ham Received: from smtp.gnome.org ([127.0.0.1]) by localhost (restaurant.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id t3m_tQFyqrlH for ; Wed, 10 Aug 2016 21:44:20 +0000 (UTC) X-Greylist: delayed 1648 seconds by postgrey-1.34 at restaurant.gnome.org; Wed, 10 Aug 2016 21:44:20 UTC Received: from som-mx01.nuance.com (som-mx01.nuance.com [198.71.66.153]) by smtp.gnome.org (Postfix) with ESMTPS id 0C8C3762A6 for ; Wed, 10 Aug 2016 21:44:19 +0000 (UTC) Received: from pps.filterd (som-ppagent01.nuance.com [127.0.0.1]) by som-ppagent01.nuance.com (8.16.0.11/8.16.0.11) with SMTP id u7ALCaF6007689 for ; Wed, 10 Aug 2016 17:16:50 -0400 Received: from som-cas02.nuance.com ([10.28.20.25]) by som-ppagent01.nuance.com with ESMTP id 24qm95bdem-1 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Wed, 10 Aug 2016 17:16:50 -0400 Received: from SOM-EXCH03.nuance.com ([fe80::9e:afcc:f198:709f]) by SOM-CAS02.nuance.com ([::1]) with mapi id 14.03.0279.002; Wed, 10 Aug 2016 17:16:49 -0400 From: "Brown, Matthew" To: "gtk-list@gnome.org" Subject: [glib] Android port Thread-Topic: [glib] Android port Thread-Index: AdHzS2bjS6u0EeeeSQezOtUknB/8pg== Date: Wed, 10 Aug 2016 21:16:49 +0000 Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.28.16.110] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:, , definitions=2016-08-10_17:, , signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 suspectscore=0 malwarescore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1604210000 definitions=main-1608100221 X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 Aug 2016 21:44:21 -0000 I have a project running on various Linux environments which I need to port= to Android. This project depends on glib 2.32 or newer and will need to ru= n on at least Android API 19. I've attempted to build from the latest stabl= e source and hit well-known compile errors related to the bionic c library.= =0A= =0A= I've been searching the archive and more generally on the 'net for some hel= p, but I'm not finding anything but notes regarding versions older than 2.3= 2.=0A= =0A= Am I just overlooking something? I find it hard to believe that no one has = ported a more recent glib version to Android, but I haven't located such an= effort.=0A= =0A= Any pointers are appreciated. Thanks!=0A= =0A= -- Matt= From mail@ssalewski.de Thu Aug 11 11:15:15 2016 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp.gnome.org (Postfix) with ESMTP id 274C476A74 for ; Thu, 11 Aug 2016 11:15:15 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.6 X-Spam-Level: X-Spam-Status: No, score=-2.6 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7] autolearn=ham Received: from smtp.gnome.org ([127.0.0.1]) by localhost (restaurant.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id HvfO9qmcJAa7 for ; Thu, 11 Aug 2016 11:15:14 +0000 (UTC) Received: from dd10024.kasserver.com (dd10024.kasserver.com [85.13.132.243]) by smtp.gnome.org (Postfix) with ESMTPS id E7B09763D9 for ; Thu, 11 Aug 2016 11:15:13 +0000 (UTC) Received: from AMD64X2.fritz.box (p5086EE85.dip0.t-ipconnect.de [80.134.238.133]) by dd10024.kasserver.com (Postfix) with ESMTPA id 859021E20380; Thu, 11 Aug 2016 13:15:10 +0200 (CEST) Message-ID: <1470914109.4003.8.camel@ssalewski.de> Subject: Re: GDK_IS_WINDOW (window) failed From: Stefan Salewski To: Timm =?ISO-8859-1?Q?B=E4der?= Date: Thu, 11 Aug 2016 13:15:09 +0200 In-Reply-To: <20160808071618.GA19175@aleroth> References: <1470635109.751.6.camel@ssalewski.de> <20160808071618.GA19175@aleroth> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.18.5.2 Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 Aug 2016 11:15:15 -0000 On Mon, 2016-08-08 at 09:16 +0200, Timm Bäder wrote: > That might be possible of course (especially if your code base does not > contain a widget that creates its own GdkWindows), but the advice is the > same for all criticals and warnings you get: Run in gdb with > G_DEBUG=fatal-warnings or G_DEBUG=fatal-criticals and once you hit the > one you're interested in, print a backtrace (make sure you have > GTK+ debugging symbols). So I have to recompile all my GTK libs to get debugging symbols? Well, as you may have seen, I made a minimal plain C example two days ago, which shows a very similar behaviour. https://mail.gnome.org/archives/gtk-list/2016-August/msg00007.html At least now I am sure that it is not related to Nim language. I have some hope that that problem may vanish with GTK 3.20 -- but not too much, because it seems to be never reported to bugzilla. So I think I will wait until 3.20 is available for my Box, and send that example to gtk bugzilla when the problem persists. From mail@baedert.org Thu Aug 11 11:20:14 2016 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp.gnome.org (Postfix) with ESMTP id CDE2A76BE0 for ; Thu, 11 Aug 2016 11:20:14 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -1.79 X-Spam-Level: X-Spam-Status: No, score=-1.79 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, T_DKIM_INVALID=0.01] autolearn=no Received: from smtp.gnome.org ([127.0.0.1]) by localhost (restaurant.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 64oPW1QXjYT3 for ; Thu, 11 Aug 2016 11:20:13 +0000 (UTC) Received: from baedersonline.de (delorean.baedersonline.de [84.38.64.56]) by smtp.gnome.org (Postfix) with ESMTPS id 3D8BB76B6F for ; Thu, 11 Aug 2016 11:20:13 +0000 (UTC) Received: by baedersonline.de (Postfix, from userid 1006) id 45189B01FB; Thu, 11 Aug 2016 13:20:10 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=baedert.org; s=mail; t=1470914410; bh=j/eVociRXb34slGK7PY5sMY3e8T3rh5/0rD/DrsEepE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=mScFQmef6OklShmW8ulaqIFPoAHSxJWH1Jwyiydea+cMnfBcKJgmjNID0qlDjizib 9C3SBH5ozg0D2eNEg3uy/yOdvm4pAHRS1yoKzm/9H9Z1aekrdMOcPs4vtupLAuJcpq dkU5c876j7wEjtl8v/odDouC9CinJ8J6L42t3Czg= Received: from localhost (x5f722aae.dyn.telefonica.de [95.114.42.174]) by baedersonline.de (Postfix) with ESMTPA id 288A2B0162; Thu, 11 Aug 2016 13:20:09 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=baedert.org; s=mail; t=1470914409; bh=j/eVociRXb34slGK7PY5sMY3e8T3rh5/0rD/DrsEepE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=zi31eoFX3zmVb/1jSrT5YKA8FSOYLpmqfrJ5fU5Fg4/vMEibTqQijmprvlF911pym rER6vtTneKJUIMZTFGTxgXWE/r4+RYqz8DFLt1QRpzOI3M+byL7lVOOLVdzLaeCFHp VmEknv9g/yXV/jvgCf7+fnF7Bpc5c0HLz4tO7Q2s= Date: Thu, 11 Aug 2016 13:21:04 +0200 From: Timm =?iso-8859-1?Q?B=E4der?= To: Stefan Salewski Subject: Re: GDK_IS_WINDOW (window) failed Message-ID: <20160811112104.GA2699@aleroth> References: <1470635109.751.6.camel@ssalewski.de> <20160808071618.GA19175@aleroth> <1470914109.4003.8.camel@ssalewski.de> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1470914109.4003.8.camel@ssalewski.de> User-Agent: Mutt/1.6.2 (2016-07-01) Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 Aug 2016 11:20:14 -0000 On 11.08, Stefan Salewski wrote: > On Mon, 2016-08-08 at 09:16 +0200, Timm Bäder wrote: > > That might be possible of course (especially if your code base does not > > contain a widget that creates its own GdkWindows), but the advice is the > > same for all criticals and warnings you get: Run in gdb with > > G_DEBUG=fatal-warnings or G_DEBUG=fatal-criticals and once you hit the > > one you're interested in, print a backtrace (make sure you have > > GTK+ debugging symbols). > > So I have to recompile all my GTK libs to get debugging symbols? Depends, lots of distributions offer -dev packages with debugging symbols. > I have some hope that that problem may vanish with GTK 3.20 -- but not > too much, because it seems to be never reported to bugzilla. FWIW I can reproduce the issue with 3.20 but not with master. From mail@ssalewski.de Thu Aug 11 12:35:14 2016 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp.gnome.org (Postfix) with ESMTP id DCA3E76A74 for ; Thu, 11 Aug 2016 12:35:14 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.6 X-Spam-Level: X-Spam-Status: No, score=-2.6 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7] autolearn=ham Received: from smtp.gnome.org ([127.0.0.1]) by localhost (restaurant.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id zaqcVOtrJ3fp for ; Thu, 11 Aug 2016 12:35:14 +0000 (UTC) Received: from dd10024.kasserver.com (dd10024.kasserver.com [85.13.132.243]) by smtp.gnome.org (Postfix) with ESMTPS id 5A28276490 for ; Thu, 11 Aug 2016 12:35:14 +0000 (UTC) Received: from AMD64X2.fritz.box (p5086EE85.dip0.t-ipconnect.de [80.134.238.133]) by dd10024.kasserver.com (Postfix) with ESMTPA id 599E81E200DB; Thu, 11 Aug 2016 14:35:11 +0200 (CEST) Message-ID: <1470918911.5367.5.camel@ssalewski.de> Subject: Re: GDK_IS_WINDOW (window) failed From: Stefan Salewski To: Timm =?ISO-8859-1?Q?B=E4der?= Date: Thu, 11 Aug 2016 14:35:11 +0200 In-Reply-To: <20160811112104.GA2699@aleroth> References: <1470635109.751.6.camel@ssalewski.de> <20160808071618.GA19175@aleroth> <1470914109.4003.8.camel@ssalewski.de> <20160811112104.GA2699@aleroth> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.18.5.2 Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 Aug 2016 12:35:15 -0000 On Thu, 2016-08-11 at 13:21 +0200, Timm Bäder wrote: > Depends, lots of distributions offer -dev packages with debugging > symbols. I am using Gentoo, and I think all debugging symbols are stripped by default.  > > > I have some hope that that problem may vanish with GTK 3.20 -- but not > > too much, because it seems to be never reported to bugzilla. > > FWIW I can reproduce the issue with 3.20 but not with master. Great, thanks. So I can hope that it will vanish in 3.22 -- and more important, it seems that I do the window splitting not completely wrong. From ennoborg@gmail.com Sun Aug 14 08:52:38 2016 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp.gnome.org (Postfix) with ESMTP id BC8D4762C5 for ; Sun, 14 Aug 2016 08:52:38 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.7 X-Spam-Level: X-Spam-Status: No, score=-2.7 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001] autolearn=ham Received: from smtp.gnome.org ([127.0.0.1]) by localhost (restaurant.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id s2r0GxA-FcYk for ; Sun, 14 Aug 2016 08:52:37 +0000 (UTC) Received: from mail-wm0-f47.google.com (mail-wm0-f47.google.com [74.125.82.47]) by smtp.gnome.org (Postfix) with ESMTPS id AB70F762AB for ; Sun, 14 Aug 2016 08:52:37 +0000 (UTC) Received: by mail-wm0-f47.google.com with SMTP id q128so45013130wma.1 for ; Sun, 14 Aug 2016 01:52:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding; bh=8GxbOrNUvdrYRuh89ZkzLOGx+RPMIqCQBx9zD+krfJU=; b=M1qKH0eK/1N4AAd2xDiQTBz9El/FSzY4NmoK5Grg1SoFQ8Iy+PYQEiLB7ozao5n4dA 2swmHmDWcI1zZGuJzElIZ0F3eMPZ9zRJrKh8lmgjF5JttYCAQ06J5Brx2ySoj1Xq6BCc nPH5RatRvxXvcbkeQQQVkqqZF08MfFD3m2JqTwONbs3XOP2Lk4iVhQCzrkozq2itE8by 0BYHVAcBoorrAJVtdkQCIgGRqcYKcDPIK14Z7Eqtbnr/JVz5r53u4upY36k4BbQUVhob jfZ6urplVXAbQWa5kV48UHczi8XB3Ysv8KDrj339dQOv7xcKvLCL3qvUWNcOE9bC/ggo dv3Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=8GxbOrNUvdrYRuh89ZkzLOGx+RPMIqCQBx9zD+krfJU=; b=G3aZTvrPv7AruKn4s/gvaQDXQWgZidEsTKi55BlV71DtE5HshrI9CfanCqEv42tgWe ipEiDVi+5P8ZtjzBDUqZZKU1yeOjGRkdcRrrZy1qjj/YnlUov1o1npcl0h7ApglZq79y l4yoxYBUmTX8h32RnSwf5zaA420alNyAvaAjSRdUO3b9+lYqNtFMB5sFTUKTEzAbsKPz Od3MHLg5rbX7Xpvy873P6N/6fsnGre8rxKKNi65xOqkkOdZXNT8cm2nHkKvDUt3dOvn8 T0TPBA+yR/LincWoZsagCcvVYlv8x2m3+0Dck7n8ap+NOb5UAlFLRgLOZ+kMZJgQWoN0 elcA== X-Gm-Message-State: AEkooutCcYXE9Fg4NMG57y+9tHPsXf+4w5zVuQdrffXuzgFxf25l7fz3zpyOZk+2fC3SDQ== X-Received: by 10.194.164.229 with SMTP id yt5mr23664131wjb.39.1471164754613; Sun, 14 Aug 2016 01:52:34 -0700 (PDT) Received: from [192.168.2.6] ([145.129.32.111]) by smtp.gmail.com with ESMTPSA id lv9sm15715412wjb.22.2016.08.14.01.52.33 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 14 Aug 2016 01:52:33 -0700 (PDT) Subject: Re: Gramps 3.4.9 problem with ubuntu 16.04, which may be related to GTK 2.24.30 To: gtk-list@gnome.org References: <57741810.5030300@gmail.com> From: Enno Borgsteede Message-ID: Date: Sun, 14 Aug 2016 10:52:32 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 14 Aug 2016 08:52:38 -0000 Op 23-07-16 om 18:45 schreef Michael Torrie: > On 06/29/2016 12:48 PM, Enno Borgsteede wrote: >> I know how to compile a GTK version myself, and it's no big issue to add >> log statements either, but I don't want to replace the system GTK+ >> version 2, because many other applications still depend on it, and I >> don't want to corrupt my whole system. So, what I like to know is how I >> can push Python to work with a hacked GTK+ version 2 that sits in my >> home folder. > You can use the LD_LIBRARY_PATH environment variable to have Linux load > your custom debugging GTK libraries. No need to overwrite the system > libraries. Do you know if this will help for Python too? It calls GTK+-2 via a wrapper called PyGTK, I think, and I don't know whether that wrapper's bindings look at the LD_LIBRARY_PATH variable. That said, I haven't been able to reproduce my problems with a simple C program yet, so proving that what I see in Mint 18 or ubuntu 16.04 is really caused by GTK 2.24.30 may still be quite difficult. For now, it's easier for me to just stick with Mint 17.3 as long as that is supported well. I might convert to a newer version if I knew that someone else might help me with this GTK issue, but it looks like I'm the only one complaining now, and I don't have the skills to work on GTK 2 yet, nor much time. regards, Enno From torriem+gmail@torriefamily.org Sun Aug 14 22:25:07 2016 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp.gnome.org (Postfix) with ESMTP id 7F0B2762AB for ; Sun, 14 Aug 2016 22:25:07 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -1.546 X-Spam-Level: X-Spam-Status: No, score=-1.546 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, DKIM_ADSP_CUSTOM_MED=0.001, FREEMAIL_FROM=0.001, NML_ADSP_CUSTOM_MED=0.9, RP_MATCHES_RCVD=-0.548] autolearn=no Received: from smtp.gnome.org ([127.0.0.1]) by localhost (restaurant.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id oTiCfS5hsCiC for ; Sun, 14 Aug 2016 22:25:07 +0000 (UTC) Received: from mail.torriefamily.org (shell.torriefamily.org [74.207.242.26]) by smtp.gnome.org (Postfix) with ESMTPS id 142D876239 for ; Sun, 14 Aug 2016 22:25:06 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.torriefamily.org (Postfix) with ESMTP id 96832412D for ; Sun, 14 Aug 2016 16:25:04 -0600 (MDT) X-Virus-Scanned: amavisd-new at torriefamily.org Received: from mail.torriefamily.org ([127.0.0.1]) by localhost (mail.torriefamily.org [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 5IOl_pMP8xZk for ; Sun, 14 Aug 2016 16:25:03 -0600 (MDT) Received: from [192.168.12.100] (unknown [192.168.12.100]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.torriefamily.org (Postfix) with ESMTPSA id 7D0A232F0 for ; Sun, 14 Aug 2016 16:25:03 -0600 (MDT) Subject: Re: Gramps 3.4.9 problem with ubuntu 16.04, which may be related to GTK 2.24.30 To: gtk-list@gnome.org References: <57741810.5030300@gmail.com> From: Michael Torrie Message-ID: <040af97c-8321-a653-2360-ebfdca08cb93@gmail.com> Date: Sun, 14 Aug 2016 16:25:02 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.1.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 14 Aug 2016 22:25:07 -0000 On 08/14/2016 02:52 AM, Enno Borgsteede wrote: > Op 23-07-16 om 18:45 schreef Michael Torrie: >> On 06/29/2016 12:48 PM, Enno Borgsteede wrote: >>> I know how to compile a GTK version myself, and it's no big issue to add >>> log statements either, but I don't want to replace the system GTK+ >>> version 2, because many other applications still depend on it, and I >>> don't want to corrupt my whole system. So, what I like to know is how I >>> can push Python to work with a hacked GTK+ version 2 that sits in my >>> home folder. >> You can use the LD_LIBRARY_PATH environment variable to have Linux load >> your custom debugging GTK libraries. No need to overwrite the system >> libraries. > Do you know if this will help for Python too? It calls GTK+-2 via a > wrapper called PyGTK, I think, and I don't know whether that wrapper's > bindings look at the LD_LIBRARY_PATH variable. That's a good question! I'm not sure. I assume it would since pygtk uses some C code to connect with GTK+, which probably is linked directly to the GTK .so files, rather than dynamically loading them at runtime. > > That said, I haven't been able to reproduce my problems with a simple C > program yet, so proving that what I see in Mint 18 or ubuntu 16.04 is > really caused by GTK 2.24.30 may still be quite difficult. > > For now, it's easier for me to just stick with Mint 17.3 as long as that > is supported well. I might convert to a newer version if I knew that > someone else might help me with this GTK issue, but it looks like I'm > the only one complaining now, and I don't have the skills to work on GTK > 2 yet, nor much time. From digitalfreak@lingonborough.com Mon Aug 15 21:44:46 2016 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp.gnome.org (Postfix) with ESMTP id 0A657762F9 for ; Mon, 15 Aug 2016 21:44:46 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -1.9 X-Spam-Level: X-Spam-Status: No, score=-1.9 tagged_above=-999 required=2 tests=[BAYES_00=-1.9] autolearn=ham Received: from smtp.gnome.org ([127.0.0.1]) by localhost (restaurant.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id s9mhNjoSN6lp for ; Mon, 15 Aug 2016 21:44:44 +0000 (UTC) X-Greylist: delayed 614 seconds by postgrey-1.34 at restaurant.gnome.org; Mon, 15 Aug 2016 21:44:43 UTC Received: from aev204.rev.netart.pl (aev204.rev.netart.pl [77.55.125.204]) by smtp.gnome.org (Postfix) with ESMTP id E972576230 for ; Mon, 15 Aug 2016 21:44:43 +0000 (UTC) Received: from poczta.nazwa.pl (unknown [10.252.0.22]) by id16c608407a.nazwa.pl (Postfix) with ESMTP id 0FDD34428EE; Mon, 15 Aug 2016 23:34:26 +0200 (CEST) Date: Mon, 15 Aug 2016 23:34:26 +0200 (CEST) From: Rafal Luzynski To: "gtk-list@gnome.org" , "Brown, Matthew" Message-ID: <1662272233.452169.1471296866134@10.252.0.22> In-Reply-To: References: Subject: Re: [glib] Android port MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Priority: 3 Importance: Medium X-Mailer: Open-Xchange Mailer v7.8.1-Rev12 X-Originating-Client: com.openexchange.ox.gui.dhtml X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: Rafal Luzynski List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Aug 2016 21:44:46 -0000 It's been discussed [1] recently on this list that there are probably some legal issues which make using glib2 on Android difficult or impossible. While this does not answer your question directly it may explain the reasons why glib2 port to Android does not draw much developers' attention and indeed there may be bugs in newer versions. On the other hand, if you spot a problem with the Android port you are probably welcome to fix it. Regards, Rafal [1] https://mail.gnome.org/archives/gtk-list/2016-July/msg00028.html 10.08.2016 23:16 "Brown, Matthew" wrote: > > > I have a project running on various Linux environments which I need to port to > Android. This project depends on glib 2.32 or newer and will need to run on at > least Android API 19. I've attempted to build from the latest stable source > and hit well-known compile errors related to the bionic c library. > > I've been searching the archive and more generally on the 'net for some help, > but I'm not finding anything but notes regarding versions older than 2.32. > > Am I just overlooking something? I find it hard to believe that no one has > ported a more recent glib version to Android, but I haven't located such an > effort. > > Any pointers are appreciated. Thanks! > > -- Matt > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > https://mail.gnome.org/mailman/listinfo/gtk-list From awalton@gmail.com Mon Aug 15 22:53:30 2016 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp.gnome.org (Postfix) with ESMTP id 895B5762F9 for ; Mon, 15 Aug 2016 22:53:30 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.599 X-Spam-Level: X-Spam-Status: No, score=-2.599 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001] autolearn=ham Received: from smtp.gnome.org ([127.0.0.1]) by localhost (restaurant.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id cYy95CRsSu3j for ; Mon, 15 Aug 2016 22:53:29 +0000 (UTC) Received: from mail-oi0-f50.google.com (mail-oi0-f50.google.com [209.85.218.50]) by smtp.gnome.org (Postfix) with ESMTPS id 82A8B76230 for ; Mon, 15 Aug 2016 22:53:29 +0000 (UTC) Received: by mail-oi0-f50.google.com with SMTP id l203so77985188oib.1 for ; Mon, 15 Aug 2016 15:53:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=seXx0shK57MWWUpe8cRvQGWvMuJIcWCPneECh42ouZc=; b=EUUUbKh5y6WK1CLpukRwOvcMx1Z/G7imcir1GroiIfcTK2DvJK27V/OvcR6auWApa/ TkMYlG8qTz/JtHOvmhxASKVFjdUBUtN9xQpjpTDd2+pfgsYdWgLm5KMQflRDfLD7vJ0g 9UWBedDQ0gZ+BBZ4drzAwiZyIq8Z7DKgY6wHH2WIZJI8yWikzczTnhresEBgu2PeOIyS eBllnBLpauWfzpsX40QrhY1LpguqZJ12B1PZpfiJVlEzI47XA2TkLrXyoOg7Ii6/yISU iklldk+BrGLWX9IBcW+f8E2GynFjuP0mpfVplvmeDGcD929V7J5h3g5KZPljJoWPoVQY 44HQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=seXx0shK57MWWUpe8cRvQGWvMuJIcWCPneECh42ouZc=; b=XSOg/PeeZv3ZuLT5VZhdiRHSNtil/mQRNyVO0wc6Z5x0yWbqSicLS9qtJMOpNMZ4Fc Lwy8axMZqocI7jpIzJg5P28m0Xpa74UZXbTVw97XxomRzTfPkZFq3BhkvBqzosjAxXCJ OBNixItxsRjDSAu+hEkgJ6f38vqLyCp9v8P0JF0s9h88U6YTM7rhvbcemdomdpj925lb VhEeEbkD+Wj6cEjQzUEgextBo3LKhjT+yi76ChVFGRMCY9GgMkTIkurXAJGAoaNd1sNR eyRXOxdnEw/dKBFFAnAoNGC3DkVkpbGjuqJlob+FDQaVMILt0t3VdsvUQy+sme8nZ4nA LbeQ== X-Gm-Message-State: AEkoousi9gxGu3FafbDHf7mOqquPVI8/otZWF0an7/yqK90QGFwnsGwA4Qfd/65wM0clYsm3h/pUjqBmSUX7KA== X-Received: by 10.157.9.252 with SMTP id 57mr7810587otz.185.1471301607585; Mon, 15 Aug 2016 15:53:27 -0700 (PDT) MIME-Version: 1.0 Sender: awalton@gmail.com Received: by 10.202.5.69 with HTTP; Mon, 15 Aug 2016 15:53:07 -0700 (PDT) In-Reply-To: References: From: "A. Walton" Date: Mon, 15 Aug 2016 15:53:07 -0700 X-Google-Sender-Auth: HmvuTqRqXgpBnt18Z_5x5TnXQhE Message-ID: Subject: Re: [glib] Android port To: "Brown, Matthew" Content-Type: multipart/alternative; boundary=001a113d0e4ead7e84053a241944 Cc: "gtk-list@gnome.org" X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Aug 2016 22:53:30 -0000 --001a113d0e4ead7e84053a241944 Content-Type: text/plain; charset=UTF-8 On Wed, Aug 10, 2016 at 2:16 PM, Brown, Matthew wrote: > I have a project running on various Linux environments which I need to > port to Android. This project depends on glib 2.32 or newer and will need > to run on at least Android API 19. I've attempted to build from the latest > stable source and hit well-known compile errors related to the bionic c > library. > > I've been searching the archive and more generally on the 'net for some > help, but I'm not finding anything but notes regarding versions older than > 2.32. > > Am I just overlooking something? I find it hard to believe that no one has > ported a more recent glib version to Android, but I haven't located such an > effort. > > Any pointers are appreciated. Thanks! > Disregarding any legal questions or concerns anyone may have, GStreamer has supported Android for quite some time and continues to do so. They also maintain a set of downstream patches in their cerebro build system. Maybe some of those could help you (I haven't looked), or maybe you could just use cerebro to give you a working build. https://cgit.freedesktop.org/gstreamer/cerbero/ -A. Walton > -- Matt > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > https://mail.gnome.org/mailman/listinfo/gtk-list > --001a113d0e4ead7e84053a241944 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable


On Wed, Aug 10, 2016 at 2:16 PM, Brown, Matthew <<= a href=3D"mailto:Matthew.Brown@nuance.com" target=3D"_blank">Matthew.Brown@= nuance.com> wrote:
I have a project running on various Linux environments which I n= eed to port to Android. This project depends on glib 2.32 or newer and will= need to run on at least Android API 19. I've attempted to build from t= he latest stable source and hit well-known compile errors related to the bi= onic c library.

I've been searching the archive and more generally on the 'net for = some help, but I'm not finding anything but notes regarding versions ol= der than 2.32.

Am I just overlooking something? I find it hard to believe that no one has = ported a more recent glib version to Android, but I haven't located suc= h an effort.

Any pointers are appreciated. Thanks!

D= isregarding any legal questions or concerns anyone may have, GStreamer has = supported Android for quite some time and continues to do so. They also mai= ntain a set of downstream patches in their cerebro build system. Maybe some= of those could help you (I haven't looked), or maybe you could just us= e cerebro to give you a working build.

https://cgit.freedesktop.org/gstreamer/cerb= ero/

-A. Walton

<= blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-l= eft:1px solid rgb(204,204,204);padding-left:1ex">
-- Matt
_______________________________________________
gtk-list mailing list
gtk-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-lis= t

--001a113d0e4ead7e84053a241944-- From kj@limes.com.pl Thu Aug 18 21:59:29 2016 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp.gnome.org (Postfix) with ESMTP id 5BD7E76A53 for ; Thu, 18 Aug 2016 21:59:29 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -1.049 X-Spam-Level: X-Spam-Status: No, score=-1.049 tagged_above=-999 required=2 tests=[BAYES_05=-0.5, RCVD_IN_DNSWL_NONE=-0.0001, RP_MATCHES_RCVD=-0.548, SPF_PASS=-0.001] autolearn=ham Received: from smtp.gnome.org ([127.0.0.1]) by localhost (restaurant.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id hMoTe4-SqTFk for ; Thu, 18 Aug 2016 21:59:28 +0000 (UTC) X-Greylist: delayed 563 seconds by postgrey-1.34 at restaurant.gnome.org; Thu, 18 Aug 2016 21:59:27 UTC Received: from deimos.limes.com.pl (deimos.limes.com.pl [193.110.228.48]) by smtp.gnome.org (Postfix) with ESMTP id C953476A2A for ; Thu, 18 Aug 2016 21:59:27 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by deimos.limes.com.pl (Postfix) with ESMTP id BD4D0251214C for ; Thu, 18 Aug 2016 23:50:01 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at deimos.limes.com.pl Received: from deimos.limes.com.pl ([127.0.0.1]) by localhost (deimos.limes.com.pl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id sf4rMCGBLU3S for ; Thu, 18 Aug 2016 23:50:00 +0200 (CEST) Received: from [89.206.34.131] (host131-89-206-34.limes.com.pl [89.206.34.131]) by deimos.limes.com.pl (Postfix) with ESMTPA id 2634E25120FD for ; Thu, 18 Aug 2016 23:49:59 +0200 (CEST) To: ML-gtk From: Krzysztof Subject: menu question Message-ID: <245bbf7d-41aa-d3d1-5c2f-eacdcbdccb81@limes.com.pl> Date: Thu, 18 Aug 2016 23:49:59 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Aug 2016 21:59:29 -0000 I'm beginning to manually set up application menu. I've done this: void SimApp::on_startup() { Glib::RefPtr appmenu = Gio::Menu::create(); Glib::RefPtr itemnew = Gio::Menu::create(); add_action("filenew", sigc::mem_fun(*this, &SimApp::on_file_menu_new)); itemnew->append("New", "filenew"); appmenu->append_submenu("File", itemnew); set_menubar(appmenu); } The "New" item under File menu is dimmed. What's missing in that code? -- Regards Krzysztof Jasienski From kj@limes.com.pl Fri Aug 19 21:56:59 2016 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp.gnome.org (Postfix) with ESMTP id 9018B76A4A for ; Fri, 19 Aug 2016 21:56:59 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.449 X-Spam-Level: X-Spam-Status: No, score=-2.449 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001, RP_MATCHES_RCVD=-0.548, SPF_PASS=-0.001] autolearn=ham Received: from smtp.gnome.org ([127.0.0.1]) by localhost (restaurant.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id xPUOGkbzMtfM for ; Fri, 19 Aug 2016 21:56:57 +0000 (UTC) Received: from deimos.limes.com.pl (deimos.limes.com.pl [193.110.228.48]) by smtp.gnome.org (Postfix) with ESMTP id 7A566766F5 for ; Fri, 19 Aug 2016 21:56:57 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by deimos.limes.com.pl (Postfix) with ESMTP id 8D1E9251215F for ; Fri, 19 Aug 2016 23:56:54 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at deimos.limes.com.pl Received: from deimos.limes.com.pl ([127.0.0.1]) by localhost (deimos.limes.com.pl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id V3EkZArCAzW4 for ; Fri, 19 Aug 2016 23:56:53 +0200 (CEST) Received: from [89.206.34.131] (host131-89-206-34.limes.com.pl [89.206.34.131]) by deimos.limes.com.pl (Postfix) with ESMTPA id CACE025120E9 for ; Fri, 19 Aug 2016 23:56:52 +0200 (CEST) Subject: Re: menu question To: ML-gtk References: <245bbf7d-41aa-d3d1-5c2f-eacdcbdccb81@limes.com.pl> From: Krzysztof Message-ID: <3be8cc32-6006-4cb5-3cbf-f5f5d2795579@limes.com.pl> Date: Fri, 19 Aug 2016 23:56:52 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 In-Reply-To: <245bbf7d-41aa-d3d1-5c2f-eacdcbdccb81@limes.com.pl> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 Aug 2016 21:56:59 -0000 I think it's solved. I changed the name of action to "app.filenew" and it works. There is another question: What to do with the warning "Gtk-WARNING **: GtkMenuBar 0x1586160 is mapped but visible=1 child_visible=1 parent gtkmm__GtkApplicationWindow 0x14c8260 mapped=0" Pozdrawiam Krzysztof Jasienski On 08/18/2016 11:49 PM, Krzysztof wrote: > I'm beginning to manually set up application menu. I've done this: > > void SimApp::on_startup() > { > Glib::RefPtr appmenu = Gio::Menu::create(); > Glib::RefPtr itemnew = Gio::Menu::create(); > > add_action("filenew", sigc::mem_fun(*this, > &SimApp::on_file_menu_new)); > itemnew->append("New", "filenew"); > appmenu->append_submenu("File", itemnew); > set_menubar(appmenu); > } > > The "New" item under File menu is dimmed. What's missing in that code? > > From jhdoubleoseven@gmail.com Thu Aug 25 18:32:58 2016 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp.gnome.org (Postfix) with ESMTP id CAD2F76BE6 for ; Thu, 25 Aug 2016 18:32:58 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.699 X-Spam-Level: X-Spam-Status: No, score=-2.699 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001] autolearn=ham Received: from smtp.gnome.org ([127.0.0.1]) by localhost (restaurant.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id PclTesxvfYI4 for ; Thu, 25 Aug 2016 18:32:57 +0000 (UTC) Received: from mail-qk0-f179.google.com (mail-qk0-f179.google.com [209.85.220.179]) by smtp.gnome.org (Postfix) with ESMTPS id A200676BA4 for ; Thu, 25 Aug 2016 18:32:57 +0000 (UTC) Received: by mail-qk0-f179.google.com with SMTP id l2so54478220qkf.3 for ; Thu, 25 Aug 2016 11:32:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to; bh=1jQCYHSwY3kx9dOanIFvgAPeVm1hQ7DBgmnsu6+dVe0=; b=h9I8jGRp/dxZ3o6TuRSM0UmnyEC2NvL73UPy7dfC/NgfAbQmuJtN0dqvVlGBqypuI+ NYnm13aXXY8p88FZL86aqIdz0PDwtqK7/fNdibZ5rwooPj4SoYRcf6qN8Ys3vEuxMQ/9 3PCDMiULgrFee+MlY4+xQ07djthhWplZfAQB2Di/yohXJyfiUi96RAnfb7PCuLMJqK9b eNPCC7UfARNLIKWFSC6v7icEe2QIqvhnJFnhekFWbZVbq2U5pUOVQ2TTV0fJWAEbwOWt AOAWURohlojkmSy1GxC5VrjOTFO3fW2sKWU5pnhmo12EJJPtiDrdrvKYYaGmkYlhVZo0 Zcfw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=1jQCYHSwY3kx9dOanIFvgAPeVm1hQ7DBgmnsu6+dVe0=; b=LR4KEUe746QWCwShkSsR0dahyEEEix67QUcxM+p/aJ4XNIn/FfHdDWBh9V77LIgNzv J7yuiKhaStizPn8uL4lxMH/XiVzPn6IDxqbBbe8meF+a40RjrZBvsmtjSwTe1DCdeKVk wrHMtorSdaWQjol5FmXgeBc9qbCqFtLCAmMOYcNq7eyXDeyzniHGvPtE04pspHoVTpWa H64r6YrRELXajz2fsssKFWo/2+/2CXYm5RXAPvt/aeZDXPq0uflGgfhR6pJ+FnOspgej Onhp2CjZkb4qqwbdCHhV0B4HgKlFfatdx27aCAvRAdAcimVauyZJhoDtJAiyGwd+EJZQ EooA== X-Gm-Message-State: AE9vXwO0GAjzAGd7bvE9rAnS/Tmz/x3iox332kQCq48tTJr8okf6n74EHmoRw78GFSOf5sZdGIRpMKh/tari/g== X-Received: by 10.55.31.41 with SMTP id f41mr11902520qkf.249.1472149975279; Thu, 25 Aug 2016 11:32:55 -0700 (PDT) MIME-Version: 1.0 Received: by 10.55.17.234 with HTTP; Thu, 25 Aug 2016 11:32:34 -0700 (PDT) From: Jim Heald Date: Thu, 25 Aug 2016 11:32:34 -0700 Message-ID: Subject: Dynamicly styling a widget To: gtk-list@gnome.org Content-Type: multipart/alternative; boundary=001a1147e268552d05053ae9a0b0 X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 25 Aug 2016 18:32:58 -0000 --001a1147e268552d05053ae9a0b0 Content-Type: text/plain; charset=UTF-8 Hi there, I'm having a rough time figuring out how I can work with colors in Gtk+. I'll provide a rundown of what I'm trying to accomplish: I'm going to have a TreeView which will have Eventboxes as children. Each eventbox will have a property called 'course-type'. Based on this property, the eventbox should have a specific background color. Here's an example of what I'm trying to mimic: http://flowcharts.calpoly.edu/downloads/mymap/15-17.52AEROBSU.ASTAEROU.pdf My eventual goal is for my program to read a JSON file containing all of the course information, displaying it, and allowing the user to drag courses between years/quarters. After they're done the data can be read back and saved into a new file, or just overwrite the existing one. However, first I need to figure out how to color my eventboxes based on the course_type property. If I could set the CSS class within the object writing the CSS to style it would be trivial; however, I don't see a way to do that. Any suggestions on how to do it or possibly a better way to implement things to make writing this program easier? Thanks! Jim --001a1147e268552d05053ae9a0b0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi there,

I'm having a rough time f= iguring out how I can work with colors in Gtk+. I'll provide a rundown = of what I'm trying to accomplish:

I'm goin= g to have a TreeView which will have Eventboxes as children.

=
Each eventbox will have a property called 'course-type'.= Based on this property, the eventbox should have a specific background col= or.=C2=A0

Here's an example of what I'm tr= ying to mimic:


<= /div>
My eventual goal is for my program to read a JSON file containing= all of the course information, displaying it, and allowing the user to dra= g courses between years/quarters. After they're done the data can be re= ad back and saved into a new file, or just overwrite the existing one.

However, first I need to figure out how to color my ev= entboxes based on the course_type property. If I could set the CSS class wi= thin the object writing the CSS to style it would be trivial; however, I do= n't see a way to do that.

Any suggestions on h= ow to do it or possibly a better way to implement things to make writing th= is program easier? Thanks!

Jim
--001a1147e268552d05053ae9a0b0-- From ennoborg@gmail.com Thu Aug 25 20:39:25 2016 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp.gnome.org (Postfix) with ESMTP id 2F50D7693F for ; Thu, 25 Aug 2016 20:39:25 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.7 X-Spam-Level: X-Spam-Status: No, score=-2.7 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001] autolearn=ham Received: from smtp.gnome.org ([127.0.0.1]) by localhost (restaurant.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ZQLr47UhZviW for ; Thu, 25 Aug 2016 20:39:24 +0000 (UTC) Received: from mail-wm0-f47.google.com (mail-wm0-f47.google.com [74.125.82.47]) by smtp.gnome.org (Postfix) with ESMTPS id 08CE4764BC for ; Thu, 25 Aug 2016 20:39:23 +0000 (UTC) Received: by mail-wm0-f47.google.com with SMTP id f65so253377761wmi.0 for ; Thu, 25 Aug 2016 13:39:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:subject:from:to:date:in-reply-to:references:mime-version :content-transfer-encoding; bh=cR0A20VImY3u6ehGUfkBTJ0Tl5ISa3u0XDPYA/pTod0=; b=uY+iO2Gm26/KW0BSidjcNzlQ5EC/AktJkwjc+Vv03ZC8x/UFVNxq2cwa5jS8XI6ZdS 56q1QQ7blYRGtsKQCSbecXwutI8E0sdKyH9R/p7N41MhwBKrI9rrCc6wS99UwQomqCIe uznPKikGzcsJ8YsMbXF4JzFtmVxAbhfS5jUbxx9rsUTCzvbuyFBGuNvdSqp/MK8IUaVE IGa9xYHBZN2ymOw664bnIEa3m8psM9hOpT3V9RtwmNDhF+1Tk86bmgdzzKBRYimSnulZ nsAwpDhad8jViNyJVnkyYSZUFEjEcXCwp3VSME1SFfencnau56ZDvmMBeU5UMA2KWcVV KfXA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:subject:from:to:date:in-reply-to :references:mime-version:content-transfer-encoding; bh=cR0A20VImY3u6ehGUfkBTJ0Tl5ISa3u0XDPYA/pTod0=; b=dU+LZCD06nJ09+uu0EvtwTxoe9+1RUuJPIw5XVgANzWvKE6EHrlbXCTaiv4NUkL/h8 NaeR1fQoeydMuPBX9qrRa/732jovHWbdVZmHPkq9uwCtR1gCnVAjcKGUJuy9JGksk3/4 jHdY2ZYSxogH1TaT3lMrCdrnisxgxkSR0S48U8bSTmJIKCgbXiVn+WHXwpbwtqytfO67 v3w0J922BEUudrOfuWlM+1xrEbDVJcUUFoKrnzh4NgjkjEFhFAtka+7S8z68Uv4tXJ00 4z0ozzfjjJnZwQymWErsxM/l8et7Z+3HTGR6mOMls2sDCEDFniiJ/Mm2cTLIULWDaXof w25Q== X-Gm-Message-State: AEkooutJC14/nzyjVug+6H+CwjB4HzBhVPh9ZNB+++fiRrUysPtj+tkvhStDSb9x2Si00g== X-Received: by 10.194.227.228 with SMTP id sd4mr9266621wjc.127.1472157561414; Thu, 25 Aug 2016 13:39:21 -0700 (PDT) Received: from [192.168.178.11] (5357B8F4.cm-6-8c.dynamic.ziggo.nl. [83.87.184.244]) by smtp.googlemail.com with ESMTPSA id c16sm17429829wme.4.2016.08.25.13.39.19 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 25 Aug 2016 13:39:19 -0700 (PDT) Message-ID: <1472157559.6782.16.camel@gmail.com> Subject: Re: Gramps 3.4.9 problem with ubuntu 16.04, which may be related to GTK 2.24.30 From: Enno Borgsteede To: Michael Torrie , gtk-list@gnome.org Date: Thu, 25 Aug 2016 22:39:19 +0200 In-Reply-To: <040af97c-8321-a653-2360-ebfdca08cb93@gmail.com> References: <57741810.5030300@gmail.com> <040af97c-8321-a653-2360-ebfdca08cb93@gmail.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.20.5 Mime-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 25 Aug 2016 20:39:25 -0000 Michael Torrie schreef op zo 14-08-2016 om 16:25 [-0600]: > On 08/14/2016 02:52 AM, Enno Borgsteede wrote: > > Do you know if this will help for Python too? It calls GTK+-2 via > > a  > > wrapper called PyGTK, I think, and I don't know whether that > > wrapper's  > > bindings look at the LD_LIBRARY_PATH variable. > > That's a good question!  I'm not sure. I assume it would since pygtk > uses some C code to connect with GTK+, which probably is linked > directly > to the GTK .so files, rather than dynamically loading them at > runtime. I found an odd thing this week, after reading a fellow Gramps user's comment about Linux versions, and that is that the problems that I have in the latest Linux Mint, ubuntu, debian, etc., do not show in openSUSE Leap or Tumbleweed, even though they run the exact same new GTK version, i.e. 2.24.30. With this config, there is no index error when I expand the last node in a tree view, nor slowing down when scrolling to the end of such a view, or seconds long freezes when I try to expand or collapse a node near the end of the view, like a group of persons with a surname near the end of the alphabet. These problems all appear in debian stretch, Mint 18, and ubuntu 16.04, and I thought they were related to the latest GTK 2. They may in fact still be related to that version, because of the way this tree view is built, but the fact is that it doesn't show on openSUSE, so I may simply convert, and forget about those other Linuxes. Cinnamon works quite well on openSUSE too, so I don need Mint for that. Anyway, knowing that I got almost no serious response on any GTK list, and I have no time to figure out how GTK 2 may work in different ways on openSUSE or those debian based other Linuxes, I think itś much easier to forget it myself, and hope that other users of those Linuxes send enough to complaints to get some things done. I will not wait any longer myself. regards, Enno From mail@ssalewski.de Fri Aug 26 07:10:25 2016 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp.gnome.org (Postfix) with ESMTP id 29D2976907 for ; Fri, 26 Aug 2016 07:10:25 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.6 X-Spam-Level: X-Spam-Status: No, score=-2.6 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7] autolearn=ham Received: from smtp.gnome.org ([127.0.0.1]) by localhost (restaurant.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id DrFpyiKxBuCl for ; Fri, 26 Aug 2016 07:10:23 +0000 (UTC) Received: from dd10024.kasserver.com (dd10024.kasserver.com [85.13.132.243]) by smtp.gnome.org (Postfix) with ESMTPS id 87E8E76767 for ; Fri, 26 Aug 2016 07:10:22 +0000 (UTC) Received: from AMD64X2.fritz.box (p5086E1EC.dip0.t-ipconnect.de [80.134.225.236]) by dd10024.kasserver.com (Postfix) with ESMTPA id 982481E203B7; Fri, 26 Aug 2016 09:10:19 +0200 (CEST) Message-ID: <1472195419.733.2.camel@ssalewski.de> Subject: Re: Dynamicly styling a widget From: Stefan Salewski To: Jim Heald , gtk-list@gnome.org Date: Fri, 26 Aug 2016 09:10:19 +0200 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.18.5.2 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Aug 2016 07:10:25 -0000 On Thu, 2016-08-25 at 11:32 -0700, Jim Heald wrote: > figuring out how I can work with colors in Gtk+ You may be not watching the app devel list? There Mr Bassi explained CSS color use recently, and I pointed to a Nim example: https://mail.gnome.org/archives/gtk-app-devel-list/2016-August/msg00021.html https://mail.gnome.org/archives/gtk-app-devel-list/2016-August/msg00020.html From mail@ssalewski.de Fri Aug 26 09:08:54 2016 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp.gnome.org (Postfix) with ESMTP id ECB40768C3 for ; Fri, 26 Aug 2016 09:08:54 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.6 X-Spam-Level: X-Spam-Status: No, score=-2.6 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7] autolearn=ham Received: from smtp.gnome.org ([127.0.0.1]) by localhost (restaurant.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id rgPevh8fmQSu for ; Fri, 26 Aug 2016 09:08:54 +0000 (UTC) Received: from dd10024.kasserver.com (dd10024.kasserver.com [85.13.132.243]) by smtp.gnome.org (Postfix) with ESMTPS id E35B276767 for ; Fri, 26 Aug 2016 09:08:53 +0000 (UTC) Received: from AMD64X2.fritz.box (p5086E1EC.dip0.t-ipconnect.de [80.134.225.236]) by dd10024.kasserver.com (Postfix) with ESMTPA id 0B25B1E20352; Fri, 26 Aug 2016 11:08:51 +0200 (CEST) Message-ID: <1472202530.2711.5.camel@ssalewski.de> Subject: Re: Dynamicly styling a widget From: Stefan Salewski To: Jim Heald , gtk-list@gnome.org Date: Fri, 26 Aug 2016 11:08:50 +0200 In-Reply-To: <1472195419.733.2.camel@ssalewski.de> References: <1472195419.733.2.camel@ssalewski.de> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.18.5.2 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Aug 2016 09:08:55 -0000 On Fri, 2016-08-26 at 09:10 +0200, Stefan Salewski wrote: > Mr Bassi explained CSS color use recently, You used the term Event box in your post. If you really refer to https://developer.gnome.org/gtk3/unstable/GtkEventBox.html you should keep in mind that that ones are not graphical elements. They are generally used to catch events for graphical widgets like labels who do not react on input events. And I am not really sure if a ThreeView matches your example diagram very well. From hrvoje.niksic@avl.com Fri Aug 26 11:43:27 2016 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp.gnome.org (Postfix) with ESMTP id 72FFD76A40 for ; Fri, 26 Aug 2016 11:43:27 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.601 X-Spam-Level: X-Spam-Status: No, score=-2.601 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001] autolearn=ham Received: from smtp.gnome.org ([127.0.0.1]) by localhost (restaurant.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id EkNQ9gaxuBKv for ; Fri, 26 Aug 2016 11:43:25 +0000 (UTC) X-Greylist: delayed 537 seconds by postgrey-1.34 at restaurant.gnome.org; Fri, 26 Aug 2016 11:43:25 UTC Received: from mailout02.rmx.de (mailout02.rmx.de [62.245.148.41]) by smtp.gnome.org (Postfix) with ESMTPS id B285876A22 for ; Fri, 26 Aug 2016 11:43:25 +0000 (UTC) Received: from cryptout01.retarus.com (unknown [172.19.21.78]) by mailout02.rmx.de (Postfix) with ESMTP id 3sLJq35KmKzP0hr for ; Fri, 26 Aug 2016 13:34:23 +0200 (CEST) Received: from cryptout01 (localhost [127.0.0.1]) by cryptout01.retarus.com (Postfix) with ESMTP id B698F2C104D for ; Fri, 26 Aug 2016 13:34:23 +0200 (CEST) Received: from mailcc14.retarus.de (mailcc14.retarus.de [172.19.21.14]) by cryptout01.retarus.com (Postfix) with SMTP id A5DC02C1045 for ; Fri, 26 Aug 2016 13:34:23 +0200 (CEST) Received: from unknown (unknown [10.12.64.115]) by kdin01 (Postfix) with SMTP id u7QBYF4K002896; Fri, 26 Aug 2016 13:34:17 +0200 (CEST) Received: from atgrzsw1693.avl01.avlcorp.lan (10.12.64.114) by ATGRZSW1694.avl01.avlcorp.lan (10.12.64.115) with Microsoft SMTP Server (TLS) id 15.0.1178.4; Fri, 26 Aug 2016 13:33:39 +0200 Received: from [10.15.192.87] (10.12.100.12) by atgrzsw1693.avl01.avlcorp.lan (10.12.64.114) with Microsoft SMTP Server id 15.0.1178.4 via Frontend Transport; Fri, 26 Aug 2016 13:33:39 +0200 Subject: Re: Dynamicly styling a widget To: References: From: Hrvoje Niksic Message-ID: Date: Fri, 26 Aug 2016 13:34:14 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit X-EXCLAIMER-MD-CONFIG: f9e74532-fb7d-4806-8539-2b9574eafa9a X-RMX-ID: 20160826-133416-u7QBYF4K002896-0@kdin01 X-RMX-TRACE: 2016-08-26 13:34:16 KdIn2013@kdin01/mailcc12 [0.2s] 20160826-133416-u7QBYF4K002896-0@kdin01 0:00:00 X-RMX-TRACE: 2016-08-26 13:34:16 RmxMSO@kdin01/mailcc31 [0.0s] 20160826-133416-u7QBYF4K002896-0@kdin01 0:00:00 X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Aug 2016 11:43:27 -0000 On 08/25/2016 08:32 PM, Jim Heald wrote: > Hi there, > > I'm having a rough time figuring out how I can work with colors in Gtk+. > I'll provide a rundown of what I'm trying to accomplish: > > I'm going to have a TreeView which will have Eventboxes as children. A tree view is not a container with children. (Technically it is a container, but only because it contains the header and bin windows.) To draw stuff in a tree view, use appropriately styled "renderers". To react to events on the tree view, catch the event on the tree view widget itself, and call gtk_tree_view_get_path_at_pos to determine where the event happened. From jhdoubleoseven@gmail.com Fri Aug 26 12:04:31 2016 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp.gnome.org (Postfix) with ESMTP id 1D62B76A3E for ; Fri, 26 Aug 2016 12:04:31 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.699 X-Spam-Level: X-Spam-Status: No, score=-2.699 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001] autolearn=ham Received: from smtp.gnome.org ([127.0.0.1]) by localhost (restaurant.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id EMHVkXxx-JGQ for ; Fri, 26 Aug 2016 12:04:29 +0000 (UTC) Received: from mail-qk0-f171.google.com (mail-qk0-f171.google.com [209.85.220.171]) by smtp.gnome.org (Postfix) with ESMTPS id 8872576A22 for ; Fri, 26 Aug 2016 12:04:29 +0000 (UTC) Received: by mail-qk0-f171.google.com with SMTP id t7so73755466qkh.1 for ; Fri, 26 Aug 2016 05:04:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=WWO7trhaOHXUpIsHzbQdNl3ZTSdItE7qD60HxCi4PXU=; b=ek9t24LZ+jbDai9lQL6j9+skwIWKWJPuqDuuB6iy0/gHzTJUoIxoJzPCiU/tlme9uZ jEfdHUGzWsvYiFiRIRpzGotZdDArrmr6Mek+6UjXCRkYLrEiV0dyFTJ9+uEvmYWNMGkq xJMCrcFMlSLZBptwCaxi8t2o+ecNsPtQHPqBdtTP9ecDwXS9Ca10G3B/JvSkg/QFG3jK lLHqG/2e8NdMxWm/jA/IFSuiOGhNbrPmpBP+tIcZ3sTJT+hkizlZEuZ+6I1xgF4pP88p cGZGFWxZOvlSupgI6kiwEgonS5mjgrOMvXENAdSjk/bIfYLc7GQt+M617CM8n47ObIKB 0jBg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=WWO7trhaOHXUpIsHzbQdNl3ZTSdItE7qD60HxCi4PXU=; b=XXZQd96yKriJvnoqr+V2Q4RwAYLRwDJR2GfTGcRXZopZY+RwPN/jOme/fhsXBKIeef OLYMV19qbH9lI7sPakCF3sc70jkDP1GovuXTbjy3VeECE7gYqLhw5le66RJMfbh/cuhv SJpHZu3FwU4LJqRdOz4daWmHRrqswd8Ft0jCWmwACML+NA0SpfOigTdLQVzP4eLaqtMP T8rU7TQXkxqQRtFzTFl8BPNH5f7GgLJ8ec7GJBAnKTbfjqxGs73ZJFSB8CDApDkq3Fvn nGdU0wDv2sXpFYfYnT6hqkJn5GFFZmZhJi6bwdd/aMyzGYBdvz0hAI27pbBtbZcWIXck nT0w== X-Gm-Message-State: AE9vXwPWeNU3PSN3CSCZoh8PKzXo1oUWlQ1hEnhe/s3MYI07dxPRBiV9h5297ivvRRYj8GiD1TKLdopo8GcYXQ== X-Received: by 10.55.31.41 with SMTP id f41mr2737326qkf.249.1472213067468; Fri, 26 Aug 2016 05:04:27 -0700 (PDT) MIME-Version: 1.0 Received: by 10.55.17.234 with HTTP; Fri, 26 Aug 2016 05:04:26 -0700 (PDT) Received: by 10.55.17.234 with HTTP; Fri, 26 Aug 2016 05:04:26 -0700 (PDT) In-Reply-To: References: From: Jim Heald Date: Fri, 26 Aug 2016 05:04:26 -0700 Message-ID: Subject: Re: Dynamicly styling a widget To: Hrvoje Niksic Content-Type: multipart/alternative; boundary=001a1147e268eb969c053af8507a Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Aug 2016 12:04:31 -0000 --001a1147e268eb969c053af8507a Content-Type: text/plain; charset=UTF-8 Hm, yeah. I don't think a treeview is what I want and I'm not entirely sure an Event Box is the way to go -- I only chose it because it can have its own background color and can hopefully respond to a double click. If I want to generate a layout that looks like the flowchart I linked to in the first post, can someone suggest how I should model it? Whatever widget I use for the tile needs to be aware of what year column it's in and what quarter sub-column, and change its state appropriately when dragged to a new place. On Aug 26, 2016 04:43, "Hrvoje Niksic" wrote: > On 08/25/2016 08:32 PM, Jim Heald wrote: > >> Hi there, >> >> I'm having a rough time figuring out how I can work with colors in Gtk+. >> I'll provide a rundown of what I'm trying to accomplish: >> >> I'm going to have a TreeView which will have Eventboxes as children. >> > > A tree view is not a container with children. (Technically it is a > container, but only because it contains the header and bin windows.) > > To draw stuff in a tree view, use appropriately styled "renderers". To > react to events on the tree view, catch the event on the tree view widget > itself, and call gtk_tree_view_get_path_at_pos to determine where the event > happened. > > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > https://mail.gnome.org/mailman/listinfo/gtk-list > --001a1147e268eb969c053af8507a Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

Hm, yeah. I don't think a treeview is what I want and I&= #39;m not entirely sure an Event Box is the way to go -- I only chose it be= cause it can have its own background color and can hopefully respond to a d= ouble click.

If I want to generate a layout that looks like the flowchart= I linked to in the first post, can someone suggest how I should model it? = Whatever widget I use for the tile needs to be aware of what year column it= 's in and what quarter sub-column, and change its state appropriately w= hen dragged to a new place.


On Aug 26, 2016 0= 4:43, "Hrvoje Niksic" <hrvoje.niksic@avl.com> wrote:
On 08/25/2016 08:32 PM, Jim Heald wrote:
Hi there,

I'm having a rough time figuring out how I can work with colors in Gtk+= .
I'll provide a rundown of what I'm trying to accomplish:

I'm going to have a TreeView which will have Eventboxes as children.

A tree view is not a container with children. (Technically it is a containe= r, but only because it contains the header and bin windows.)

To draw stuff in a tree view, use appropriately styled "renderers"= ;. To react to events on the tree view, catch the event on the tree view wi= dget itself, and call gtk_tree_view_get_path_at_pos to determine where the = event happened.

_______________________________________________
gtk-list mailing list
gtk-list@gnome.org<= /a>
https://mail.gnome.org/mailman/listinfo/gtk-lis= t
--001a1147e268eb969c053af8507a-- From iofelben@gmail.com Fri Aug 26 17:56:26 2016 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp.gnome.org (Postfix) with ESMTP id 094E876767 for ; Fri, 26 Aug 2016 17:56:26 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.699 X-Spam-Level: X-Spam-Status: No, score=-2.699 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001] autolearn=ham Received: from smtp.gnome.org ([127.0.0.1]) by localhost (restaurant.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Gjx-zQdNXt6o for ; Fri, 26 Aug 2016 17:56:24 +0000 (UTC) Received: from mail-qt0-f181.google.com (mail-qt0-f181.google.com [209.85.216.181]) by smtp.gnome.org (Postfix) with ESMTPS id 6A9EE763ED for ; Fri, 26 Aug 2016 17:56:24 +0000 (UTC) Received: by mail-qt0-f181.google.com with SMTP id 93so41702154qtg.2 for ; Fri, 26 Aug 2016 10:56:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=e5OoqdK2WC8IqtGT/jxWzFdjp6ElDn80SVknqdRZu0Y=; b=c9jCthSIJ5aOLROTbwHFvxR8mdpkW/zTYvyOThmrVdafplpxxWxi1LEcVvWzi44lGo 3CBZmOwFJTX8MfR+gSPRT2cDnO1frw01LIjufN+S+TAOHKJOCI4qqGz15erNdEhy+ouN HWGHsQkHekY2yCnueuqjchMVZisdiMLdSxZzmoq4iD8rvx7TOW0YJdSPNdoeeaizS6tZ dtJWvJ2jl+tYtBqP/BHYEijMKBSyj71h0PmjgpR+txzvH3WxgPBkrL/clG728uRGHUFi ocRX7CncG5n/m3DzP5VpLREVS0Eqbqi0GpLYfpzN06WmdldLorfhb4Lv/Cb+lkiQkSpR FV0w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=e5OoqdK2WC8IqtGT/jxWzFdjp6ElDn80SVknqdRZu0Y=; b=haE28t4xajBsCCbhRK1H3U7Lr831FjgFR/To5jAkzDup0iZoFsIrTN1OttRfuzETtf Q8hLuhz9OeTK9BcpS+uvTn3ZAuh/lNT3qAOSGAmfrPuKU9TZrKoZ/SezEzXiU3Z8qUCC ynQrSk5883cIZdanVRKzhV/izyJBU0qZq/6kgR5xY7XMFqA1Zukj7aYYJPqSh5aKuIsK DhT1rNJzzc3g9Q0PDaV9mzHtW7iiCb4SBJMc4xeNdNwAfrHHu4rCUHZp7A1zHClnffQH 6AL1cs2cMCTReG1xtCmnpybhsVgXlB/jvH0MSDFUp8ptst/ib5ODiXQXc6mubi7ZUCd6 2MCw== X-Gm-Message-State: AE9vXwNcJbxJHhJ/cXeaUc8DTuqRgFDLNTQ8/PK+DJUYjpuSRXSSIjjKKo8cR9VzmQONdwK99jA5SMArhIj8mA== X-Received: by 10.237.33.111 with SMTP id 102mr4921722qtc.56.1472234182628; Fri, 26 Aug 2016 10:56:22 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Ben Iofel Date: Fri, 26 Aug 2016 17:56:11 +0000 Message-ID: Subject: Re: Dynamicly styling a widget To: Jim Heald , Hrvoje Niksic Content-Type: multipart/alternative; boundary=94eb2c0c7d227b5b67053afd3b49 Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Aug 2016 17:56:26 -0000 --94eb2c0c7d227b5b67053afd3b49 Content-Type: text/plain; charset=UTF-8 I think you want a GtkGrid On Fri, Aug 26, 2016, 8:04 AM Jim Heald wrote: > Hm, yeah. I don't think a treeview is what I want and I'm not entirely > sure an Event Box is the way to go -- I only chose it because it can have > its own background color and can hopefully respond to a double click. > > If I want to generate a layout that looks like the flowchart I linked to > in the first post, can someone suggest how I should model it? Whatever > widget I use for the tile needs to be aware of what year column it's in and > what quarter sub-column, and change its state appropriately when dragged to > a new place. > > On Aug 26, 2016 04:43, "Hrvoje Niksic" wrote: > >> On 08/25/2016 08:32 PM, Jim Heald wrote: >> >>> Hi there, >>> >>> I'm having a rough time figuring out how I can work with colors in Gtk+. >>> I'll provide a rundown of what I'm trying to accomplish: >>> >>> I'm going to have a TreeView which will have Eventboxes as children. >>> >> >> A tree view is not a container with children. (Technically it is a >> container, but only because it contains the header and bin windows.) >> >> To draw stuff in a tree view, use appropriately styled "renderers". To >> react to events on the tree view, catch the event on the tree view widget >> itself, and call gtk_tree_view_get_path_at_pos to determine where the event >> happened. >> >> _______________________________________________ >> gtk-list mailing list >> gtk-list@gnome.org >> https://mail.gnome.org/mailman/listinfo/gtk-list >> > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > https://mail.gnome.org/mailman/listinfo/gtk-list > --94eb2c0c7d227b5b67053afd3b49 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

I think you want a GtkGrid


On Fri, Aug 26, 2016, 8:04 = AM Jim Heald <jhdoubleoseven= @gmail.com> wrote:

Hm, yeah. I don't think a treeview is what I want and I'm = not entirely sure an Event Box is the way to go -- I only chose it because = it can have its own background color and can hopefully respond to a double = click.

If I want to generate a layout that looks like the flowchart= I linked to in the first post, can someone suggest how I should model it? = Whatever widget I use for the tile needs to be aware of what year column it= 's in and what quarter sub-column, and change its state appropriately w= hen dragged to a new place.


On Aug 26, 2016 0= 4:43, "Hrvoje Niksic" <hrvoje.niksic@avl.com> wrote:
On 08/25/2016 08:32 PM, Jim Heald wrot= e:
Hi there,

I'm having a rough time figuring out how I can work with colors in Gtk+= .
I'll provide a rundown of what I'm trying to accomplish:

I'm going to have a TreeView which will have Eventboxes as children.

A tree view is not a container with children. (Technically it is a containe= r, but only because it contains the header and bin windows.)

To draw stuff in a tree view, use appropriately styled "renderers"= ;. To react to events on the tree view, catch the event on the tree view wi= dget itself, and call gtk_tree_view_get_path_at_pos to determine where the = event happened.

_______________________________________________
gtk-list mailing list
gtk-list@gnome.org<= /a>
https://mail.gnome.org/mailman/listinfo/gtk-list=
_______________________________________________
gtk-list mailing list
gtk-list@gnome.org<= /a>
https://mail.gnome.org/mailman/listinfo/gtk-list=
--94eb2c0c7d227b5b67053afd3b49-- From jhdoubleoseven@gmail.com Sat Aug 27 17:13:31 2016 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp.gnome.org (Postfix) with ESMTP id 0C6CC76A66 for ; Sat, 27 Aug 2016 17:13:31 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.699 X-Spam-Level: X-Spam-Status: No, score=-2.699 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001] autolearn=ham Received: from smtp.gnome.org ([127.0.0.1]) by localhost (restaurant.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id RHBdD1M1pczr for ; Sat, 27 Aug 2016 17:13:30 +0000 (UTC) Received: from mail-qk0-f180.google.com (mail-qk0-f180.google.com [209.85.220.180]) by smtp.gnome.org (Postfix) with ESMTPS id 0427F76A43 for ; Sat, 27 Aug 2016 17:13:29 +0000 (UTC) Received: by mail-qk0-f180.google.com with SMTP id z190so104418938qkc.0 for ; Sat, 27 Aug 2016 10:13:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=7Se0p5OVb7+ry7mRoVEDkO6KrY6b8gkg9LMwnWVVLF0=; b=BWOnGfYpsmmq0Ug8moGWcQbETtXxRsJ3dVuVcbRDSnvlzSBSQOsbYRQVkm9MKbwaL8 b3EmIYdz0sDdr9uhuQZbRnk/UGrB/CXZglBJFnIXYXSfeEtOOc3OOZ1zwSYS6chiRAt/ TFUOOv77HeKUqA9Uz/5aFD3VKoxGCJEjMceMFkURZgXXu1YeMXUnmfWedn/IqHelGudx C7na+Je4cJHxV9ngtHQath7u5LPYhM2mj/mLbxl6zY5VZEnDNa8W6OLwEUg2DdaL8qM4 vOb3PPvWJTbGJuX5qMa2eCQj5zq7EFtUcHpGkOFebc4lbS345jzNCD7W1WPc04Z9mHEm 7NfA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=7Se0p5OVb7+ry7mRoVEDkO6KrY6b8gkg9LMwnWVVLF0=; b=Tr7JTfstzNy83BIC4LMuFtUtuOSv8V82wRKoX8p82ltcPaSCDghkox72cpbU6ClcMk EdMYrJNmy1GGV+vcImX/VWjf/+pFeIoKiItfeBrjBaOL8Rfqq1g8QdLgVs6BDMtYA/Vv AMbFcaRWmnn2eD9k9xe4GhH3Y5Zi+hysCu3D57PB/UAeLDUJX6n/vZVrrgyen6UASamW eWxa5huGDX4UTc4U5O9Gzsw9aE9Dyn6lGH2dygSLflnH7IK0WpYHMvaW4i86PRkDS/aO 8wEb5jWM9CSxN2jBrCtdfLmwxa7I+G5fdRa3oRsFSK+WXF9mDZOrbRHG0MFMNEDG4dqh YiTg== X-Gm-Message-State: AE9vXwMd+SleKwljZOHgMpHZnT2y4U8kyvnC25i3sLk3E9ZhInndEacJhkNKH/Er+oBoj6fNlU5Tmvjzh2jQhw== X-Received: by 10.55.18.1 with SMTP id c1mr9562324qkh.138.1472318007578; Sat, 27 Aug 2016 10:13:27 -0700 (PDT) MIME-Version: 1.0 Received: by 10.55.17.234 with HTTP; Sat, 27 Aug 2016 10:13:26 -0700 (PDT) Received: by 10.55.17.234 with HTTP; Sat, 27 Aug 2016 10:13:26 -0700 (PDT) In-Reply-To: References: From: Jim Heald Date: Sat, 27 Aug 2016 10:13:26 -0700 Message-ID: Subject: Drag and drop widgets To: gtk-list@gnome.org Content-Type: multipart/alternative; boundary=001a11470088d698d9053b10bf1c X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 27 Aug 2016 17:13:31 -0000 --001a11470088d698d9053b10bf1c Content-Type: text/plain; charset=UTF-8 Hi, First, sorry if this has been asked before -- I don't know how to search the mailing list. I'm trying to figure out how I can drag and drop widgets between boxes. My end goal is I have 20 boxes as possible drag targets and the boxes are initially populated with Gtk.Frames that you can drag between the boxes to reorganize. For a simple example, let's assume we have a grid. Within this grid are two boxes. In one box I have a button, and the grid columns are homogenous so I see a button and free area. I want to be able to drag the button from one box to the other, and move it. I tried to set up one box as a drag source and the other as a drop area but I was unable to get it to work. Can someone briefly explain the theory behind drag and drop and the process to make my example workable? Or link me to where this has already been done :) I am doing my project in Python so preferably explain it in terms of objects and methods -- i.e. I'd prefer not to look through C code but I'm willing to decipher and convert if necessary. Thank you very much! Jim --001a11470088d698d9053b10bf1c Content-Type: text/html; charset=UTF-8

Hi,

First, sorry if this has been asked before -- I don't know how to search the mailing list.

I'm trying to figure out how I can drag and drop widgets between boxes. My end goal is I have 20 boxes as possible drag targets and the boxes are initially populated with Gtk.Frames that you can drag between the boxes to reorganize.

For a simple example, let's assume we have a grid. Within this grid are two boxes. In one box I have a button, and the grid columns are homogenous so I see a button and free area.

I want to be able to drag the button from one box to the other, and move it.

I tried to set up one box as a drag source and the other as a drop area but I was unable to get it to work.

Can someone briefly explain the theory behind drag and drop and the process to make my example workable? Or link me to where this has already been done :)

I am doing my project in Python so preferably explain it in terms of objects and methods -- i.e. I'd prefer not to look through C code but I'm willing to decipher and convert if necessary.

Thank you very much!

Jim

--001a11470088d698d9053b10bf1c-- From pelzflorian@pelzflorian.de Sun Aug 28 04:53:08 2016 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp.gnome.org (Postfix) with ESMTP id 0ADD976936 for ; Sun, 28 Aug 2016 04:53:08 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.237 X-Spam-Level: X-Spam-Status: No, score=-2.237 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RP_MATCHES_RCVD=-0.236, SPF_PASS=-0.001] autolearn=ham Received: from smtp.gnome.org ([127.0.0.1]) by localhost (restaurant.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id AQ5Y1CbdiQ-O for ; Sun, 28 Aug 2016 04:53:06 +0000 (UTC) Received: from mail.pelzflorian.de (pelzflorian.de [5.45.111.108]) by smtp.gnome.org (Postfix) with ESMTPS id 2E73C7692F for ; Sun, 28 Aug 2016 04:53:05 +0000 (UTC) Received: from [192.168.178.26] (ip5f58ab8e.dynamic.kabel-deutschland.de [95.88.171.142]) by mail.pelzflorian.de (Postfix) with ESMTPSA id 6033336006B for ; Sun, 28 Aug 2016 06:53:03 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=pelzflorian.de; s=mail; t=1472359983; bh=U8lU8v0f+cKLBLVuld3NshnoWq4zWkner5F8Iv6MZ2A=; h=Subject:To:References:From:Date:In-Reply-To; b=I2LNrxpV0DKhhkKODdRqICELv9BiricH42eOsNA5jIQBsbUfrICpCHrob+TRkJtVU +e9EiCxpqQueZKXtBBlx94lbiKdgwH9GA2czPu6ka/kSWzRmgC26nggLbHIWW3L0/X uXt/pcI20/6fP44oJ9iSA617wVdyEzqSfz587af8= Subject: Re: Drag and drop widgets To: gtk-list@gnome.org References: From: "pelzflorian (Florian Pelz)" Message-ID: <18fa18f8-aacd-6f95-8119-88f1a454fb6d@pelzflorian.de> Date: Sun, 28 Aug 2016 06:53:02 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Icedove/45.2.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 28 Aug 2016 04:53:08 -0000 Hi, There is GDL but I have no experience with it: https://git.gnome.org/browse/gdl/ It is what Anjuta uses. Regards, Florian Pelz From jhdoubleoseven@gmail.com Sun Aug 28 23:06:16 2016 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp.gnome.org (Postfix) with ESMTP id CCB5476A05 for ; Sun, 28 Aug 2016 23:06:16 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.699 X-Spam-Level: X-Spam-Status: No, score=-2.699 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001] autolearn=ham Received: from smtp.gnome.org ([127.0.0.1]) by localhost (restaurant.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id K8stSB0KdHUl for ; Sun, 28 Aug 2016 23:06:16 +0000 (UTC) Received: from mail-qk0-f177.google.com (mail-qk0-f177.google.com [209.85.220.177]) by smtp.gnome.org (Postfix) with ESMTPS id E7A8A769E7 for ; Sun, 28 Aug 2016 23:06:15 +0000 (UTC) Received: by mail-qk0-f177.google.com with SMTP id v123so123260614qkh.2 for ; Sun, 28 Aug 2016 16:06:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=oXGctRq3krDvy1YOtD6Uk88MOADTPPs1V18xg+k2pP8=; b=S3Q7Wanb1LK4vX6W9AqJ4d+MLOEkcMbk/6V0RLxwr0ZJUttRsjwiO7ii7UtwufhXIR UVDb20iMHytT8ua4yaVwox4OjtRTqRWrkVdL57GuK6JB+JtDN7kHYdRW3JQqQyRv3leg p1dF/qO7VqDnLb9fNZhTmxYh41v7lDmwypIF5ZPrC0Rn4FX9I5x8i3qR7wWWHyBkeozj zPyM96/m8Lr4ricr9akgXHgq2QKdQArwyFLgqF/AvXwJ4EaJspwIsMLPl2aGG2APddt3 AeaerTcyT1HSS0st8XWdlQPnDFZz4HwwAGVV1Z7+MpXAiHC2TPqd5KzTZezztijV/D14 rBfg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=oXGctRq3krDvy1YOtD6Uk88MOADTPPs1V18xg+k2pP8=; b=ASv4J8acZ7D3mg+UmgB0x+CYfygpGLJaYeCRKoznFFHWwbRPXS9Z9ZDIsnd8Ivieg/ rtQzaYVSWh7t0NPBF7xExXgHNbP4twtHBgXxECNvrI4doQQY7qa7O7T8YCujG1c6J0bA hBisjo109QWSk36a1+07Z/2MbVo6XKUPQo6/ylQ8rKIqBBlDKiuDGdbBNBpIusXwHF+Z zKl57r0YmMdlfLyKDCY1x2K2af0iF2J1eWo7NFxA0YmOkuEQt1yrIptj5jgYIjT3PTKN OESgXxGQlaqraRXmF2YWF84hfXdel8Bj+URxyBETOOB457SStQ8hMwcXnIpjcflLV6zJ lj9Q== X-Gm-Message-State: AE9vXwMw4MG+DEktjQSQimOvByacl1g+p1GXsr8DTDYnBukWb2wGbODtW2ikipODBeY3qQUk93Jx9gi3XcREWg== X-Received: by 10.55.17.132 with SMTP id 4mr15193044qkr.67.1472425573638; Sun, 28 Aug 2016 16:06:13 -0700 (PDT) MIME-Version: 1.0 Received: by 10.55.17.234 with HTTP; Sun, 28 Aug 2016 16:05:53 -0700 (PDT) In-Reply-To: <18fa18f8-aacd-6f95-8119-88f1a454fb6d@pelzflorian.de> References: <18fa18f8-aacd-6f95-8119-88f1a454fb6d@pelzflorian.de> From: Jim Heald Date: Sun, 28 Aug 2016 16:05:53 -0700 Message-ID: Subject: Re: Drag and drop widgets To: "pelzflorian (Florian Pelz)" Content-Type: multipart/alternative; boundary=001a1146f5ea4666dd053b29cb74 Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 28 Aug 2016 23:06:16 -0000 --001a1146f5ea4666dd053b29cb74 Content-Type: text/plain; charset=UTF-8 Hm, this might be what I'm looking for! Thank you very much! On Sat, Aug 27, 2016 at 9:53 PM, pelzflorian (Florian Pelz) < pelzflorian@pelzflorian.de> wrote: > Hi, > > There is GDL but I have no experience with it: > > https://git.gnome.org/browse/gdl/ > > It is what Anjuta uses. > > Regards, > Florian Pelz > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > https://mail.gnome.org/mailman/listinfo/gtk-list > --001a1146f5ea4666dd053b29cb74 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hm, this might be what I'm looking for! Thank you very= much!

On Sa= t, Aug 27, 2016 at 9:53 PM, pelzflorian (Florian Pelz) &l= t;pelzflori= an@pelzflorian.de> wrote:
H= i,

There is GDL but I have no experience with it:

https://git.gnome.org/browse/gdl/

It is what Anjuta uses.

Regards,
Florian Pelz
_______________________________________________
gtk-list mailing list
gtk-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-lis= t

--001a1146f5ea4666dd053b29cb74-- From jhdoubleoseven@gmail.com Sun Aug 28 23:24:12 2016 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp.gnome.org (Postfix) with ESMTP id C7B6A76A07 for ; Sun, 28 Aug 2016 23:24:12 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.699 X-Spam-Level: X-Spam-Status: No, score=-2.699 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001] autolearn=ham Received: from smtp.gnome.org ([127.0.0.1]) by localhost (restaurant.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id CdWy7RE-ul37 for ; Sun, 28 Aug 2016 23:24:11 +0000 (UTC) Received: from mail-qk0-f177.google.com (mail-qk0-f177.google.com [209.85.220.177]) by smtp.gnome.org (Postfix) with ESMTPS id D054F769E7 for ; Sun, 28 Aug 2016 23:24:11 +0000 (UTC) Received: by mail-qk0-f177.google.com with SMTP id z190so123438475qkc.0 for ; Sun, 28 Aug 2016 16:24:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=Z3Z9P6HbmzQq5+tnnRAsJSqdiHRM4SJLQ6FqzDerqcg=; b=XvW1Rhtnr4bMyuM4KkUaiIXJZPocTpoDXQ3Q6t2OvgcMUM3Zxoxfmr2yxnxaMMJXxm 7f32dpFWjYfaeAAw129teFqep4kXf+T13vNq8MSW6AQvBBYFQdQhmyY4kjb29mPSkCNY m3fVOPSZQY0/8KCf/ySOYv0DHTVWMF0Yisx8Tv3Ey+bHTR+hudrsgm72yedfv/gzrwG4 wq8e2283Bi5w+NdiYIJaxfJ/xT2ggb9TYdgLgCiH96bKwdxNJSuBJDiAY2krVzZq7xK7 5SXYWZGxlOfotnzpiQg6DYbu5p5iSPBwSWvghOdTIqYb5LDZ8bakmIAQW6ZTYLB5OkI5 JDMA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=Z3Z9P6HbmzQq5+tnnRAsJSqdiHRM4SJLQ6FqzDerqcg=; b=jY41C+tPSm+3VNxlW7G9rp5RD+l5+YkYiBm0fCjRCNzNhsShVXzItQuM8wjL6IiyYk 2d9wz6WsskHJ4ZmUeoSAPQm0LUkwaJ483JmtZgu1u2qREbaZ/MEohR1rjkC5t3Xdm9ph 3yAuV+OtT5OJFYxCCDAKHDarJHFPxp2kZWVaNINgqOe5FjXxWlW1b2Clyuevx2E72Auc Fd13SJwZD2d/BWl5nQ1RDQi6xKxX6FqQjW/nMmXmRqgZB1/6xMRQUiU+kr818lm7BftI d5cQciDsqc5Wd7+75I/2uNugIX4jvMnCc8mBCJmQ0TV4E7qMRGuOWqxiIZueMKaOciTd itMg== X-Gm-Message-State: AE9vXwPlI0Mz8jkTg9sYmTatNf1bAdpNKhgCd+A5zqC+E9dvlBMsW+h7n64nGNIAw6vrizFM7lPACw7haaO7eA== X-Received: by 10.55.31.41 with SMTP id f41mr15782884qkf.249.1472426649776; Sun, 28 Aug 2016 16:24:09 -0700 (PDT) MIME-Version: 1.0 Received: by 10.55.17.234 with HTTP; Sun, 28 Aug 2016 16:23:49 -0700 (PDT) In-Reply-To: References: <18fa18f8-aacd-6f95-8119-88f1a454fb6d@pelzflorian.de> From: Jim Heald Date: Sun, 28 Aug 2016 16:23:49 -0700 Message-ID: Subject: Re: Drag and drop widgets To: "pelzflorian (Florian Pelz)" Content-Type: multipart/alternative; boundary=001a1147e2686af7dd053b2a0b55 Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 28 Aug 2016 23:24:12 -0000 --001a1147e2686af7dd053b2a0b55 Content-Type: text/plain; charset=UTF-8 So the only problem with this is the Gdl doesn't seem to be implemented in Python unfortunately. Any other ideas? On Sun, Aug 28, 2016 at 4:05 PM, Jim Heald wrote: > Hm, this might be what I'm looking for! Thank you very much! > > On Sat, Aug 27, 2016 at 9:53 PM, pelzflorian (Florian Pelz) < > pelzflorian@pelzflorian.de> wrote: > >> Hi, >> >> There is GDL but I have no experience with it: >> >> https://git.gnome.org/browse/gdl/ >> >> It is what Anjuta uses. >> >> Regards, >> Florian Pelz >> _______________________________________________ >> gtk-list mailing list >> gtk-list@gnome.org >> https://mail.gnome.org/mailman/listinfo/gtk-list >> > > --001a1147e2686af7dd053b2a0b55 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
So the only problem with this is the Gdl doesn't seem = to be implemented in Python unfortunately. Any other ideas?

On Sun, Aug 28, 2016 at 4:0= 5 PM, Jim Heald <jhdoubleoseven@gmail.com> wrote:
=
Hm, this might be what I= 9;m looking for! Thank you very much!

On Sat, A= ug 27, 2016 at 9:53 PM, pelzflorian (Florian Pelz) <pelzflorian@p= elzflorian.de> wrote:
Hi,
There is GDL but I have no experience with it:

https://git.gnome.org/browse/gdl/

It is what Anjuta uses.

Regards,
Florian Pelz
_______________________________________________
gtk-list mailing list
gtk-list@gnome.org<= /a>
https://mail.gnome.org/mailman/listinfo/gtk-lis= t


--001a1147e2686af7dd053b2a0b55-- From ntd@entidi.it Mon Aug 29 15:37:42 2016 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp.gnome.org (Postfix) with ESMTP id 25FE276A4B for ; Mon, 29 Aug 2016 15:37:42 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -1.9 X-Spam-Level: X-Spam-Status: No, score=-1.9 tagged_above=-999 required=2 tests=[BAYES_00=-1.9] autolearn=ham Received: from smtp.gnome.org ([127.0.0.1]) by localhost (restaurant.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ky96LNfpiqXv for ; Mon, 29 Aug 2016 15:37:39 +0000 (UTC) X-Greylist: delayed 401 seconds by postgrey-1.34 at restaurant.gnome.org; Mon, 29 Aug 2016 15:37:39 UTC Received: from mail.entidi.it (entidi.com [212.239.57.120]) by smtp.gnome.org (Postfix) with ESMTPS id 0128276A1A for ; Mon, 29 Aug 2016 15:37:38 +0000 (UTC) Received: (qmail 21857 invoked from network); 29 Aug 2016 17:30:54 +0200 Received: from sede.entidi.it (HELO iota.entidi.lan) (88.149.182.35) by microcamera.com with (AES256-SHA encrypted) SMTP; 29 Aug 2016 17:30:54 +0200 Date: Mon, 29 Aug 2016 17:30:53 +0200 From: Nicola Fontana To: Jim Heald Subject: Re: Drag and drop widgets Message-ID: <20160829173053.276dc1fd@iota.entidi.lan> In-Reply-To: References: <18fa18f8-aacd-6f95-8119-88f1a454fb6d@pelzflorian.de> Organization: eNTiDi X-Mailer: Claws Mail 3.14.0 (GTK+ 2.24.30; x86_64-unknown-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Aug 2016 15:37:42 -0000 Il Sun, 28 Aug 2016 16:23:49 -0700 Jim Heald scrisse: > So the only problem with this is the Gdl doesn't seem to be implemented in > Python unfortunately. Any other ideas? I do not use python but, from the configure.in of GDL [1], it seems GObject introspection support is available. This, together with PyGI [2], means GDL should be callable from Python. [1] https://git.gnome.org/browse/gdl/tree/configure.in?id=f3de14fe3962c84775d18d7dc26418830be982a4#n149 [2] https://wiki.gnome.org/action/show/Projects/PyGObject Ciao. -- Nicola From jhdoubleoseven@gmail.com Wed Aug 31 00:02:43 2016 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp.gnome.org (Postfix) with ESMTP id D0F0576A0F for ; Wed, 31 Aug 2016 00:02:43 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.439 X-Spam-Level: X-Spam-Status: No, score=-2.439 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, HTML_OBFUSCATE_05_10=0.26, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001] autolearn=ham Received: from smtp.gnome.org ([127.0.0.1]) by localhost (restaurant.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id dttvEUCR9EgM for ; Wed, 31 Aug 2016 00:02:42 +0000 (UTC) Received: from mail-qk0-f182.google.com (mail-qk0-f182.google.com [209.85.220.182]) by smtp.gnome.org (Postfix) with ESMTPS id D08F17697B for ; Wed, 31 Aug 2016 00:02:42 +0000 (UTC) Received: by mail-qk0-f182.google.com with SMTP id z190so35955394qkc.0 for ; Tue, 30 Aug 2016 17:02:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to; bh=qd8OdS7Gkl919zVqSkcANg88pGwxN5pocP/lUZkDLwA=; b=PvYPoOQv4XlroOtrQFdX8tuDKj4WU+Edvm0eS/NpA0NOsEyK1N+oS282gUeX3FGkEQ SzsDZ5rRUJEN1qcrSUftZJeHPi7x3t2ush6SCQBAXWpOE8Csu2pI91z5jK159igAE+iW IRl2RPuJ+wVBxh+c6k70ZE7y6xjKguXvcg0fxf/mceOOZq5RcECx1TXlN6t5G3qxsI5C ZWuVQdnpKfnf/vcbEjSLlX8algVx9SGHay+491q/vaFKlIdrWB3HHTP2yeG0/rKtn1V+ 297eRCzI3Rour6khSi8GWf6gkDAe0hfrRXQv6++ZqnQvsVPdi4psoMMEqQrSNa6J65OA YaWA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=qd8OdS7Gkl919zVqSkcANg88pGwxN5pocP/lUZkDLwA=; b=IglmAmTRjc6JqLiNMYk+ymVhBAyHAU1slzkIw8X/rAwjFqpGdqpGa6oWQQ71wW6iD5 fHrhUZKjAfRbGY3aflFDG5N3xDHqHq9DOYy0xr56wuD8gIAJBm43rNTLQ5G9kBPGT89N bA69fiVmbn+mS9vJkw52uP7e7c8n/0mSq+AAYD3HMEABVQmjBAFcM1bEf+crjy5UCWdz iLGI30AkunV6pl3KzUt14B5RJVPralZ65g5gj/ZkUO034ACcaKxfAyvC1DkZpzFDyGrf T5jYtUefToPNgRe1mAuTb+ptN4JBSGaeC3+Fjjn86a6n865xV8yKrGhsLKLofar5h/D0 ikdQ== X-Gm-Message-State: AE9vXwMV3PM3a1ShLMKR7d3dhMOjLPE9xTqUglFF5DwW+rL6tsK9AM/mq1o9xgvQjsdfLl2HFp4s7PYBHvmKFw== X-Received: by 10.55.76.204 with SMTP id z195mr8210296qka.184.1472601760490; Tue, 30 Aug 2016 17:02:40 -0700 (PDT) MIME-Version: 1.0 Received: by 10.55.17.234 with HTTP; Tue, 30 Aug 2016 17:02:20 -0700 (PDT) From: Jim Heald Date: Tue, 30 Aug 2016 17:02:20 -0700 Message-ID: Subject: Parent receiving child's button press event To: gtk-list@gnome.org Content-Type: multipart/alternative; boundary=001a114a7b5cd47915053b52d078 X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Aug 2016 00:02:44 -0000 --001a114a7b5cd47915053b52d078 Content-Type: text/plain; charset=UTF-8 Hello, I have a grid set up where some event boxes are attached. Each eventbox (which we'll call a column) contains a box with children (which we'll call tiles) that are also eventboxes. What I want is for right clicking a tile to produce one menu (Edit/Delete) whereas right clicking an empty space produces another (which would be Add). I set this up and connected the signals, but when I right click a tile it produces both the Add menu *and* the Edit/Delete menu. Therefore, my problem is that right clicking a tile *also* sends the button-press signal to the column. My question is what would be the best way to filter these events to ensure the parent isn't receiving its childrens' events? I.e. how can I either prevent the parent from receiving a signal from the child or possibly in the handler for a column make sure there's no tile at the coordinates of the click event? Thanks! Jim --001a114a7b5cd47915053b52d078 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hello,

I have a grid set up where some = event boxes are attached. Each eventbox (which we'll call a column) con= tains a box with children (which we'll call tiles) that are also eventb= oxes.=C2=A0

What I want is for right clicking a ti= le to produce one menu (Edit/Delete) whereas right clicking an empty space = produces another (which would be Add). I set this up and connected the sign= als, but when I right click a tile it produces both the Add menu and= =C2=A0the Edit/Delete menu.

Therefore, my problem = is that right clicking a tile also=C2=A0sends the button-press signa= l to the column.=C2=A0

My question is what would b= e the best way to filter these events to ensure the parent isn't receiv= ing its childrens' events? I.e. how can I either prevent the parent fro= m receiving a signal from the child or possibly in the handler for a column= make sure there's no tile at the coordinates of the click event?
=

Thanks!

Jim
--001a114a7b5cd47915053b52d078-- From paul@linuxaudiosystems.com Wed Aug 31 00:05:52 2016 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp.gnome.org (Postfix) with ESMTP id 528B076A86 for ; Wed, 31 Aug 2016 00:05:52 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -1.9 X-Spam-Level: X-Spam-Status: No, score=-1.9 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001] autolearn=ham Received: from smtp.gnome.org ([127.0.0.1]) by localhost (restaurant.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id nfSwVzGMMpMH for ; Wed, 31 Aug 2016 00:05:50 +0000 (UTC) Received: from mail-yw0-f177.google.com (mail-yw0-f177.google.com [209.85.161.177]) by smtp.gnome.org (Postfix) with ESMTPS id D100976A69 for ; Wed, 31 Aug 2016 00:05:50 +0000 (UTC) Received: by mail-yw0-f177.google.com with SMTP id z8so21482595ywa.1 for ; Tue, 30 Aug 2016 17:05:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxaudiosystems-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=anuY4UgjN0N7ZEjlF1KcUFM4hVr7aXNurPLvYY1POUE=; b=HvOBBVfqChfiphT7TwpVhN1M2CnajLMbggDHFi01ZmmVogxxNnIh28rHGV5rwOYIM9 CtVbc4u5qKCyc5tKMI8HI9BfhQEG6aK/XDu1zLsAWse18023fizcor35CI8W2yVigyyf q2ZMTIp4y0PvgmlYxEwdw1VfzOGkU2GCH+L6mX51uGhLFEi4Kzf+fMW/5mgk/wZhgZne PQn+FNgbEhOO/lklKVreFIvh5v57BifGuXs4aoGHUld1/Wzmh8IWUxJYRtKi/mMgyzVc ooRKE86PF0sZa7DnoEWnJWq1/ObKM4yUAdvmFmP9yBcl6KyM4O/9rP8dHfV4Z/HZr/5S km8g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=anuY4UgjN0N7ZEjlF1KcUFM4hVr7aXNurPLvYY1POUE=; b=j8PWLFe99dIlJfgahsDjsZ6ufTH60CYe+dnL4B5YaP4Fie5dQtbNmgPxGZgQH/hVQz FkqAeCxi3yavIpKI00KjSWgz4oXATgYLgZD7wRyzTH2qjkqr3t4/CCyNCxknr0DJ4Pcl 4ZXdGLWUi38TCkPDuHpz2wFaAPgkLIPFuteZd48t7yNktVwFXSZ+LylfdFfWvT1OVG41 AGlDb08auINXdXExqZj1UKkUGLj2YywB90SB4relTsX7yumgQet3ptyB2Ejwvd3pbEcK jOrNSR6FCSxxnF6uzF+ubd262AurLYr0RQKOK3kZ10beKnKSzAG0dFr0r6pxMCd7Mp/2 WSVg== X-Gm-Message-State: AE9vXwOz7GCrjCn036FvkJfw6LOkGE3XQskDojPbx6PUflUxrq+sQbGDAaG73JSEU+MkOIViw5hml3Zvo3e65g== X-Received: by 10.129.124.66 with SMTP id x63mr6035196ywc.202.1472601948736; Tue, 30 Aug 2016 17:05:48 -0700 (PDT) MIME-Version: 1.0 Received: by 10.37.17.199 with HTTP; Tue, 30 Aug 2016 17:05:48 -0700 (PDT) In-Reply-To: References: From: Paul Davis Date: Tue, 30 Aug 2016 20:05:48 -0400 Message-ID: Subject: Re: Parent receiving child's button press event To: Jim Heald Content-Type: multipart/alternative; boundary=001a114946880cfe4e053b52dc32 Cc: ML-gtk X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Aug 2016 00:05:52 -0000 --001a114946880cfe4e053b52dc32 Content-Type: text/plain; charset=UTF-8 the child should have its own handler, and that handler should return TRUE. this wil stop propagation up the widget tree. On Tue, Aug 30, 2016 at 8:02 PM, Jim Heald wrote: > Hello, > > I have a grid set up where some event boxes are attached. Each eventbox > (which we'll call a column) contains a box with children (which we'll call > tiles) that are also eventboxes. > > What I want is for right clicking a tile to produce one menu (Edit/Delete) > whereas right clicking an empty space produces another (which would be > Add). I set this up and connected the signals, but when I right click a > tile it produces both the Add menu *and* the Edit/Delete menu. > > Therefore, my problem is that right clicking a tile *also* sends the > button-press signal to the column. > > My question is what would be the best way to filter these events to ensure > the parent isn't receiving its childrens' events? I.e. how can I either > prevent the parent from receiving a signal from the child or possibly in > the handler for a column make sure there's no tile at the coordinates of > the click event? > > Thanks! > > Jim > > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > https://mail.gnome.org/mailman/listinfo/gtk-list > > --001a114946880cfe4e053b52dc32 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
the child should have its own handler, and that handler sh= ould return TRUE. this wil stop propagation up the widget tree.

On Tue, Aug 30, 201= 6 at 8:02 PM, Jim Heald <jhdoubleoseven@gmail.com> wr= ote:
Hello,

I have a grid set up where some event boxes are attached. Each event= box (which we'll call a column) contains a box with children (which we&= #39;ll call tiles) that are also eventboxes.=C2=A0

What I want is for right clicking a tile to produce one menu (Edit/Delete)= whereas right clicking an empty space produces another (which would be Add= ). I set this up and connected the signals, but when I right click a tile i= t produces both the Add menu and=C2=A0the Edit/Delete menu.

Therefore, my problem is that right clicking a tile als= o=C2=A0sends the button-press signal to the column.=C2=A0
My question is what would be the best way to filter these event= s to ensure the parent isn't receiving its childrens' events? I.e. = how can I either prevent the parent from receiving a signal from the child = or possibly in the handler for a column make sure there's no tile at th= e coordinates of the click event?

Thanks!

Jim

_______________________________________________
gtk-list mailing list
gtk-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-lis= t


--001a114946880cfe4e053b52dc32-- From jhdoubleoseven@gmail.com Wed Aug 31 00:48:58 2016 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp.gnome.org (Postfix) with ESMTP id BDF987697B for ; Wed, 31 Aug 2016 00:48:58 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.699 X-Spam-Level: X-Spam-Status: No, score=-2.699 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001] autolearn=ham Received: from smtp.gnome.org ([127.0.0.1]) by localhost (restaurant.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id OlB_TOHnIMvz for ; Wed, 31 Aug 2016 00:48:57 +0000 (UTC) Received: from mail-qk0-f174.google.com (mail-qk0-f174.google.com [209.85.220.174]) by smtp.gnome.org (Postfix) with ESMTPS id 49F53766F6 for ; Wed, 31 Aug 2016 00:48:57 +0000 (UTC) Received: by mail-qk0-f174.google.com with SMTP id t7so36720836qkh.1 for ; Tue, 30 Aug 2016 17:48:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=OWfWKLUuY3llNhepYa9hIKh6g1mXXp93LfUNSw2kj+g=; b=TC8DN4OD+I59sAtIAuyvy2IaiS0v5tSORHK4cARqAhKYbcieWykOoltQ477r930n9E GSv8b4891vftpcfNLgD4+J9GvRd0r0ZjhjQqh7nh7v19JOe7WG/GfEwHgoMoXQwREYNP TIHz7709FhzDlQlLy8LE76nXsAM2xR9NhWKGv+HnmCzyXb9DDBryIm5kX1hrzqBKw5GK DGuatia6PdFByiyNWs9/F7OA8SWDhlpfa1m+Ae517fZK32ZjWS3ZxdCMnJGxTXLiqwsC nQa+UHN31F+AJORN+HzSCp8tBRO88Xe9+Yi9xiuSN/i/Xelgf7ngFRx+2KtUFYFW63St qaRA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=OWfWKLUuY3llNhepYa9hIKh6g1mXXp93LfUNSw2kj+g=; b=TFc/VWOVtSYCvw7vxLEpRw5uqnMpYY/kWTTNJ4aNlcZJ6Tgqcngrhl0PHrlw2A5DDn n8iHc05ASzeVizw3uFW1TNKLAidhLs8YD8Bd2/mFrTf5rSVX4d9M/drt0nzpmMooPBV8 JVMGkowDvjbgRgBPu6d/UgSozwWmHl5SLDAMOHJQ1jUMlcf6mqiPnYUB75wDAog/JKL6 P+OxKaE9JrtxJ731T2FzhYUunzAPgJjFqGk43yr0UceL4xosFludCKyn6lV2JlUc6tza UUYL/D+XO4oHqH/oeuY/g62RuNA+q6lN2rpkkKfy8YC3sNkxAWXYDviz7v2z7UedjZu4 hG9A== X-Gm-Message-State: AE9vXwN9u/EaECakkY1j2NXMsr4TU06RR4oEep8eLHsH5XkupFMGSof0axQ6HrILG2p6gvSg0wuSbm4zRmhNYA== X-Received: by 10.55.201.27 with SMTP id q27mr7637241qki.162.1472604535153; Tue, 30 Aug 2016 17:48:55 -0700 (PDT) MIME-Version: 1.0 Received: by 10.55.17.234 with HTTP; Tue, 30 Aug 2016 17:48:34 -0700 (PDT) In-Reply-To: References: From: Jim Heald Date: Tue, 30 Aug 2016 17:48:34 -0700 Message-ID: Subject: Re: Parent receiving child's button press event To: Paul Davis Content-Type: multipart/alternative; boundary=001a1149af68366a77053b537621 Cc: ML-gtk X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Aug 2016 00:48:58 -0000 --001a1149af68366a77053b537621 Content-Type: text/plain; charset=UTF-8 Thank you so much! It's literally these return True things that keep throwing me off. Do you have a suggestion of somewhere I can read about all of these conventions? I also discovered my custom quit function needed to return True if I wanted to abort the window being destroyed and it's making me realize I need to gain a deeper understanding of the GObject system. Thanks again! On Tue, Aug 30, 2016 at 5:05 PM, Paul Davis wrote: > the child should have its own handler, and that handler should return > TRUE. this wil stop propagation up the widget tree. > > On Tue, Aug 30, 2016 at 8:02 PM, Jim Heald > wrote: > >> Hello, >> >> I have a grid set up where some event boxes are attached. Each eventbox >> (which we'll call a column) contains a box with children (which we'll call >> tiles) that are also eventboxes. >> >> What I want is for right clicking a tile to produce one menu >> (Edit/Delete) whereas right clicking an empty space produces another (which >> would be Add). I set this up and connected the signals, but when I right >> click a tile it produces both the Add menu *and* the Edit/Delete menu. >> >> Therefore, my problem is that right clicking a tile *also* sends the >> button-press signal to the column. >> >> My question is what would be the best way to filter these events to >> ensure the parent isn't receiving its childrens' events? I.e. how can I >> either prevent the parent from receiving a signal from the child or >> possibly in the handler for a column make sure there's no tile at the >> coordinates of the click event? >> >> Thanks! >> >> Jim >> >> _______________________________________________ >> gtk-list mailing list >> gtk-list@gnome.org >> https://mail.gnome.org/mailman/listinfo/gtk-list >> >> > --001a1149af68366a77053b537621 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Thank you so much! It's literally these return True th= ings that keep throwing me off.

Do you have a suggestion= of somewhere I can read about all of these conventions? I also discovered = my custom quit function needed to return True if I wanted to abort the wind= ow being destroyed and it's making me realize I need to gain a deeper u= nderstanding of the GObject system.

Thanks again!<= /div>

On Tue= , Aug 30, 2016 at 5:05 PM, Paul Davis <paul@linuxaudiosystems.com= > wrote:
t= he child should have its own handler, and that handler should return TRUE. = this wil stop propagation up the widget tree.

On Tue, Aug 30= , 2016 at 8:02 PM, Jim Heald <jhdoubleoseven@gmail.com> wrote:
Hello,

I have a grid set up where s= ome event boxes are attached. Each eventbox (which we'll call a column)= contains a box with children (which we'll call tiles) that are also ev= entboxes.=C2=A0

What I want is for right clicking = a tile to produce one menu (Edit/Delete) whereas right clicking an empty sp= ace produces another (which would be Add). I set this up and connected the = signals, but when I right click a tile it produces both the Add menu and= =C2=A0the Edit/Delete menu.

Therefore, my prob= lem is that right clicking a tile also=C2=A0sends the button-press s= ignal to the column.=C2=A0

My question is what wou= ld be the best way to filter these events to ensure the parent isn't re= ceiving its childrens' events? I.e. how can I either prevent the parent= from receiving a signal from the child or possibly in the handler for a co= lumn make sure there's no tile at the coordinates of the click event?

Thanks!
Jim

_______________________________________________
gtk-list mailing list
gtk-list@gnome.org<= /a>
https://mail.gnome.org/mailman/listinfo/gtk-lis= t



--001a1149af68366a77053b537621-- From ntd@entidi.it Wed Aug 31 06:43:30 2016 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp.gnome.org (Postfix) with ESMTP id 72E50765AE for ; Wed, 31 Aug 2016 06:43:30 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -1.9 X-Spam-Level: X-Spam-Status: No, score=-1.9 tagged_above=-999 required=2 tests=[BAYES_00=-1.9] autolearn=ham Received: from smtp.gnome.org ([127.0.0.1]) by localhost (restaurant.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id HwL55yth0hTM for ; Wed, 31 Aug 2016 06:43:28 +0000 (UTC) Received: from mail.entidi.it (entidi.com [212.239.57.120]) by smtp.gnome.org (Postfix) with ESMTPS id 96CCA762AD for ; Wed, 31 Aug 2016 06:43:26 +0000 (UTC) Received: (qmail 4111 invoked from network); 31 Aug 2016 08:43:22 +0200 Received: from sede.entidi.it (HELO iota.entidi.lan) (88.149.182.35) by etistudio.it with (AES256-SHA encrypted) SMTP; 31 Aug 2016 08:43:22 +0200 Date: Wed, 31 Aug 2016 08:43:21 +0200 From: Nicola Fontana To: Jim Heald Subject: Re: Parent receiving child's button press event Message-ID: <20160831084321.0c874c30@iota.entidi.lan> In-Reply-To: References: Organization: eNTiDi X-Mailer: Claws Mail 3.14.0 (GTK+ 2.24.30; x86_64-unknown-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: ML-gtk , Paul Davis X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Aug 2016 06:43:30 -0000 Il Tue, 30 Aug 2016 17:48:34 -0700 Jim Heald scrisse: > Thank you so much! It's literally these return True things that keep > throwing me off. > > Do you have a suggestion of somewhere I can read about all of these > conventions? > ... They are not conventions, they are documented behavior: just pay attention to the signal documentation. In your specific case you probably connected a callback to the "button-press-event" signal. Citing the relevant documentation [1]: Returns: TRUE to stop other handlers from being invoked for the event. FALSE to propagate the event further. I think this is respected for all "*-event" signals. [1] https://developer.gnome.org/gtk3/stable/GtkWidget.html#GtkWidget-button-press-event Ciao. -- Nicola From mail@baedert.org Wed Aug 31 07:39:38 2016 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp.gnome.org (Postfix) with ESMTP id 41F46765AE for ; Wed, 31 Aug 2016 07:39:38 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.002 X-Spam-Level: X-Spam-Status: No, score=-2.002 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] autolearn=ham Received: from smtp.gnome.org ([127.0.0.1]) by localhost (restaurant.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 3dxwv0-F84rP for ; Wed, 31 Aug 2016 07:39:36 +0000 (UTC) Received: from baedersonline.de (delorean.baedersonline.de [84.38.64.56]) by smtp.gnome.org (Postfix) with ESMTPS id E1A95762AD for ; Wed, 31 Aug 2016 07:39:35 +0000 (UTC) Received: by baedersonline.de (Postfix, from userid 1006) id 6643EB0131; Wed, 31 Aug 2016 09:39:33 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=baedert.org; s=mail; t=1472629173; bh=MdjPVN2x8VYJcq11HEVVCz/TALalZkH0YnXVlL3mReQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=r3U+BTsiviZMPiPCBh2MrtyPp6QOzmCK+IN9AOSnTXR+dRtK6WoUyYMg1ln2XrVGv /Q7F0LoEItsyBf0vIqozKC0ItUGVuJhdYrbZgIGCejuWSmhl9P8ClL+ukSm8liccPI tIoxNCnGN7lJvHrjGdKrVxNkIb1TFMH1wnu/1vyg= Received: from localhost (x5f722018.dyn.telefonica.de [95.114.32.24]) by baedersonline.de (Postfix) with ESMTPA id 51A62B006F; Wed, 31 Aug 2016 09:39:32 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=baedert.org; s=mail; t=1472629172; bh=MdjPVN2x8VYJcq11HEVVCz/TALalZkH0YnXVlL3mReQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=kd9Lpo6wmdQ7Ki7rs5Zdg1F9Jgs45ndmwCdInrSSZpmC+Kn2Uun9p+hxUp4MTUcSn Zfavhu9lCZuOxLsfLIn5P3bmemEYCx0HxYEmZAOnq/XcB+afnEVTIVN9I15oInCtQe N4NvFknaZxOAhrwWHw99v4YdcxJl06riJMKp1Q1g= Date: Wed, 31 Aug 2016 09:40:35 +0200 From: Timm =?iso-8859-1?Q?B=E4der?= To: Nicola Fontana Subject: Re: Parent receiving child's button press event Message-ID: <20160831074035.GA6213@aleroth> References: <20160831084321.0c874c30@iota.entidi.lan> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20160831084321.0c874c30@iota.entidi.lan> User-Agent: Mutt/1.7.0 (2016-08-17) Cc: Paul Davis , ML-gtk X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Aug 2016 07:39:38 -0000 On 31.08, Nicola Fontana wrote: > Il Tue, 30 Aug 2016 17:48:34 -0700 Jim Heald scrisse: > > > Thank you so much! It's literally these return True things that keep > > throwing me off. > > > > Do you have a suggestion of somewhere I can read about all of these > > conventions? > > ... > > They are not conventions, they are documented behavior: just pay > attention to the signal documentation. In your specific case you > probably connected a callback to the "button-press-event" signal. > Citing the relevant documentation [1]: > > Returns: TRUE to stop other handlers from being invoked for > the event. FALSE to propagate the event further. > > I think this is respected for all "*-event" signals. > > [1] https://developer.gnome.org/gtk3/stable/GtkWidget.html#GtkWidget-button-press-event > > Ciao. > -- > Nicola Only some of the docs for these signals have been updated, but please use GDK_EVENT_PROPAGATE or GDK_EVENT_STOP instead. Same for mainloop sources, where you should use G_SOURCE_CONTINUE and G_SOURCE_REMOVE.