From igor.gorbounov@gmail.com Wed Oct 7 06:12:32 2015 Return-Path: X-Original-To: gtkmm-list@gnome.org Delivered-To: gtkmm-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by restaurant.gnome.org (Postfix) with ESMTP id 482A576CA2 for ; Wed, 7 Oct 2015 06:12:32 +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 restaurant.gnome.org ([127.0.0.1]) by localhost (restaurant.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id jqkGNm888ODY for ; Wed, 7 Oct 2015 06:12:31 +0000 (UTC) Received: from mail-wi0-f182.google.com (mail-wi0-f182.google.com [209.85.212.182]) by restaurant.gnome.org (Postfix) with ESMTP id 4A43C76C67 for ; Wed, 7 Oct 2015 06:12:30 +0000 (UTC) Received: by wicgb1 with SMTP id gb1so195252144wic.1 for ; Tue, 06 Oct 2015 23:12:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=ncwMlaRjqo1yNfNWxlPQZzEtiQ+yyYarEGMbgN87jgE=; b=piRoB60dXYroeQ+VBIxqaJG+5pdK/pAIEOjWVsNS1dri5JzpQdhy0+sn0alYA9zh10 Wj/mvYzcfe1BkMkl/Nv7PwFqpx0Igjiz735fYPnhVBoyH7/j23ZWNBZNA0FMZcKIeZUi p+4GkCNOha9kwz72wrkx2uA4WRD143p/xfRAn8iwvBvAkCMg1mqWCEcBlmzY44pQQv/H AjwN3sS9I5azRxMbc0UvFCNqHno9u8Komxp6sfQ6sAcH8NdOvNZPxLVbIg9z3OdpYJsJ 56zvVZ4Z8tEAfEM2vToi5jdp2/Z6xt/vg7amKG0c/k34BJvh0XDdyIrDSK5ahuihZDr1 KGrA== MIME-Version: 1.0 X-Received: by 10.194.58.40 with SMTP id n8mr48428805wjq.134.1444198349189; Tue, 06 Oct 2015 23:12:29 -0700 (PDT) Received: by 10.27.128.85 with HTTP; Tue, 6 Oct 2015 23:12:29 -0700 (PDT) Date: Wed, 7 Oct 2015 09:12:29 +0300 Message-ID: Subject: Toolbar buttons and text From: =?UTF-8?B?0JjQs9C+0YDRjCDQk9C+0YDQsdGD0L3QvtCy?= To: gtkmm-list@gnome.org Content-Type: multipart/alternative; boundary=047d7ba96dfe96bcf905217da16e X-BeenThere: gtkmm-list@gnome.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: gtkmm general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Oct 2015 06:12:32 -0000 --047d7ba96dfe96bcf905217da16e Content-Type: text/plain; charset=UTF-8 Hi All! I've tried the main menu example from https://developer.gnome.org/gtkmm-tutorial/stable/sec-menus-examples.html.en. In my case those toolbar buttons appear without labels that are shown in the example. Neither of toolbar buttons in my whole Fedora 22 system have toolbar buttons labels, too. I've launched this example in windows XP - there buttons are also without text. What should be done to show those button labels? --047d7ba96dfe96bcf905217da16e Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi All!
I've tried the main menu ex= ample from https://developer.gnome.org/gtkmm-tutorial/stable/= sec-menus-examples.html.en. In my case those toolbar buttons appear wit= hout labels that are shown in the example. Neither of toolbar buttons in my= whole Fedora 22 system have toolbar buttons labels, too. I've launched= this example in windows XP - there buttons are also without text.
What should be done to show those button labels?
--047d7ba96dfe96bcf905217da16e-- From kjell.ahlstedt@bredband.net Thu Oct 8 08:59:27 2015 Return-Path: X-Original-To: gtkmm-list@gnome.org Delivered-To: gtkmm-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by restaurant.gnome.org (Postfix) with ESMTP id 67D73764B3 for ; Thu, 8 Oct 2015 08:59:27 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -1.901 X-Spam-Level: X-Spam-Status: No, score=-1.901 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001] autolearn=ham Received: from restaurant.gnome.org ([127.0.0.1]) by localhost (restaurant.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id LTDqIaAEgyfu for ; Thu, 8 Oct 2015 08:59:26 +0000 (UTC) Received: from smtprelay-h21.telenor.se (smtprelay-h21.telenor.se [195.54.99.196]) by restaurant.gnome.org (Postfix) with ESMTP id AB778763D9 for ; Thu, 8 Oct 2015 08:59:24 +0000 (UTC) Received: from ipb4.telenor.se (ipb4.telenor.se [195.54.127.167]) by smtprelay-h21.telenor.se (Postfix) with ESMTP id C3BB9D9A9 for ; Thu, 8 Oct 2015 10:59:22 +0200 (CEST) X-SMTPAUTH-B2: [kjell.ahlstedt@bredband.net] X-SENDER-IP: [85.229.144.197] X-LISTENER: [smtp.bredband.net] X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A2AmCACzLxZWPMWQ5VUNURwBAQGDXG6tAJBHAQGBZCOCcIIKfwKCAA8BAQEBAQEBBgEBAQFBhGYBAQEDIw8BBUABEAkCGgIFFgsCAgkDAgECATEUBg0IAQGILwiQYJxFcZQyAQEBAQEBAQMBAQEBAQEYBIEihVGEfoUNB4JpgUUBBJYIhRiJVpYyg285AQEBhCtvAYdrAQEB X-IPAS-Result: A2AmCACzLxZWPMWQ5VUNURwBAQGDXG6tAJBHAQGBZCOCcIIKfwKCAA8BAQEBAQEBBgEBAQFBhGYBAQEDIw8BBUABEAkCGgIFFgsCAgkDAgECATEUBg0IAQGILwiQYJxFcZQyAQEBAQEBAQMBAQEBAQEYBIEihVGEfoUNB4JpgUUBBJYIhRiJVpYyg285AQEBhCtvAYdrAQEB X-IronPort-AV: E=Sophos;i="5.17,654,1437429600"; d="scan'208";a="74185261" Received: from c-c590e555.06-203-73746f44.cust.bredbandsbolaget.se (HELO [192.168.1.64]) ([85.229.144.197]) by ipb4.telenor.se with ESMTP; 08 Oct 2015 10:59:23 +0200 Subject: Re: Toolbar buttons and text To: =?UTF-8?B?0JjQs9C+0YDRjCDQk9C+0YDQsdGD0L3QvtCy?= References: From: Kjell Ahlstedt Message-ID: <56163069.1020308@bredband.net> Date: Thu, 8 Oct 2015 10:59:21 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Cc: gtkmm-list@gnome.org X-BeenThere: gtkmm-list@gnome.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: gtkmm general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Oct 2015 08:59:27 -0000 Den 2015-10-07 kl. 08:12, skrev Игорь Горбунов: > Hi All! > I've tried the main menu example from > https://developer.gnome.org/gtkmm-tutorial/stable/sec-menus-examples.html.en. > In my case those toolbar buttons appear without labels that are shown > in the example. Neither of toolbar buttons in my whole Fedora 22 > system have toolbar buttons labels, too. I've launched this example in > windows XP - there buttons are also without text. > What should be done to show those button labels? > There is not much you can do, except using older code. The screenshot in the page you link to was saved when most programs used gtk+'s stock items. Stock items are deprecated now. Most programs now show toolbar items and buttons with either text or an icon, but not both. Confusingly, the screenshot and the code in your link are not in sync. The screenshot is older than the code. The corresponding unstable page shows what you can expect to see now: https://developer.gnome.org/gtkmm-tutorial/unstable/sec-menus-examples.html.en Kjell From gcgg-gtkmm-list@m.gmane.org Sun Oct 11 16:00:14 2015 Return-Path: X-Original-To: gtkmm-list@gnome.org Delivered-To: gtkmm-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by restaurant.gnome.org (Postfix) with ESMTP id AE04F76990 for ; Sun, 11 Oct 2015 16:00:14 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.611 X-Spam-Level: X-Spam-Status: No, score=-2.611 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, HK_RANDOM_ENVFROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01] autolearn=ham Received: from restaurant.gnome.org ([127.0.0.1]) by localhost (restaurant.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 8jLbAJsh4uVu for ; Sun, 11 Oct 2015 16:00:12 +0000 (UTC) Received: from plane.gmane.org (plane.gmane.org [80.91.229.3]) by restaurant.gnome.org (Postfix) with ESMTP id 943D476962 for ; Sun, 11 Oct 2015 16:00:12 +0000 (UTC) Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1ZlJ2a-0004bc-Qe for gtkmm-list@gnome.org; Sun, 11 Oct 2015 18:00:04 +0200 Received: from pd4b9da17.dip0.t-ipconnect.de ([212.185.218.23]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 11 Oct 2015 18:00:04 +0200 Received: from matteo by pd4b9da17.dip0.t-ipconnect.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 11 Oct 2015 18:00:04 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: gtkmm-list@gnome.org From: Matteo Settenvini Subject: Re: Implementing swap() Date: Sun, 11 Oct 2015 16:15:05 +0200 Lines: 232 Message-ID: <87612dlceu.fsf@member.fsf.org> References: <1441919480.29979.10.camel@murrayc.com> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: pd4b9da17.dip0.t-ipconnect.de User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) Cancel-Lock: sha1:1I1D1mdWEPbZQsPU+0pnix7ailY= X-BeenThere: gtkmm-list@gnome.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: gtkmm general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Oct 2015 16:00:14 -0000 --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Murray Cumming writes: > Now that our Glib::Objects and Gtk::Widgets are movable, so they can be > placed in standard containers, I guess we should implement swap() so the > standard containers can use that too. And maybe it's just generally good > practice to provide a swap() for all classes. Stop me at this point if > I'm wrong about that. > Correct. > We already have swap() for our boxed type classes, such as Gdk::Color. > We implement a member swap(): > > void Color::swap(Color& other) noexcept > { > GdkColor *const temp =3D gobject_; > gobject_ =3D other.gobject_; > other.gobject_ =3D temp; > } > For the sake of readability, can be simplified by using std::swap for these pointers. Then it's just a one liner. > At the moment we are using the member swap in our move assignment > operator and copy assignment operators (operator=3D): > > Color& Color::operator=3D(Color&& other) noexcept > { > Color temp(other); > swap(temp); > return *this; > } > > Color& Color::operator=3D(const Color& other) > { > Color temp(other); > swap(temp); > return *this; > } It is usually better, albeit slightly harder to read, to pass in this case the object by value and let the compiler create the temporary. Color& Color::operator=3D(const Color other) { swap(other); return *this; } This sometimes produces slightly faster code (saves one indirection), and it's shorter. Also note, if the member swap is noexcept, also this version should be. > > The member swap() is obviously useful for those operator=3D() > implementations, though I guess swap(*this, temp) would work too. > But the member swap() isn't inline so our standalone swap() isn't as > efficient as it could be. > > So: > Should we make our member swap() methods inline? One problem of course, is when you want to provide swap() as a virtual function, because the class is part of a hyerarchy and it needs to call its superclass swap() method. Then it cannot be inlined anyway. I'd say the compiler is smart enough to inline what it needs to without us telling it explicitly what to do. > Should we not have member swap() methods and just use our standalone > swap() functions? No, if we don't want them all be friends of the class in question (admitted that they need access to private fields). > > And, should we implement swap() using std::swap() on the member > variables, or even std::move() on the member variables? It depends. If everything is noexcept, I'd say it's quite the same. If something can throw an exception, it needs to be done by e.g. swapping tuples, so that it is guaranteed that the object is not left in an inconsistent state. For instance, this is dangerous [1]: void C::swap(C& that) { using std::swap; // needed to allow Koenig lookup rules to apply swap(this->a, that.a); swap(this->b, that.b); // throws swap(this->c, that.c); } Then when catching the exception, "this" and "that" will have had their first member swapped, but not the other two fields. In this case, I would write a small templated monad that does a try/catch at each computation step, and rolls back changes in case of a throw (and then rethrows). It's not hard to do, and makes the code much more robust (although with a bit of lambdas in the way). It would be equivalent to the verbose version: void C::swap(C& that) { using std::swap; std::swap(a, that.a); try { std::swap(b, that.b); try { swap(c, that.c); } catch(...) { swap(b, that.b); throw; } } catch(...) { swap(a, that.a); throw; } } This is not perfect, as there is no guaranteed that the swap will not be asymmetric and throw while rolling back, but it's better than the first version. More complex solutions are possible. Cheers, Matteo [1] Full example showing the problem: =2D----------- %< ----------------- %< --------------------- #include #include #include #include namespace ns { class Throwing { public: Throwing() =3D default; Throwing(const Throwing&) { throw std::runtime_error(""); } }; class Swapper { public: int a; Throwing b; int c; void swap(Swapper& that) { using std::swap; auto t1 =3D std::tie(a, b, c); auto t2 =3D std::tie(that.a, that.b, that.c); swap(t1, t2); }=09 }; =20=20=20=20=20=20=20=20 } // ~ namespace ns; namespace std { template<> void swap(::ns::Swapper& a, ::ns::Swapper& b) noexcept(noexcept(a.swap(b))) { a.swap(b); } } int=20 main() { ns::Swapper a, b; a.a =3D a.c =3D 1;=20 b.a =3D b.c =3D 2; try { std::swap(a, b); } catch(std::runtime_error&) { std::cout << "(" << a.a << ", " << a.c << ") vs. " << "(" << b.a << ", " << b.c << ")" << std::endl; } } =2D----------- %< ----------------- %< --------------------- --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJWGm7pAAoJEIV2zBrZfULfjk4P/2As1GPicbRtTaKDXrsRQ8re LZevVooPFivz/ayK0kuDLGHE2nSXk9aouoJIIhyIk5xTqM47OjkzNfula0PWr5K6 e5bzpQ7UhihhN0AOLaPUHIbp+Wv2kGJepW36klZ0juNquoaHNg65aA9X3yl23nz8 Mlwvo9XywO3ojj2RcoxYYafaEH1YnyqPJqcLgr6sQd4t1EzOFZzo7BRA3AclC25O bUTAGaWk47qQS4dtob8VtdFGE9pOVLT2dBa/PK3GpS1CJr8XEja25Il2mpMxH0y5 ghH3FTdHkpMMhB0zFoSkXVMME17affQ1xJXJ9Ceaz+auWiAnEkKJ1MWPjO2XKlNj dAoEBKu6/wkwAika8VXSTLbP5ZzvkNUntHFPtl+DuCo8RJ5UzSdCjtU3W935mYPe AaPRGqXUtiYwBRA/nI+HGoDiVwvHiF6xAqDrN5IaNIwMUlhSqgc7xETYvghfeb0G Y9N7lWLdpECb/TY8wR9JkAeQfBdbJ9VVKwzStuhODn/vnrPQzGTzUmRx4XEbS4wN QuST3DXTvm6xTR567oiWyDfCRwzf8qp47LbG5CAAW4XCPgLxqqbqGj/yQIXakfm9 HfoWlsHwdMVcB6M78zEketvQKQL0f0dy4Av2T3ZIYpd+052M2vj5n0FValf4cnBt PtRCv52d17MZtUtx+aZI =NUCo -----END PGP SIGNATURE----- --=-=-=-- From gcgg-gtkmm-list@m.gmane.org Mon Oct 12 11:25:48 2015 Return-Path: X-Original-To: gtkmm-list@gnome.org Delivered-To: gtkmm-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by restaurant.gnome.org (Postfix) with ESMTP id E332276A43 for ; Mon, 12 Oct 2015 11:25:48 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: 0.552 X-Spam-Level: X-Spam-Status: No, score=0.552 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, FSL_HELO_BARE_IP_2=1.999, HK_RANDOM_ENVFROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_NUMERIC_HELO=1.164, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01] autolearn=no Received: from restaurant.gnome.org ([127.0.0.1]) by localhost (restaurant.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id twJQ9A6YZXJc for ; Mon, 12 Oct 2015 11:25:48 +0000 (UTC) Received: from plane.gmane.org (plane.gmane.org [80.91.229.3]) by restaurant.gnome.org (Postfix) with ESMTP id 526C376A36 for ; Mon, 12 Oct 2015 11:25:46 +0000 (UTC) Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1ZlbEd-0004v8-9q for gtkmm-list@gnome.org; Mon, 12 Oct 2015 13:25:43 +0200 Received: from 80.69.207.115 ([80.69.207.115]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 12 Oct 2015 13:25:43 +0200 Received: from matteo by 80.69.207.115 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 12 Oct 2015 13:25:43 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: gtkmm-list@gnome.org From: Matteo Settenvini Subject: Re: Implementing swap() Date: Mon, 12 Oct 2015 13:25:36 +0200 Lines: 124 Message-ID: <87zizo1g7j.fsf@yatta.de> References: <1441919480.29979.10.camel@murrayc.com> <87612dlceu.fsf@member.fsf.org> Mime-Version: 1.0 Content-Type: text/plain X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 80.69.207.115 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) Cancel-Lock: sha1:J7fQgfeKCfRbZcimtCIe6BGTalc= Cc: Murray Cumming X-BeenThere: gtkmm-list@gnome.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: gtkmm general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Oct 2015 11:25:49 -0000 Matteo Settenvini writes: > Murray Cumming writes: > >> And, should we implement swap() using std::swap() on the member >> variables, or even std::move() on the member variables? > > It depends. If everything is noexcept, I'd say it's quite the same. If > something can throw an exception, it needs to be done by e.g. swapping > tuples, so that it is guaranteed that the object is not left in an > inconsistent state. For instance, this is dangerous [1]: > > void C::swap(C& that) > { > using std::swap; // needed to allow Koenig lookup rules to apply > swap(this->a, that.a); > swap(this->b, that.b); // throws > swap(this->c, that.c); > } > > Then when catching the exception, "this" and "that" will have had their > first member swapped, but not the other two fields. > I wanted to follow up my previous post with a simpler solution using variadic templates. This makes relatively easy to implement a safer version of swap with rollback semantics. Code follows. Cheers, Matteo #include #include #include #include inline void safer_swap () { return; } template inline void safer_swap (T& a, T& b, Rest... cdr) { using std::swap; swap (a, b); try { safer_swap (cdr...); } catch (...) { swap (a, b); throw; } } namespace ns { class Throwing { public: Throwing() = default; Throwing(const Throwing&) { throw std::runtime_error(""); } }; class Swapper { public: int a; Throwing b; int c; void swap(Swapper& that) { safer_swap (a, that.a, b, that.b, c, that.c); } }; } // ~ namespace ns; namespace std { template<> void swap(::ns::Swapper& a, ::ns::Swapper& b) noexcept(noexcept(a.swap(b))) { a.swap(b); } } int main() { ns::Swapper a, b; a.a = a.c = 1; b.a = b.c = 2; try { std::swap(a, b); } catch(std::runtime_error&) { std::cout << "(" << a.a << ", " << a.c << ") vs. " << "(" << b.a << ", " << b.c << ")" << std::endl; } } From kasper.peeters@phi-sci.com Mon Oct 12 20:57:04 2015 Return-Path: X-Original-To: gtkmm-list@gnome.org Delivered-To: gtkmm-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by restaurant.gnome.org (Postfix) with ESMTP id A48907625B for ; Mon, 12 Oct 2015 20:57:04 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -1.911 X-Spam-Level: X-Spam-Status: No, score=-1.911 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01] autolearn=ham Received: from restaurant.gnome.org ([127.0.0.1]) by localhost (restaurant.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id atzqLAb_Vy1R for ; Mon, 12 Oct 2015 20:57:03 +0000 (UTC) Received: from mail.phi-sci.com (mail.phi-sci.com [78.31.107.13]) by restaurant.gnome.org (Postfix) with ESMTP id 7090E7624D for ; Mon, 12 Oct 2015 20:57:03 +0000 (UTC) Received: from tigger (host86-181-137-156.range86-181.btcentralplus.com [86.181.137.156]) by mail.phi-sci.com (Postfix) with ESMTPSA id EBD4059E2CA; Mon, 12 Oct 2015 21:55:39 +0100 (BST) Date: Mon, 12 Oct 2015 21:57:31 +0100 From: Kasper Peeters To: Murray Cumming Subject: Re: display PDF in gtkmm app Message-ID: <20151012215731.058f5d8e@tigger> In-Reply-To: <1443262047.18310.8.camel@murrayc.com> References: <20150925111556.5dfef5c1@klug> <1443262047.18310.8.camel@murrayc.com> X-Mailer: Claws Mail 3.11.1 (GTK+ 2.24.23; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: gtkmm-list@gnome.org X-BeenThere: gtkmm-list@gnome.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: gtkmm general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Oct 2015 20:57:04 -0000 > I use libevince-view (evince-view-3.0 with pkg-config) for PDFs and > other "image" files, falling back to a regular Gtk::Image when > libeeview can't handle it. > https://developer.gnome.org/libevview/stable/ > > My code in Glom isn't pretty, but it works: > https://git.gnome.org/browse/glom/tree/glom/utility_widgets/imageglom.cc#n321 That's actually very useful, thanks. Unfortunately, the list returned by ev_backends_manager_get_all_types_info() is empty, and attempting to render a PDF file results in an error message "Error: File type PDF document (application/pdf) is not supported". Is there some initialisation of libevince-view which I missed? And related: are you aware of any documentation of libevince-view? I have never seen source with so few comments in it ;-) Cheers, Kasper > > On Fri, 2015-09-25 at 11:15 +0100, Kasper Peeters wrote: > > Hi, > > > > I need to display small PDF files inside a gtkmm app. These are > > single-page documents, and I just want to display the cropped > > content of those documents. What's the recommended way to do this? > > Has anyone written a simple C++ wrapper around libevince or poppler > > to make this kind of thing easy? > > > > Cheers, > > Kasper > > _______________________________________________ > > gtkmm-list mailing list > > gtkmm-list@gnome.org > > https://mail.gnome.org/mailman/listinfo/gtkmm-list > From linuxkid.zeuz@gmail.com Mon Oct 19 21:50:13 2015 Return-Path: X-Original-To: gtkmm-list@gnome.org Delivered-To: gtkmm-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by restaurant.gnome.org (Postfix) with ESMTP id 906C976905 for ; Mon, 19 Oct 2015 21:50:13 +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 restaurant.gnome.org ([127.0.0.1]) by localhost (restaurant.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id gHMnI8OgYfQl for ; Mon, 19 Oct 2015 21:50:12 +0000 (UTC) Received: from mail-io0-f169.google.com (mail-io0-f169.google.com [209.85.223.169]) by restaurant.gnome.org (Postfix) with ESMTP id 2B91A7625D for ; Mon, 19 Oct 2015 21:50:12 +0000 (UTC) Received: by iofz202 with SMTP id z202so1835328iof.2 for ; Mon, 19 Oct 2015 14:50:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=HhfKSkvOO/05H2ulvmCaHvvIZx54V4d9QKvApYYN+uw=; b=EZWWODcnNtbsRrHtvQWjfG5K3MAI4helwFO7LkmddBmXaJuJ3PCEMCKiY8qSZGu+4r hjSeRNZrlzMBleGdVmjDITNVFXsKtBvLCY8orbfQDsYB56pwnof7SD+pHVmW/3ZDlhn1 Ir0bBoE21GCKVWIzNBVBaAhf+Tvm5SPKByqd1VNUpamYPDn1Pca8MgcaI4Ri7QhYFKvx n6dbH5nOVm11LbXamppEAl6FWqcbiidW4f993tdoFhOT3iZ1bStwwZihjuG9l/HAxUcq hyViMwvnCHSfc6pIOhK11Z/WZsk5xiYfrJabuTYEhqnrtExf2MsPSO+KS07Fc8tvdJYs /ibw== MIME-Version: 1.0 X-Received: by 10.107.36.72 with SMTP id k69mr203398iok.157.1445291412562; Mon, 19 Oct 2015 14:50:12 -0700 (PDT) Received: by 10.107.135.139 with HTTP; Mon, 19 Oct 2015 14:50:12 -0700 (PDT) Date: Mon, 19 Oct 2015 18:50:12 -0300 Message-ID: Subject: signal_damage_event and connect. From: "Anibal F. Martinez Cortina" To: gtkmm-list@gnome.org Content-Type: multipart/alternative; boundary=001a1140fbe03e310905227c21f2 X-BeenThere: gtkmm-list@gnome.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: gtkmm general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Oct 2015 21:50:13 -0000 --001a1140fbe03e310905227c21f2 Content-Type: text/plain; charset=UTF-8 What seems to be wrong with this? signal_damage_event().connect(sigc::mem_fun(&Dock::dibujarDock)); Entire code: Dock::Dock() : Gtk::Window() { set_decorated(false); set_default_size(200,200); set_app_paintable(true); contenedor = Gtk::manage(new Gtk::Box(Gtk::ORIENTATION_HORIZONTAL,0)); add(*contenedor); botonPrueba = Gtk::manage(new Gtk::Button("Gran boton")); contenedor->pack_start(*botonPrueba,Gtk::PACK_SHRINK); contenedor->show_all(); signal_damage_event().connect(sigc::mem_fun(*this,&Dock::dibujarDock)); } void Dock::dibujarDock() { contextoVentana = get_window()->create_cairo_context(); contextoVentana->set_source_rgba(1.0,1.0,1.0,0.0); contextoVentana->set_operator(Cairo::OPERATOR_SOURCE); contextoVentana->paint(); //contextoVentana->destroy(); } It won't build even though it should be correct right? --001a1140fbe03e310905227c21f2 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
What seems to be wrong with this?
signal_damage_event().connect(sigc::mem= _fun(&Dock::dibujarDock));
Entire code:
= Dock::Dock() : Gtk::Window()
{
set_decorated(false);
set_default_size(200,200);
set_app_paintable(true);
contenedor =3D Gtk::manage(new Gtk:= :Box(Gtk::ORIENTATION_HORIZONTAL,0));
add(*contenedor);
botonPrueba =3D Gtk::manage(new Gtk::Button(&q= uot;Gran boton"));
contenedor->pack_start(*botonPrueba,Gtk::PACK_SHRINK);
contenedor->show_a= ll();
signal_damage_event()= .connect(sigc::mem_fun(*this,&Dock::dibujarDock));

=
}
void Dock::dibujarDock()
{
contextoVentana =3D get_window()-&g= t;create_cairo_context();
contextoVentana->set_source_rgba(1.0,1.0,1.0,0.0);
contextoVentana->set= _operator(Cairo::OPERATOR_SOURCE);
contextoVentana->paint();
//contextoVentana->destroy();
<= div>
}


It won't build even though it sh= ould be correct right?
--001a1140fbe03e310905227c21f2-- From adiabat@centurylink.net Mon Oct 19 22:00:42 2015 Return-Path: X-Original-To: gtkmm-list@gnome.org Delivered-To: gtkmm-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by restaurant.gnome.org (Postfix) with ESMTP id 915C876907 for ; Mon, 19 Oct 2015 22:00:42 +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, RCVD_IN_DNSWL_NONE=-0.0001, RP_MATCHES_RCVD=0.001, SPF_PASS=-0.001] autolearn=ham Received: from restaurant.gnome.org ([127.0.0.1]) by localhost (restaurant.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id uIg_i-MlgGij for ; Mon, 19 Oct 2015 22:00:41 +0000 (UTC) Received: from smtp.centurylink.net (mail.centurylink.net [205.219.233.9]) by restaurant.gnome.org (Postfix) with ESMTP id 4DEEF7625D for ; Mon, 19 Oct 2015 22:00:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha1; d=centurylink.net; s=ctl201402; c=relaxed/simple; q=dns/txt; i=@centurylink.net; t=1445292040; h=From:Subject:Date:To:MIME-Version:Content-Type; bh=Yeg9SltunhOGJmpXTi5yl+dQ618=; b=d5+dAHfpJ2lPAX9MFoY77AWIIQoGJQvDXOScWvCuXBZ1MCBXkne4aoJj9NLhcyNg MJ1zQ8HvXQ6WL4nBhyqr5/S5Fk+S5mflYqYh71cCjFGqd4rPsCztp3Oylm5yKErT hwSs4F+AzcN1sTsbmbauLH4JFGaLfFWFDxwrFjfyiG9vba7G1hyZQXE0C5dnCp+F sN8++pxnH7pVhd2b/2qd71LRLFGVToRQ8uk3UwFNx14wsNzEmedK8QQVOhk2uyW3 YjxccnbwnMDhyJ9nCuP49csNfMyqsIJumqsAsa91GJre7E0qjnlOMM16vE38rW+6 cUKT6EDG1ZB4vmf0QgmRIQ==; X_CMAE_Category: , , X-CNFS-Analysis: v=2.1 cv=Kt/toTiN c=1 sm=1 tr=0 a=lzQTtJGAaKqj+8CN4KkaIw==:117 a=lzQTtJGAaKqj+8CN4KkaIw==:17 a=K-v-2zaBAAAA:8 a=I_5RNyk1AAAA:8 a=N659UExz7-8A:10 a=aiIX5UjjAAAA:8 a=zdl5C-mxbYILGb1-SfYA:9 a=pILNOxqGKmIA:10 X-CM-Score: 0 X-Scanned-by: Cloudmark Authority Engine X-Authed-Username: YWRpYWJhdEBjZW50dXJ5bGluay5uZXQ= Authentication-Results: smtp03.agate.dfw.synacor.com smtp.user=adiabat@centurylink.net; auth=pass (LOGIN) Received: from [75.165.33.52] ([75.165.33.52:15053] helo=[192.168.0.101]) by smtp.centurylink.net (envelope-from ) (ecelerity 3.5.1.37854 r(Momo-dev:3.5.1.0)) with ESMTPSA (cipher=AES128-SHA) id C6/66-04796-80865265; Mon, 19 Oct 2015 18:00:40 -0400 Subject: Re: signal_damage_event and connect. To: gtkmm-list@gnome.org, linuxkid.zeuz@gmail.com References: From: Phil Wolff Message-ID: <56256807.7040500@centurylink.net> Date: Mon, 19 Oct 2015 15:00:39 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: gtkmm-list@gnome.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: gtkmm general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Oct 2015 22:00:42 -0000 bool Dock::dibujarDock ( GdkEventExpose* event ) On 10/19/2015 02:50 PM, Anibal F. Martinez Cortina wrote: > What seems to be wrong with this? > signal_damage_event().connect(sigc::mem_fun(&Dock::dibujarDock)); > Entire code: > Dock::Dock() : Gtk::Window() > { > set_decorated(false); > set_default_size(200,200); > set_app_paintable(true); > contenedor = Gtk::manage(new Gtk::Box(Gtk::ORIENTATION_HORIZONTAL,0)); > add(*contenedor); > botonPrueba = Gtk::manage(new Gtk::Button("Gran boton")); > contenedor->pack_start(*botonPrueba,Gtk::PACK_SHRINK); > contenedor->show_all(); > signal_damage_event().connect(sigc::mem_fun(*this,&Dock::dibujarDock)); > > } > void Dock::dibujarDock() > { > contextoVentana = get_window()->create_cairo_context(); > contextoVentana->set_source_rgba(1.0,1.0,1.0,0.0); > contextoVentana->set_operator(Cairo::OPERATOR_SOURCE); > contextoVentana->paint(); > //contextoVentana->destroy(); > } > > > It won't build even though it should be correct right? > > > _______________________________________________ > gtkmm-list mailing list > gtkmm-list@gnome.org > https://mail.gnome.org/mailman/listinfo/gtkmm-list From linuxkid.zeuz@gmail.com Mon Oct 19 22:10:35 2015 Return-Path: X-Original-To: gtkmm-list@gnome.org Delivered-To: gtkmm-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by restaurant.gnome.org (Postfix) with ESMTP id 689C576905 for ; Mon, 19 Oct 2015 22:10:35 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -1.071 X-Spam-Level: X-Spam-Status: No, score=-1.071 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_IMAGE_ONLY_24=1.618, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001, T_REMOTE_IMAGE=0.01] autolearn=no Received: from restaurant.gnome.org ([127.0.0.1]) by localhost (restaurant.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ef6jPNRVDtmZ for ; Mon, 19 Oct 2015 22:10:33 +0000 (UTC) Received: from mail-io0-f178.google.com (mail-io0-f178.google.com [209.85.223.178]) by restaurant.gnome.org (Postfix) with ESMTP id D3C3A7625D for ; Mon, 19 Oct 2015 22:10:33 +0000 (UTC) Received: by iofz202 with SMTP id z202so2323502iof.2 for ; Mon, 19 Oct 2015 15:10:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=B78bg7yR9LMuJHBiPOhJxlzXglnn4RhJksSCyrvR2UM=; b=EJ+v45kOmnQ2RGY/gXnniZWNijon/3bqGl96OXiLpWRIgL9pssPWmym38cGDQx0W44 Sp7ELOBgyHZVsCIzJbaXnDjNUhn/KDRGRhTd1XFqH+0ZfJdEoTBSnRkx9iD0kQp9OHUQ ekPB6ye2FbCc7VDJT6b3Migvc7wMbhKk3BAhIquW5+rLvND8gRvOJnK37qew370eXOnF a8o6iimwt9IuROsmia7suY7QaQ1sl4xEoSsbRrPnFqo1bG4wGqWghjmTOl7UDPfp2y9c 4Wb8z3ReohZgvm5Fm9P5iCcbY9Tq/sA78eyv6SNUhL6R6ZRaMamnylgFwKwrMUb3btyi GkDQ== MIME-Version: 1.0 X-Received: by 10.107.162.136 with SMTP id l130mr332189ioe.86.1445292634230; Mon, 19 Oct 2015 15:10:34 -0700 (PDT) Received: by 10.107.135.139 with HTTP; Mon, 19 Oct 2015 15:10:34 -0700 (PDT) In-Reply-To: <56256807.7040500@centurylink.net> References: <56256807.7040500@centurylink.net> Date: Mon, 19 Oct 2015 19:10:34 -0300 Message-ID: Subject: Re: signal_damage_event and connect. From: "Anibal F. Martinez Cortina" To: Phil Wolff Content-Type: multipart/alternative; boundary=001a1141b65a0f5d8305227c6af6 Cc: gtkmm-list@gnome.org X-BeenThere: gtkmm-list@gnome.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: gtkmm general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Oct 2015 22:10:35 -0000 --001a1141b65a0f5d8305227c6af6 Content-Type: text/plain; charset=UTF-8 That worked, however, the background of the app became black, not transparent.. what else did I miss? Regards. 2015-10-19 19:00 GMT-03:00 Phil Wolff : > > bool Dock::dibujarDock ( GdkEventExpose* event ) > > > > On 10/19/2015 02:50 PM, Anibal F. Martinez Cortina wrote: > >> What seems to be wrong with this? >> signal_damage_event().connect(sigc::mem_fun(&Dock::dibujarDock)); >> Entire code: >> Dock::Dock() : Gtk::Window() >> { >> set_decorated(false); >> set_default_size(200,200); >> set_app_paintable(true); >> contenedor = Gtk::manage(new Gtk::Box(Gtk::ORIENTATION_HORIZONTAL,0)); >> add(*contenedor); >> botonPrueba = Gtk::manage(new Gtk::Button("Gran boton")); >> contenedor->pack_start(*botonPrueba,Gtk::PACK_SHRINK); >> contenedor->show_all(); >> signal_damage_event().connect(sigc::mem_fun(*this,&Dock::dibujarDock)); >> >> } >> void Dock::dibujarDock() >> { >> contextoVentana = get_window()->create_cairo_context(); >> contextoVentana->set_source_rgba(1.0,1.0,1.0,0.0); >> contextoVentana->set_operator(Cairo::OPERATOR_SOURCE); >> contextoVentana->paint(); >> //contextoVentana->destroy(); >> } >> >> >> It won't build even though it should be correct right? >> >> >> _______________________________________________ >> gtkmm-list mailing list >> gtkmm-list@gnome.org >> https://mail.gnome.org/mailman/listinfo/gtkmm-list >> > > --001a1141b65a0f5d8305227c6af6 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
That worked, h= owever, the background of the app became black, not transparent.. what else= did I miss?

Regards.
=

2015-10-19 19:00 GMT-03:00 Phil Wolff <adiabat@centurylink.net&= gt;:

bool Dock::dibujarDock ( GdkEventExpose* event )



On 10/19/2015 02:50 PM, Anibal F. Martinez Cortina wrote:
What seems to be wrong with this?
signal_damage_event().connect(sigc::mem_fun(&Dock::dibujarDock));
Entire code:
Dock::Dock() : Gtk::Window()
{
set_decorated(false);
set_default_size(200,200);
set_app_paintable(true);
contenedor =3D Gtk::manage(new Gtk::Box(Gtk::ORIENTATION_HORIZONTAL,0)); add(*contenedor);
botonPrueba =3D Gtk::manage(new Gtk::Button("Gran boton"));
contenedor->pack_start(*botonPrueba,Gtk::PACK_SHRINK);
contenedor->show_all();
signal_damage_event().connect(sigc::mem_fun(*this,&Dock::dibujarDock));=

}
void Dock::dibujarDock()
{
contextoVentana =3D get_window()->create_cairo_context();
contextoVentana->set_source_rgba(1.0,1.0,1.0,0.0);
contextoVentana->set_operator(Cairo::OPERATOR_SOURCE);
contextoVentana->paint();
//contextoVentana->destroy();
}


It won't build even though it should be correct right?


_______________________________________________
gtkmm-list mailing list
gtkmm-list@gnome.= org
https://mail.gnome.org/mailman/listinfo/gtkmm-list=


--001a1141b65a0f5d8305227c6af6-- From linuxkid.zeuz@gmail.com Tue Oct 20 08:08:36 2015 Return-Path: X-Original-To: gtkmm-list@gnome.org Delivered-To: gtkmm-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by restaurant.gnome.org (Postfix) with ESMTP id 71B6D7699A for ; Tue, 20 Oct 2015 08:08:36 +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 restaurant.gnome.org ([127.0.0.1]) by localhost (restaurant.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id YhxkcKxHwKi2 for ; Tue, 20 Oct 2015 08:08:35 +0000 (UTC) Received: from mail-io0-f180.google.com (mail-io0-f180.google.com [209.85.223.180]) by restaurant.gnome.org (Postfix) with ESMTP id 8A6897624D for ; Tue, 20 Oct 2015 08:08:35 +0000 (UTC) Received: by iofz202 with SMTP id z202so13576540iof.2 for ; Tue, 20 Oct 2015 01:08:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=t9pyeN1ftFZmGNj09psqChOuvd5xnmoCGQDAXpzsoBM=; b=w3mz/xwSys3OBOYmzWQaRxDC/JIVEVY6n5RMpT8Gqz5Okl8h78AWl54X6xbkPtRc8Q g5rlYfeqa2qg+Nkp2Ja7jYVUCSWSCR72NbrkRJfSpTX39M2Erh0apFznE7eyZ3UaHTVu GBi07UlW3t83bpZcsBXG5G69Zz3aXZgM0Nc2uy5G5hu+FMBkk/sbZ3YWsVAS9gV14HWB HwRWR5ukR2gAmFlXvHNyK+XnUZgID/SN08jlwOjIsjIVQzRAuvaEi0h6bLHpxFatOlcw 1qUskFOXUU9oVQwb8/1TGMG+c0aa6d8mUVJ5R+OYYwW/kjT0R7yW6bxdsa7vgdsyWaa7 aJNg== MIME-Version: 1.0 X-Received: by 10.107.10.210 with SMTP id 79mr2123020iok.31.1445328515560; Tue, 20 Oct 2015 01:08:35 -0700 (PDT) Received: by 10.107.135.139 with HTTP; Tue, 20 Oct 2015 01:08:35 -0700 (PDT) Date: Tue, 20 Oct 2015 05:08:35 -0300 Message-ID: Subject: Parent invisible, widget visible. From: "Anibal F. Martinez Cortina" To: gtkmm-list@gnome.org Content-Type: multipart/alternative; boundary=001a113f8accc0fbbd052284c4d5 X-BeenThere: gtkmm-list@gnome.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: gtkmm general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Oct 2015 08:08:36 -0000 --001a113f8accc0fbbd052284c4d5 Content-Type: text/plain; charset=UTF-8 Is there any way to set_opacity(0) the parent Gtk::Window, but keep the Gtk::Widget derived class visible? I've tried setting the opacity in each one, but to no avail. Regards.- --001a113f8accc0fbbd052284c4d5 Content-Type: text/html; charset=UTF-8
Is there any way to set_opacity(0) the parent Gtk::Window, but keep the Gtk::Widget derived class visible?
I've tried setting the opacity in each one, but to no avail.

Regards.-
--001a113f8accc0fbbd052284c4d5-- From gtglus@gmail.com Mon Oct 26 09:13:59 2015 Return-Path: X-Original-To: gtkmm-list@gnome.org Delivered-To: gtkmm-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by restaurant.gnome.org (Postfix) with ESMTP id 652C276769 for ; Mon, 26 Oct 2015 09:13:59 +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 restaurant.gnome.org ([127.0.0.1]) by localhost (restaurant.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id sCXg6g4ObnxN for ; Mon, 26 Oct 2015 09:13:58 +0000 (UTC) Received: from mail-ob0-f173.google.com (mail-ob0-f173.google.com [209.85.214.173]) by restaurant.gnome.org (Postfix) with ESMTP id 049C17624D for ; Mon, 26 Oct 2015 09:13:57 +0000 (UTC) Received: by obbwb3 with SMTP id wb3so138034434obb.0 for ; Mon, 26 Oct 2015 02:13:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=dUZE5U2d3hivyH+y8T0YY9+jy9SfnF8zHTfNSNbVMp4=; b=t+x1ztjlG+vmBSuXYg5wuMMr4+qWjt2iuG3bRMJjJQxgQF3OWztIVAFnSJJsGoHxxy mgEyTGk16JXx/3OvXIsaP0R93xv+ARGNbxyqP+sQuL6z4E689gce0nm8k/jAe9PAkNou qI7OpXW8+HSbTqNonBBJT0ZzozGlIkYhNN0YfIJaFrWojVPjS9sQTN4cTRTQzoR1NBks uHVdMY8HMzZLodmDThBOi10j2M/w/Cv1z5bNGhTM8wi7naSqVFTEVc8PasFjNku0IiDF LW7NSMN3p5ZqpbbitMRye5W0/bZlDnWWgG+GYIzSI75vRfQZG7KCH+jK+pZ/R8dwPCdm CaSA== MIME-Version: 1.0 X-Received: by 10.182.142.129 with SMTP id rw1mr23446811obb.28.1445850838474; Mon, 26 Oct 2015 02:13:58 -0700 (PDT) Received: by 10.76.156.73 with HTTP; Mon, 26 Oct 2015 02:13:58 -0700 (PDT) Date: Mon, 26 Oct 2015 10:13:58 +0100 Message-ID: Subject: The secondary icon of Gtk::SearchEntry From: Glus Xof To: "gtkmm-list@gnome.org" Content-Type: multipart/alternative; boundary=001a11c1ccfaa0244c0522fe61ef X-BeenThere: gtkmm-list@gnome.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: gtkmm general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Oct 2015 09:13:59 -0000 --001a11c1ccfaa0244c0522fe61ef Content-Type: text/plain; charset=UTF-8 Hi guys, I've been working with Gtk::SearchEntry... and there is something that probably has no sense at all... When an instance of this class is set as non editable, the secondary icon ("edit-clear"... or something related) is still present and lets too to remove the text... that is probably, as I said, a non desirable feature (while the object is set as non editable). In my opinion, this icon should be hidden and appear just when the property editable is set back to. Notice that get_icon_name(), get_icon_pixbuf() and get_icon_gicon() seems not returning any useful information to work around... Glus --001a11c1ccfaa0244c0522fe61ef Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi guys,

I've been wo= rking with Gtk::SearchEntry... and there is something that probably has no = sense at all...

When an instance of this class is set as non e= ditable, the secondary icon ("edit-clear"... or something related= ) is still present and lets too to remove the text... that is probably, as = I said, a non desirable feature (while the object is set as non editable).<= br>
In my opinion, this icon should be hidden and appear just when= the property editable is set back to.

Notice that get_ic= on_name(), get_icon_pixbuf() and get_icon_gicon() seems not returning any u= seful information to work around...

Glus
--001a11c1ccfaa0244c0522fe61ef-- From aurisc4@gmail.com Mon Oct 26 09:21:31 2015 Return-Path: X-Original-To: gtkmm-list@gnome.org Delivered-To: gtkmm-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by restaurant.gnome.org (Postfix) with ESMTP id DBDBB76769 for ; Mon, 26 Oct 2015 09:21:31 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.45 X-Spam-Level: X-Spam-Status: No, score=-2.45 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, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001] autolearn=ham Received: from restaurant.gnome.org ([127.0.0.1]) by localhost (restaurant.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id DgSxbGZn2HL4 for ; Mon, 26 Oct 2015 09:21:30 +0000 (UTC) Received: from mail-ob0-f178.google.com (mail-ob0-f178.google.com [209.85.214.178]) by restaurant.gnome.org (Postfix) with ESMTP id 8CB1D7624D for ; Mon, 26 Oct 2015 09:21:30 +0000 (UTC) Received: by obbwb3 with SMTP id wb3so138155903obb.0 for ; Mon, 26 Oct 2015 02:21:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=v2DQy4JVOzzM/kvkgZ5Idkk6QrM1gN/Ewky1PbnQPuU=; b=xj8gcW097jXG4jn92fS9uSYnq/tL2A/5DUSuHFvciZMrGy2w5hipoQMKjo6mLeHJ+x J0HwRIyd1bIk4CXuEMlZNbEu24OOcumq1Dzevz+/OG+teJ+DCl5DA+ojZJafq54pQVLD cU2Eu4RsAhLOp7puxMAE1hmrR/RGRsC7jLhtAIHnxfPMU3jqTvzgUBH5PiGWb9RBrtSr 0uniSFcKLYjjKBe2MejcwacZtozH5BnqAx+Pjew3Ef03kz9t3dj4VlAucDlQ4qRjSjsb kEzzcTOty2n9vZMVpqM0ehnYWpRhmWyDgRxRwoH/A7Rd8o/lUyDm9/D1Q7tfonaSOIIs wT0g== MIME-Version: 1.0 X-Received: by 10.182.121.163 with SMTP id ll3mr23351902obb.27.1445851291255; Mon, 26 Oct 2015 02:21:31 -0700 (PDT) Received: by 10.182.176.38 with HTTP; Mon, 26 Oct 2015 02:21:31 -0700 (PDT) In-Reply-To: References: Date: Mon, 26 Oct 2015 11:21:31 +0200 Message-ID: Subject: Re: The secondary icon of Gtk::SearchEntry From: =?UTF-8?Q?Aurimas_=C4=8Cernius?= To: Glus Xof Content-Type: text/plain; charset=UTF-8 Cc: "gtkmm-list@gnome.org" X-BeenThere: gtkmm-list@gnome.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: gtkmm general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Oct 2015 09:21:31 -0000 > When an instance of this class is set as non editable, the secondary icon > ("edit-clear"... or something related) is still present and lets too to > remove the text... that is probably, as I said, a non desirable feature > (while the object is set as non editable). Probably worth to try it with GTK+. If the same issue is there, then it's a bug in GTK+ (IMO). -- Aurimas From gtglus@gmail.com Mon Oct 26 10:16:38 2015 Return-Path: X-Original-To: gtkmm-list@gnome.org Delivered-To: gtkmm-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by restaurant.gnome.org (Postfix) with ESMTP id 76E8F76769 for ; Mon, 26 Oct 2015 10:16:38 +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 restaurant.gnome.org ([127.0.0.1]) by localhost (restaurant.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id jq7lnWFPaxZK for ; Mon, 26 Oct 2015 10:16:37 +0000 (UTC) Received: from mail-ob0-f169.google.com (mail-ob0-f169.google.com [209.85.214.169]) by restaurant.gnome.org (Postfix) with ESMTP id CDE657624D for ; Mon, 26 Oct 2015 10:16:36 +0000 (UTC) Received: by obbza9 with SMTP id za9so20982400obb.1 for ; Mon, 26 Oct 2015 03:16:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=V8l3lzQFh7Dg0tDRjJuUQiNtIN/9hGg2pB8t5jHcprI=; b=yXjiRvSb32vo+2anEl2LlrfNhg4bwwewHO9QcHMVcdKxqI//MeFXmqsJFeG9woG/Y5 KmbfZrPjUNLNRlgqXOeMSojeMVDrKRFZnLQ402gHZDL1oDe2sIiD7D1hV8FAprysZxP0 UzEqSK5NgZiF0WXvG/fXz07+21sAO9efq780LGhDSZKDKtRRLj23GJgZVOD0Ymd37llL lkYTTKVrYMSkHxwOz33ib9VPAvQRy0kkA3wqEaJ+Fwa4yr5UxoTE6CPZDtGz7dV9UoTz x8F9MqqD62DZTw1yXkVtaiMZrgCJRnJYlb0A47xD4b5ptbUnFBREYbrdHDe+lVZnZe4h 3Pcg== MIME-Version: 1.0 X-Received: by 10.60.59.229 with SMTP id c5mr9694749oer.68.1445854597793; Mon, 26 Oct 2015 03:16:37 -0700 (PDT) Received: by 10.76.156.73 with HTTP; Mon, 26 Oct 2015 03:16:37 -0700 (PDT) In-Reply-To: References: Date: Mon, 26 Oct 2015 11:16:37 +0100 Message-ID: Subject: Re: The secondary icon of Gtk::SearchEntry From: Glus Xof To: =?UTF-8?Q?Aurimas_=C4=8Cernius?= Content-Type: multipart/alternative; boundary=089e012955a4b2cdf90522ff41b4 Cc: "gtkmm-list@gnome.org" X-BeenThere: gtkmm-list@gnome.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: gtkmm general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Oct 2015 10:16:38 -0000 --089e012955a4b2cdf90522ff41b4 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 2015-10-26 10:21 GMT+01:00 Aurimas =C4=8Cernius : > > When an instance of this class is set as non editable, the secondary ic= on > > ("edit-clear"... or something related) is still present and lets too to > > remove the text... that is probably, as I said, a non desirable feature > > (while the object is set as non editable). > > Probably worth to try it with GTK+. If the same issue is there, then > it's a bug in GTK+ (IMO) I agree that an implementation of GtkSearchEntry is a Gtk+ issue (and therefore they are those who could resolve this feature)... but of methods like get_icon_pixbuf()... should be a Gtkmm, shouldn't be ? Why the return values of these methods are void strings ? Glus --089e012955a4b2cdf90522ff41b4 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
2015= -10-26 10:21 GMT+01:00 Aurimas =C4=8Cernius <aurisc4@gmail.com>:
> When an instance of this class is set as non editable, the secondary= icon
> ("edit-clear"... or something related) is still present and = lets too to
> remove the text... that is probably, as I said, a non desirable featur= e
> (while the object is set as non editable).

Probably worth to try it with GTK+. If the same issue is there, then=
it's a bug in GTK+ (IMO)

I agree that a= n implementation of GtkSearchEntry is a Gtk+ issue (and therefore they are = those who could resolve this feature)... but of methods like get_icon_pixbu= f()... should be a Gtkmm, shouldn't be ?

Why the retu= rn values of these methods are void strings ?

= Glus
--089e012955a4b2cdf90522ff41b4-- From alfredo.pons@gmail.com Fri Oct 30 18:15:53 2015 Return-Path: X-Original-To: gtkmm-list@gnome.org Delivered-To: gtkmm-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by restaurant.gnome.org (Postfix) with ESMTP id 8977776A4B for ; Fri, 30 Oct 2015 18:15:53 +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, SPF_PASS=-0.001] autolearn=ham Received: from restaurant.gnome.org ([127.0.0.1]) by localhost (restaurant.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 3ZGq60pyNAVK for ; Fri, 30 Oct 2015 18:15:52 +0000 (UTC) Received: from mail-wm0-f45.google.com (mail-wm0-f45.google.com [74.125.82.45]) by restaurant.gnome.org (Postfix) with ESMTP id 9D113762C2 for ; Fri, 30 Oct 2015 18:15:52 +0000 (UTC) Received: by wmll128 with SMTP id l128so18565353wml.0 for ; Fri, 30 Oct 2015 11:15:53 -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:content-type; bh=LVk8UxoeAGTjqFO4WlluRH+7NBotWZfvBOaTl+9Bi3Y=; b=JIf63l32qF4S8Qa7QFpqDO3tHVeE0iT7Kx4Bvjc76UV3P3nPs4PMK6e/B0yrOTRQB9 Uz3wtXL35XA1WLMqCyMQBjuCi2iJ0jT7zosZ8Va22pMaDUu0hvfzGHuLIyEhjzxPAM56 OzrN+H8g/cHC2jdBTILx59hPo6tzHDTwYvTjWHEksGgT/hOxK51dM35HyUD3xK4eAZtK Ss+7QfzD8uUmEJkAsSlnAgDRFvCdn5JG6kiC+AOR/uLVgNzLywZDchNK37M+kttwMrhl y16AuIJYmPU4uV7Vi7+10ejBVBqLG1sA6472OEMpIBFE132SbPYq8tDbE0M0OxtwXBmj 0BUQ== X-Received: by 10.28.9.201 with SMTP id 192mr5411863wmj.5.1446228952943; Fri, 30 Oct 2015 11:15:52 -0700 (PDT) MIME-Version: 1.0 Received: by 10.28.65.5 with HTTP; Fri, 30 Oct 2015 11:15:13 -0700 (PDT) From: Alfredo Pons Date: Fri, 30 Oct 2015 19:15:13 +0100 Message-ID: Subject: Reload all text of glade interface (Gtk::Builder) when change language in gtkmm To: gtkmm-list@gnome.org Content-Type: text/plain; charset=UTF-8 X-BeenThere: gtkmm-list@gnome.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: gtkmm general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Oct 2015 18:15:53 -0000 Hello, I use gtkmm, glade (Gtk::Builder) and gettext. I develop payment machines in Spain with this technology and when users select other language, I have to restart the process to reload all interfaces. Restart the process is very slow because it must initialize all pay peripherals. Is there any way to reload text of glade interface with gettext ? Thanks.