From arbolone@gmail.com Thu Aug 2 13:41:25 2012 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 menubar.gnome.org (Postfix) with ESMTP id 481B275036F for ; Thu, 2 Aug 2012 13:41:25 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -0.8 X-Spam-Level: X-Spam-Status: No, score=-0.8 tagged_above=-999 required=2 tests=[BAYES_20=-0.001, 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 menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id mhEEzTr--SsV for ; Thu, 2 Aug 2012 13:41:23 +0000 (UTC) Received: from mail-vb0-f54.google.com (mail-vb0-f54.google.com [209.85.212.54]) by menubar.gnome.org (Postfix) with ESMTP id A21B875089F for ; Thu, 2 Aug 2012 13:41:23 +0000 (UTC) Received: by mail-vb0-f54.google.com with SMTP id v11so3250150vbm.27 for ; Thu, 02 Aug 2012 06:41:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id:mime-version:content-type:x-mailer :thread-index:content-language; bh=NPI5vtF1IRYInwlauNr10/gXI6582asxMJ8/t/WoTpU=; b=MZFN5bQ93DV7q98ZRJgIon030yMOVs3/9iIA5bsF4WVvvvcIBI6NQfetTuQJyyR1gD VkjEsfB+MX1t6szVMP4qU8RHgxdJ0mM/swCP7mNi0JEiHb/HPJ7My0MxZ0HEX7VclYUt gOe6A5HIjIeSyJB/T9CpQEfHtNk0W1lA8OhsMui+X0GPQ35n+Nu6WutO3dyi9xdjaQQ8 MCQrUmykdIkmtDahgLNa5u2wK0voLQK8dTq4L84xFdD4LnyBXiCeec6ir2HhF/99ZLly UdsNKvFsucj2+2toZOJXzj1ht3YHG23TKDsHhxO9BZEzNOxwFX4rD+4LiMpZ6s+XN8r7 5ptQ== Received: by 10.52.16.212 with SMTP id i20mr17686602vdd.118.1343914883345; Thu, 02 Aug 2012 06:41:23 -0700 (PDT) Received: from ArbolOnePC (CPE602ad07a8576-CM602ad07a8573.cpe.net.cable.rogers.com. [99.228.43.239]) by mx.google.com with ESMTPS id cy18sm5663769vdb.9.2012.08.02.06.41.22 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 02 Aug 2012 06:41:22 -0700 (PDT) From: Arbol One To: Subject: Installer for Win7 Date: Thu, 2 Aug 2012 09:41:17 -0400 Message-ID: <000501cd70b4$7ea09610$7be1c230$@com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0006_01CD7092.F78EF610" X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: Ac1wtH3D6clXZM2ZRJy1FYc/D/Nf5g== Content-Language: en-us X-BeenThere: gtkmm-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: gtkmm general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Aug 2012 13:41:25 -0000 This is a multi-part message in MIME format. ------=_NextPart_000_0006_01CD7092.F78EF610 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit I was wondering if there is an 'Installer' for Windows 7 that you would recommend. I want my user to have all the necessary GTKmm files needed for my application. TIA Freedom of speech does not translate to freedom of insulting ------=_NextPart_000_0006_01CD7092.F78EF610 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

I was = wondering if there is an 'Installer' for Windows 7 that you would = recommend. I want my user to have all the necessary GTKmm files needed = for my application.

 

TIA

 

 

Freedom of speech does not translate to freedom of = insulting

 

------=_NextPart_000_0006_01CD7092.F78EF610-- From kevin.brightwell2@gmail.com Thu Aug 2 13:46:08 2012 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 menubar.gnome.org (Postfix) with ESMTP id 9E48F75021E for ; Thu, 2 Aug 2012 13:46:08 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.295 X-Spam-Level: X-Spam-Status: No, score=-2.295 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, TW_GT=0.077, TW_TK=0.077] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id yYgzYsV63qpE for ; Thu, 2 Aug 2012 13:46:02 +0000 (UTC) Received: from mail-qc0-f182.google.com (mail-qc0-f182.google.com [209.85.216.182]) by menubar.gnome.org (Postfix) with ESMTP id B94E27501F1 for ; Thu, 2 Aug 2012 13:46:01 +0000 (UTC) Received: by qcsg15 with SMTP id g15so8133135qcs.27 for ; Thu, 02 Aug 2012 06:46:00 -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=v3hemn+YUZHSE9XxqytwGVokjn+yhdZGFjYDruzbvh8=; b=QcMOj7SQg+52mYdvgW2AZf2bvs1zkaJIwZYSlD2UHi6fjaC/lHw6nJdO5nXiMjrusk GTisREgeNG5AzAu7SIhhrkd5AkOw6T0N6wJTJAroH3Gl+0bOXveyOsYt0IrvtZY/54Je vh9lPMdpWAx0dW89DpCTl/7zw9JuA/tr8t0bZ2tvdEEgiUhqHGFuVxRQ0Sb95DEWgSje XKrxRy1y+OaZTeDt4ujF1VHYeK8Ncn4b+nvQbxJfjNVi4CZG7CFgyg1bHc2xCJ0UFh5g RB1qTvZXOQufnHX29Y8BM1xyGdL+MwvMbEDUZuhZFVf08wdzDXFVBbdB06LXDcR7n318 uzIQ== MIME-Version: 1.0 Received: by 10.224.211.137 with SMTP id go9mr42183022qab.77.1343915158752; Thu, 02 Aug 2012 06:45:58 -0700 (PDT) Received: by 10.49.109.226 with HTTP; Thu, 2 Aug 2012 06:45:58 -0700 (PDT) In-Reply-To: <000501cd70b4$7ea09610$7be1c230$@com> References: <000501cd70b4$7ea09610$7be1c230$@com> Date: Thu, 2 Aug 2012 09:45:58 -0400 Message-ID: Subject: Re: Installer for Win7 From: Kevin Brightwell To: Arbol One Content-Type: multipart/alternative; boundary=20cf300fb1b1a54c0204c648a128 Cc: gtkmm-list@gnome.org X-BeenThere: gtkmm-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: gtkmm general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Aug 2012 13:46:08 -0000 --20cf300fb1b1a54c0204c648a128 Content-Type: text/plain; charset=ISO-8859-1 At the risk of being insulting, have you looked at the official GNOME ftp? [1] Granted, there does not appear to be an immediate binary installer for gtkmm 3.0. If you want to build gtkmm 3.0 for windows, check out this link. [2] Hope that helps. Regards, Kevin Brightwell [1] http://ftp.gnome.org/pub/GNOME/binaries/win32/gtkmm/ [2] https://live.gnome.org/gtkmm/MSWindows/BuildingGtkmm On Thu, Aug 2, 2012 at 9:41 AM, Arbol One wrote: > I was wondering if there is an 'Installer' for Windows 7 that you would > recommend. I want my user to have all the necessary GTKmm files needed for > my application.**** > > ** ** > > TIA**** > > ** ** > > ** ** > > *Freedom of speech does not translate to freedom of insulting* > > ** ** > > _______________________________________________ > gtkmm-list mailing list > gtkmm-list@gnome.org > https://mail.gnome.org/mailman/listinfo/gtkmm-list > > -- Kevin Brightwell *Year 4 Bachelor of Computer Engineering (BESc.) Year 3 Bachelor of Computer Science (BSc.) * Residence Don - Saugeen-Maitland Hall Western University www.westernu.ca e. kevin.brightwell2@gmail.com c. 226.678.4927 --20cf300fb1b1a54c0204c648a128 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable At the risk of being insulting, have you looked at the official GNOME ftp? = [1]

Granted, there does not appear to be an immediate binary install= er for gtkmm 3.0.

If you want to build gtkmm 3.0 for windows, check = out this link. [2]

Hope that helps.

Regards,
Kevin Brightwell

[1] http://ftp.gnome.org/pub/GNOME/binaries/win32/gtkmm/
[2] ht= tps://live.gnome.org/gtkmm/MSWindows/BuildingGtkmm

On Thu, Aug 2, 2012 at 9:41 AM, Arbol One <arbolone@gmail.com> wrote:

I was wondering if there is an 'Installer' for Windows 7 that y= ou would recommend. I want my user to have all the necessary GTKmm files ne= eded for my application.

=A0

TIA

=A0

=A0

Freedom= of speech does not translate to freedom of insulting<= /b>

=A0


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




--
Kevin BrightwellYear 4 Bachelor of Computer Engineering (BESc.)
Year 3 Bachelor of C= omputer Science (BSc.)

Residence Don - Saugeen-Maitland Hall
Western University www.west= ernu.ca
e. kevin.brightwell2@gmail.com c. 226.678.4927

--20cf300fb1b1a54c0204c648a128-- From dregister@clear.net Mon Aug 6 01:03:09 2012 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 menubar.gnome.org (Postfix) with ESMTP id CF9447501FC for ; Mon, 6 Aug 2012 01:03:09 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.446 X-Spam-Level: X-Spam-Status: No, score=-2.446 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, TW_GT=0.077, TW_TK=0.077] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id oM04fp9HUlrF for ; Mon, 6 Aug 2012 01:02:55 +0000 (UTC) Received: from mail-gg0-f182.google.com (mail-gg0-f182.google.com [209.85.161.182]) by menubar.gnome.org (Postfix) with ESMTP id A5F967500CC for ; Mon, 6 Aug 2012 01:02:47 +0000 (UTC) Received: by ggnk4 with SMTP id k4so2917219ggn.27 for ; Sun, 05 Aug 2012 18:02:45 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding :x-gm-message-state; bh=D82/Wsr0JfZMUw/E4GflSHccR3KjBUQWZ2nnFfwZFGs=; b=Sy+acLjtDb+llRatUMSzxeihviN8A90UYBPdtudJmMHLt3AM6tCFfvtHhMWEmoycvs gezXG7XdHjEkSUQdNP7s97URfaUEEAYTC9K6SwSRGrVbzFu8FCJnuR69RHDTETSXRPdW kCmwJoOMeRM/Nri+vbb4Nx8iByP65SHZcEgCv3Qh8wyDWu/wn4Hk4WC7HTa8cUah2rn5 uX5/ClYMkZJMADZdoVFOdtnwGFEn8VSzziOTzcL1RLAYgYmu2ESmuqxqPWiYqIFLdovK BS4fBpzNi59ROrA9pzuVEKaeQnODhCtz9OyOyB7KKXTRInxOeR7AIZJKKAMx73cUwvG5 ASWA== Received: by 10.236.149.162 with SMTP id x22mr8388647yhj.92.1344214965451; Sun, 05 Aug 2012 18:02:45 -0700 (PDT) Received: from [192.168.15.30] (75-95-141-51.gar.clearwire-wmx.net. [75.95.141.51]) by mx.google.com with ESMTPS id v8sm29092441yhi.15.2012.08.05.18.02.44 (version=SSLv3 cipher=OTHER); Sun, 05 Aug 2012 18:02:45 -0700 (PDT) Message-ID: <501F17B0.6050307@clear.net> Date: Sun, 05 Aug 2012 21:02:40 -0400 From: Damon Register User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:14.0) Gecko/20120713 Thunderbird/14.0 MIME-Version: 1.0 To: gtkmm-list@gnome.org Subject: Re: Installer for Win7 References: <000501cd70b4$7ea09610$7be1c230$@com> In-Reply-To: <000501cd70b4$7ea09610$7be1c230$@com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Gm-Message-State: ALoCoQkpiWmHhhxYgLQegS1twPI7idYFgZYakrChDe2GhVD+ozWApYxVkonS0Z8VKrOr6kEjWFFT X-BeenThere: gtkmm-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: gtkmm general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 06 Aug 2012 01:03:10 -0000 On 8/2/2012 9:41 AM, Arbol One wrote: > I was wondering if there is an 'Installer' for Windows 7 that you would recommend. > I want my user to have all the necessary GTKmm files needed for my application. I guess if there is, I certainly would like to know about it. I have been doing my own work on building all the pieces up to gtkmm because I didn't see much activity on that. Finally I got to where I could build all the pieces and run a few test apps. The bad part is that I haven't had much luck with Glade. I was able to build it but it crashes a lot and at this point I don't know if it is something I did wrong or if there really is a bug in Glade. If you want, I could give you my notes on what I did to build each part. Damon Register From joaquingoicoechea@iesotura.es Wed Aug 8 00:50:11 2012 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 menubar.gnome.org (Postfix) with ESMTP id 2742575081B for ; Wed, 8 Aug 2012 00:50:11 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -1.934 X-Spam-Level: X-Spam-Status: No, score=-1.934 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_SOFTFAIL=0.665] autolearn=no Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id FGoY5uDu8IxU for ; Wed, 8 Aug 2012 00:49:57 +0000 (UTC) Received: from mail-yx0-f182.google.com (mail-yx0-f182.google.com [209.85.213.182]) by menubar.gnome.org (Postfix) with ESMTP id 0589D7502DE for ; Wed, 8 Aug 2012 00:49:47 +0000 (UTC) Received: by yenl7 with SMTP id l7so345558yen.27 for ; Tue, 07 Aug 2012 17:49:46 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type :x-gm-message-state; bh=aqwrs1r7dpNB1kJdMzmtu0iwTv2iPWKoWIRcn4XjMlA=; b=SGSKH/v6bn3iWqVLN4YQygSX6MunFMwG7SsT41Uk7V2CrYcFc1B+5VlJHoHGak6SHI wU8YWtJ4/JqPsx9q5i8daSvOmc0Oq0DE5ElGn7wLfwPDcLtvzfFxZ+WJZ+tWjK8mvJxG cwu6LeR6pl2VKI1rgXHF6DhJWrie90ga+0lUqgiCp3asg2UuhopeLtJJpey1BzBkiUYt CUU041SjSvZKiPNtQlKZ8wA51PQ7lKxUrYPnTCkudOQHYz+41l4qf4TV3wi9a0f49A9f gLcvRX6W8C1ksJjxPV/W1xlJ8AWZd3jpyQtiqmyj27j58Enw5MUoD1Gp2q3dAVN3pp2C e2hQ== MIME-Version: 1.0 Received: by 10.43.106.147 with SMTP id du19mr12927725icc.56.1344386986397; Tue, 07 Aug 2012 17:49:46 -0700 (PDT) Received: by 10.231.133.201 with HTTP; Tue, 7 Aug 2012 17:49:46 -0700 (PDT) Date: Wed, 8 Aug 2012 02:49:46 +0200 Message-ID: Subject: Problem with Pango size text when printing From: =?ISO-8859-1?Q?Joaqu=EDn_Goicoechea?= To: gtkmm-list@gnome.org Content-Type: multipart/alternative; boundary=20cf30334d31c3cf0e04c6b67c0b X-Gm-Message-State: ALoCoQmJUzCkkK5tyEiOXlRs8dMawXM38wHrg61CMKX8yfMoo7+Xxyga/c1G2C36uqfD6kPG1Fk6 X-BeenThere: gtkmm-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: gtkmm general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 08 Aug 2012 00:50:11 -0000 --20cf30334d31c3cf0e04c6b67c0b Content-Type: text/plain; charset=ISO-8859-1 Hi, I have the next code to adapt the text size, it works fine in my custom widget: Pango::FontDescription fuente ("Purisa"); m_refLayout->set_font_description (fuente); // m_refLayout is a Glib::RefPtr fuente.set_size (x_f * Pango::SCALE); // int x_f = 32 m_refLayout->set_text(msg); m_refLayout->get_pixel_size(x_m,y_m); // int x_m, y_m x_f=((ancho)*x_f)/x_m; // ancho = width, I want to use. fuente.set_size (x_f*Pango::SCALE); ... m_refLayout->update_from_cairo_context(cr); m_refLayout->add_to_cairo_context(cr); But when I try to print, fuente.set_size doesn't work and all the text has de same size. To do that I want, I have to set the size with FontDescription constructor: ... char h[10]; sprintf (h, "%d",x_f); fuente_string ="Purisa "+ Glib::ustring(h); m_refLayout->set_font_description (Pango::FontDescription(fuente_string)); ... Why? Do you know a good Pango tutorial for beginners ? Thanks and sorry for my English --20cf30334d31c3cf0e04c6b67c0b Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi,

I have the next code to adapt the text size, it works fine in my= custom widget:


=A0Pango::FontDescription fuente ("Purisa&q= uot;);
=A0m_refLayout->set_font_description (fuente); // m_refLayout = is a Glib::RefPtr<Pango::Layout>
=A0 fuente.set_size (x_f * Pango::SCALE); // int x_f =3D 32
=A0=A0 m_ref= Layout->set_text(msg);
=A0=A0 m_refLayout->get_pixel_size(x_m,y_m)= ; // int x_m, y_m
=A0=A0 x_f=3D((ancho)*x_f)/x_m; // ancho =3D width, I = want to use.
=A0=A0 fuente.set_size (x_f*Pango::SCALE);
=A0=A0 ...
=A0=A0 m_refLay= out->update_from_cairo_context(cr);=A0
=A0=A0 m_refLayout->add_to= _cairo_context(cr);=A0
=A0=A0


But when I try to print, fuen= te.set_size doesn't work and all the text has de same size. To do that = I want, I have to set the size with FontDescription constructor:

...
=A0 char h[10];
=A0=A0 sprintf (h, "%d",x_f);
= =A0=A0 fuente_string =3D"Purisa "+ Glib::ustring(h);
=A0=A0 m_= refLayout->set_font_description (Pango::FontDescription(fuente_string));=
...
=A0

Why?

Do you know a good Pango tutorial for beginners ?

T= hanks and sorry for my English
--20cf30334d31c3cf0e04c6b67c0b-- From nalin4linux77@gmail.com Sun Aug 12 03:45:14 2012 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 menubar.gnome.org (Postfix) with ESMTP id 10F967501AC for ; Sun, 12 Aug 2012 03:45:14 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.448 X-Spam-Level: X-Spam-Status: No, score=-2.448 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_FONT_SIZE_LARGE=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id TJ4ejdKiYnBB for ; Sun, 12 Aug 2012 03:45:00 +0000 (UTC) Received: from mail-ob0-f182.google.com (mail-ob0-f182.google.com [209.85.214.182]) by menubar.gnome.org (Postfix) with ESMTP id CECB87501A4 for ; Sun, 12 Aug 2012 03:44:59 +0000 (UTC) Received: by obbun3 with SMTP id un3so8676180obb.27 for ; Sat, 11 Aug 2012 20:44:59 -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=fRyxdgxlp5WQSszmbSYRthZuFnzrmOQQVtO3wZn3nE4=; b=xqqkn+BgITF0CNYaW6fx+gNIgg93bE8S/WnKCnqukHjcjlKfsg6ZKY639+nkglEomx uzs8mBKJYdU6tQvqbogTbfaMa/f/X+/RLIxYQ3x/edpZnQdWAyIFKPpiuyG66gTWPm2u h5lGVHEI+gkMCSW0h39uYPE7MVbY6Lc4tXpMUlvz5mkqzYEOcxpclDbv9Oht6cbB7oHp 5x9nmK7UEeY7ybuGkP/ScFIzPDfACFu8mKT5vvYzFcciB91Vqp3hs72TEy7uTx9vOka/ YnFjTp/LhIyR9dIDmEvlcqXf2c8npJCE6w/7VttnCShjZ97LTwp6tBmchTHGn6wI+L+k tN0g== MIME-Version: 1.0 Received: by 10.50.222.162 with SMTP id qn2mr2159485igc.46.1344743099676; Sat, 11 Aug 2012 20:44:59 -0700 (PDT) Received: by 10.50.7.74 with HTTP; Sat, 11 Aug 2012 20:44:59 -0700 (PDT) Date: Sun, 12 Aug 2012 09:14:59 +0530 Message-ID: Subject: Cursor movement in Text-buffer << From: nalin4linux77 linux To: gtkmm-list@gnome.org Content-Type: multipart/alternative; boundary=14dae9340fbfc538d404c7096656 X-BeenThere: gtkmm-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: gtkmm general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 12 Aug 2012 03:45:14 -0000 --14dae9340fbfc538d404c7096656 Content-Type: text/plain; charset=ISO-8859-1 How can i hook cursor movement in Text-Buffer ? <<< -- *GNU General Public License **<<* *FREE SOFTWARE FREE SOCIETY << * --14dae9340fbfc538d404c7096656 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable How can i hook cursor movement in Text-Buffer ? <<<

--
GNU General Public License <<
FREE SOFTWARE FREE SOCIETY <<


--14dae9340fbfc538d404c7096656-- From arbolone@gmail.com Sun Aug 12 10:54:59 2012 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 menubar.gnome.org (Postfix) with ESMTP id 39C8575057A for ; Sun, 12 Aug 2012 10:54:59 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -0.8 X-Spam-Level: X-Spam-Status: No, score=-0.8 tagged_above=-999 required=2 tests=[BAYES_20=-0.001, 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 menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id V6y+380iU0Ie for ; Sun, 12 Aug 2012 10:54:44 +0000 (UTC) Received: from mail-ob0-f182.google.com (mail-ob0-f182.google.com [209.85.214.182]) by menubar.gnome.org (Postfix) with ESMTP id 568BF750114 for ; Sun, 12 Aug 2012 10:54:44 +0000 (UTC) Received: by obbun3 with SMTP id un3so9549676obb.27 for ; Sun, 12 Aug 2012 03:54:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id:mime-version:content-type:x-mailer :thread-index:content-language; bh=d6OlwGjZBj1Jrxj9xLJHLMxOmj9kx9fft5V6s/8PGh8=; b=PTTUyRQOEPDzS2CmigwAYeAr4yey9jwKOOTBjEOzKj1G8/nB1Apw1woQ7cqay2g17Q XR4JzfHPBWnjU0iMwdWk0h+zRIellzIwkmILnCZKGf53EBF2Fx5j5qHiIdkpSHj8wybt Y0ykzL6YWgHSx2EtjczEKhZ1U0us+HnyehLeUSzwNTnI4fGASise51v4njAHn73hJkYK XM6DdYZPqvv9uM17lt07TaTwxhHbEyoXs7OyiXMUN1B6kQ/Vi2T0uVAboRmiPiN7qpM/ BAH9bGPC2Fcz1Lj5joW9tMludMCtGxPj/TIcZvvsq8ZQdALv/dbmSYi5Ih5S3rqNt7BO d03Q== Received: by 10.50.163.3 with SMTP id ye3mr2686372igb.24.1344768885091; Sun, 12 Aug 2012 03:54:45 -0700 (PDT) Received: from ArbolOnePC (CPE602ad07a8576-CM602ad07a8573.cpe.net.cable.rogers.com. [99.228.43.239]) by mx.google.com with ESMTPS id bo7sm8101950igb.2.2012.08.12.03.54.43 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 12 Aug 2012 03:54:44 -0700 (PDT) From: Arbol One To: Subject: Grab the user's choice Date: Sun, 12 Aug 2012 06:54:42 -0400 Message-ID: <000701cd7878$e195c530$a4c14f90$@com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0008_01CD7857.5A842530" X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: Ac14eOBas7xO2qLfRSCW/DO//HCXoA== Content-Language: en-us X-BeenThere: gtkmm-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: gtkmm general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 12 Aug 2012 10:54:59 -0000 This is a multi-part message in MIME format. ------=_NextPart_000_0008_01CD7857.5A842530 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Howdy kids. Using prepend_text() in a Gtk::ComboBoxEntryText a pre-defined list of choices are provided to the user to choose from. I would like to grab the user's choice right a way; that would spun another aspect of the program. Any body? A friend loveth at all times, and a brother is born for adversity [King Salomon ] ------=_NextPart_000_0008_01CD7857.5A842530 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Howdy = kids.

Using prepend_text() in a = Gtk::ComboBoxEntryText a pre-defined list of choices are provided to the = user to choose from. I would like to grab the user's choice right a way; = that would spun another aspect of the program.

Any body?

 

A friend = loveth at all times, and a brother is born for adversity [King Salomon = ]

 

------=_NextPart_000_0008_01CD7857.5A842530-- From rnsribeiro@gmail.com Tue Aug 14 19:23:50 2012 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 menubar.gnome.org (Postfix) with ESMTP id 6681D750507 for ; Tue, 14 Aug 2012 19:23:50 +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 menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id g2T1uLyGju1f for ; Tue, 14 Aug 2012 19:23:49 +0000 (UTC) Received: from mail-vc0-f182.google.com (mail-vc0-f182.google.com [209.85.220.182]) by menubar.gnome.org (Postfix) with ESMTP id 00C7C750490 for ; Tue, 14 Aug 2012 19:23:48 +0000 (UTC) Received: by vcbgb22 with SMTP id gb22so1351314vcb.27 for ; Tue, 14 Aug 2012 12:23:54 -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=4OV/5tTVe1r3Pgj/z0K69PAY0GUalVmeI+rRq83fxzY=; b=DeEleWxDFoB4ya3Akr18/YpnNFz8kmdWMyq+XofsT5lcdFVn6VsW36hNs/eHGtbpuJ Yo2IWIIF7jI4DwOU2e9a2mNzrzae2ZzudZsMw6zyd1MMu4AItdmFYzw4TCZ2bx0LuVw9 495G4yZCZcDL7Mr1euMmFMofPy6HEoP+2/YS29etPTELYrseN/MEPfBnhm4aqbVt8Re1 3plFtjIl1EwGngS0zn1DOYxvD349DvnDFDDToe01ns8IIY+AJJPxKMWoKCin0cCWZP0h iUwEk0GEQJC42xCpXX/QlzfTr4aErVCn0keOjKYOLQuDTGboNkGxJU0Tg2ao2JLOPJjz zQMg== Received: by 10.52.69.44 with SMTP id b12mr9812056vdu.77.1344972234515; Tue, 14 Aug 2012 12:23:54 -0700 (PDT) MIME-Version: 1.0 Received: by 10.58.35.7 with HTTP; Tue, 14 Aug 2012 12:23:34 -0700 (PDT) From: Rodrigo Nunes Date: Tue, 14 Aug 2012 16:23:34 -0300 Message-ID: Subject: How to convert Glib::ustring to float or double To: gtkmm-list Content-Type: multipart/alternative; boundary=20cf3071cee64565d004c73ec073 X-BeenThere: gtkmm-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: gtkmm general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Aug 2012 19:23:50 -0000 --20cf3071cee64565d004c73ec073 Content-Type: text/plain; charset=ISO-8859-1 How to convert Glib::ustring to float or double, could someone pass me an example? thank you. --20cf3071cee64565d004c73ec073 Content-Type: text/html; charset=ISO-8859-1 How to convert Glib::ustring to float or double, could someone pass me an example?

thank you.
--20cf3071cee64565d004c73ec073-- From kevin.brightwell2@gmail.com Tue Aug 14 19:37:03 2012 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 menubar.gnome.org (Postfix) with ESMTP id DBEA97504EB for ; Tue, 14 Aug 2012 19:37:03 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.295 X-Spam-Level: X-Spam-Status: No, score=-2.295 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, TW_GT=0.077, TW_TK=0.077] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id sh9xM177r2R3 for ; Tue, 14 Aug 2012 19:37:02 +0000 (UTC) Received: from mail-qc0-f182.google.com (mail-qc0-f182.google.com [209.85.216.182]) by menubar.gnome.org (Postfix) with ESMTP id BFEFE750275 for ; Tue, 14 Aug 2012 19:37:01 +0000 (UTC) Received: by qcsg15 with SMTP id g15so1035949qcs.27 for ; Tue, 14 Aug 2012 12:37:07 -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=A9qtlEFOBoMx5IZ5chbjZhPCzO4Sb+8y3Tq6kQ4GmVk=; b=PHGX4vvQmXSb7aVPQhLPbVkmFEw87nipHcloMDJrDB3BRtnAhQxQ7hnl3qW9jpXcds 85O2C1pKshb37N8vGCfz2lQ1JYZPmCwehAQ8UD4b9ocNQEUBo6xss4dJiOnxkdPZhpnd DKhDvp2mG7ksIl2VV5InKquOU4ofRwYf5kQhqqufjxoAZTixBz45GpP/hpid2aNJM+rV /mOZTlNkjCzhxNzESkzmObA66z7o7x6IiR/hFlktyr+2A3oU77IITpelSglCGdYDGRer jm10o3UEcjkRLBxQ1kzBiApLFFXXPaUaGgKuApQsQNB+JmszeAfffYf16NXKlf5ExstD poYQ== MIME-Version: 1.0 Received: by 10.224.31.5 with SMTP id w5mr2156199qac.84.1344973027297; Tue, 14 Aug 2012 12:37:07 -0700 (PDT) Received: by 10.49.133.135 with HTTP; Tue, 14 Aug 2012 12:37:07 -0700 (PDT) In-Reply-To: References: Date: Tue, 14 Aug 2012 15:37:07 -0400 Message-ID: Subject: Re: How to convert Glib::ustring to float or double From: Kevin Brightwell To: Rodrigo Nunes Content-Type: multipart/alternative; boundary=20cf3074b6c4864b1604c73eefa4 Cc: gtkmm-list X-BeenThere: gtkmm-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: gtkmm general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Aug 2012 19:37:04 -0000 --20cf3074b6c4864b1604c73eefa4 Content-Type: text/plain; charset=ISO-8859-1 It is the same as a regular string, treat it as so. You can also use the usting::c_str() to access the underlying C-style string to pass to atoX methods. Cheers, Kevin On Tue, Aug 14, 2012 at 3:23 PM, Rodrigo Nunes wrote: > How to convert Glib::ustring to float or double, could someone pass me an > example? > > thank you. > > _______________________________________________ > gtkmm-list mailing list > gtkmm-list@gnome.org > https://mail.gnome.org/mailman/listinfo/gtkmm-list > > -- Kevin Brightwell *Year 4 Bachelor of Computer Engineering (BESc.) Year 3 Bachelor of Computer Science (BSc.) * Residence Don - Saugeen-Maitland Hall Western University www.westernu.ca e. kevin.brightwell2@gmail.com c. 226.678.4927 --20cf3074b6c4864b1604c73eefa4 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable It is the same as a regular string, treat it as so.

You can also use= the usting::c_str() to access the underlying C-style string to pass to ato= X methods.

Cheers,
Kevin

On Tu= e, Aug 14, 2012 at 3:23 PM, Rodrigo Nunes <rnsribeiro@gmail.com>= wrote:
How to convert Glib::ustring to float or dou= ble, could someone pass me an example?

thank you.

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




--
Kevin BrightwellYear 4 Bachelor of Computer Engineering (BESc.)
Year 3 Bachelor of C= omputer Science (BSc.)

Residence Don - Saugeen-Maitland Hall
Western University www.west= ernu.ca
e. kevin.brightwell2@gmail.com c. 226.678.4927

--20cf3074b6c4864b1604c73eefa4-- From rnsribeiro@gmail.com Tue Aug 14 19:56:08 2012 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 menubar.gnome.org (Postfix) with ESMTP id 97ECC750516 for ; Tue, 14 Aug 2012 19:56:08 +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 menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id iQDtANB6gzrY for ; Tue, 14 Aug 2012 19:55:54 +0000 (UTC) Received: from mail-vb0-f54.google.com (mail-vb0-f54.google.com [209.85.212.54]) by menubar.gnome.org (Postfix) with ESMTP id 3F5B0750507 for ; Tue, 14 Aug 2012 19:55:53 +0000 (UTC) Received: by vbmv11 with SMTP id v11so1419781vbm.27 for ; Tue, 14 Aug 2012 12:55:59 -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-type; bh=KBvV7nsKlQkKjTgjkkpL0sbSoOiNamA5vGPWtRsOO1U=; b=JQ7/oC+JMVfvH34rlh4ftWECwDWcCKoeBpLVZjwdL7bFxTHrVFHpXCZKer15V75rFS L+lg4rtG4mPkHKPO5/zVEwxg4sz9qPbV2gA8BrQIg/dg4ZM+ZxNszDOTpzu8B8UipCKi f+vDpUg6/KDRmq/cJQgqhsU82Dj/GP6D27hy5TZa66B9TEXzuimHOoKhDcsC6Trc1FOH kPeT7lqv9SUWSdFemI37Nc0mmIMKOVgVST8zdrYvI7rpHHUnW7h9wBrEAx4UIDj+p+bZ VGqvF/7JKC9cf1BTm2OgT/ZT75Pvrt6CgzUBnQp4+6/UpyBtFspkW59/Tz90Ak71nfOX vjyA== Received: by 10.221.0.78 with SMTP id nl14mr11329929vcb.21.1344974159717; Tue, 14 Aug 2012 12:55:59 -0700 (PDT) MIME-Version: 1.0 Received: by 10.58.35.7 with HTTP; Tue, 14 Aug 2012 12:55:39 -0700 (PDT) In-Reply-To: References: From: Rodrigo Nunes Date: Tue, 14 Aug 2012 16:55:39 -0300 Message-ID: Subject: Re: How to convert Glib::ustring to float or double To: Kevin Brightwell Content-Type: multipart/alternative; boundary=bcaec54eeaae05a55504c73f33a7 Cc: gtkmm-list X-BeenThere: gtkmm-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: gtkmm general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Aug 2012 19:56:08 -0000 --bcaec54eeaae05a55504c73f33a7 Content-Type: text/plain; charset=ISO-8859-1 This method work? Glib::ustring testUString("1.23456789"); char * UStringToCharArray = testUString.c_str(); double floatingPoint = atof(UStringToCharArray); 2012/8/14 Kevin Brightwell > You can also use the usting::c_str() to access the underlying C-style > string to pass to atoX methods. --bcaec54eeaae05a55504c73f33a7 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable This method work?


Glib::ustring testUString("1.23456789");
char * UStringToCharArray =3D testUString.c_str();
double floatingPoint =3D atof(UStringToCharArray);


2012/8/14 Kevin Brightwell <kevin.brightwell2= @gmail.com>
You can also use the usting::c_str() to acce= ss the underlying C-style string to pass to atoX methods.

--bcaec54eeaae05a55504c73f33a7-- From kevin.brightwell2@gmail.com Tue Aug 14 20:02:45 2012 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 menubar.gnome.org (Postfix) with ESMTP id 5B140750476 for ; Tue, 14 Aug 2012 20:02:45 +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 menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id OBiH7FTPlo4D for ; Tue, 14 Aug 2012 20:02:43 +0000 (UTC) Received: from mail-qa0-f54.google.com (mail-qa0-f54.google.com [209.85.216.54]) by menubar.gnome.org (Postfix) with ESMTP id 15D12750078 for ; Tue, 14 Aug 2012 20:02:42 +0000 (UTC) Received: by qatn12 with SMTP id n12so924519qat.6 for ; Tue, 14 Aug 2012 13:02:48 -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=4Q7v8aZl0YCWk/UqzzLZKtfr450mkQF4IerDchb+fyo=; b=E3UptxIHW9hjDTQ5RO+8WaxC/Cx2Mzd7F/hKsWC9C5ZE8TI56g/zDLZcgUwvV6dugM LJ32psSghw549fJ/vIOXWrZQo5r2fd1K3Z4rwWMxiAWarAyf1tt6A/hu30DVgNwEOU6V EbkYy3JEMX1Bp6M7xI7Lg/ex27xn2ToN560tDHtUQIEM23S05m7irLEbxfXIUPjzOig1 OvBzfHxoohbUKESe9hd/oTAHq2BuX1uJoxqIImDq1eL5NAWQ7npn5PbgOs2w+7DTHMgs H8R+F9pf54NpXNw7Dz9j2gDlmRgWmgeF5fdI9HlGDs96zRtuqMntm8zvDAhBV8ZvWK52 WsDA== MIME-Version: 1.0 Received: by 10.224.18.209 with SMTP id x17mr23249011qaa.15.1344974568377; Tue, 14 Aug 2012 13:02:48 -0700 (PDT) Received: by 10.49.133.135 with HTTP; Tue, 14 Aug 2012 13:02:48 -0700 (PDT) In-Reply-To: References: Date: Tue, 14 Aug 2012 16:02:48 -0400 Message-ID: Subject: Re: How to convert Glib::ustring to float or double From: Kevin Brightwell To: Rodrigo Nunes Content-Type: multipart/alternative; boundary=bcaec51dd7c5614e4b04c73f4b50 Cc: gtkmm-list X-BeenThere: gtkmm-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: gtkmm general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Aug 2012 20:02:45 -0000 --bcaec51dd7c5614e4b04c73f4b50 Content-Type: text/plain; charset=ISO-8859-1 Yes, that should work. You could also just do: double a = atof(myString.c_str()); They are syntactically the same. Kevin On Tue, Aug 14, 2012 at 3:55 PM, Rodrigo Nunes wrote: > This method work? > > Glib::ustring testUString("1.23456789"); > char * UStringToCharArray = testUString.c_str(); > double floatingPoint = atof(UStringToCharArray); > > > > 2012/8/14 Kevin Brightwell > >> You can also use the usting::c_str() to access the underlying C-style >> string to pass to atoX methods. > > > -- Kevin Brightwell *Year 4 Bachelor of Computer Engineering (BESc.) Year 3 Bachelor of Computer Science (BSc.) * Residence Don - Saugeen-Maitland Hall Western University www.westernu.ca e. kevin.brightwell2@gmail.com c. 226.678.4927 --bcaec51dd7c5614e4b04c73f4b50 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Yes, that should work. You could also just do:

double a =3D atof(myS= tring.c_str());

They are syntactically the same.

Kevin
On Tue, Aug 14, 2012 at 3:55 PM, Rodrigo Nunes= <rnsribeiro@gmail.com> wrote:
This method <= span>work?

Glib::ustring testUString("1.23456789");
char * UStringToCharArray =3D testUString.c_str();
double floatingPoint =3D atof(UStringToCharArray);


2012/8/14 Kevin Bri= ghtwell <kevin.brightwell2@gmail.com>
You can also use the usting::c_str() to acce= ss the underlying C-style string to pass to atoX methods.




--
Kevin Brigh= twell
Year 4 Bachelor of Computer Engineering (BESc.)
Year 3 Bache= lor of Computer Science (BSc.)

Residence Don - Saugeen-Maitland Hal= l
Western University www.west= ernu.ca
e. kevin.brightwell2@gmail.com c. 226.678.4927

--bcaec51dd7c5614e4b04c73f4b50-- From dossantos@ebu.ch Tue Aug 14 20:34:21 2012 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 menubar.gnome.org (Postfix) with ESMTP id D0E72750476 for ; Tue, 14 Aug 2012 20:33:09 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -4.133 X-Spam-Level: X-Spam-Status: No, score=-4.133 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, TW_KG=0.077, T_RP_MATCHES_RCVD=-0.01] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id q1EiCpmt6Gn8 for ; Tue, 14 Aug 2012 20:32:51 +0000 (UTC) X-Greylist: delayed 616 seconds by postgrey-1.34 at menubar.gnome.org; Tue, 14 Aug 2012 20:32:50 UTC Received: from mailgate4.ebu.ch (mailgate4.ebu.ch [193.43.93.76]) by menubar.gnome.org (Postfix) with ESMTP id 959E9750078 for ; Tue, 14 Aug 2012 20:32:50 +0000 (UTC) Received: from gvashc1drs.gva.ebu.ch ([10.73.222.238]) by mailgate4.ebu.ch with ESMTP/TLS/AES128-SHA; 14 Aug 2012 22:22:39 +0200 Received: from GVAMAIL.gva.ebu.ch ([169.254.1.64]) by gvashc1drs.gva.ebu.ch ([10.73.222.238]) with mapi; Tue, 14 Aug 2012 22:22:39 +0200 From: "Dos Santos, Oliveira" To: "'gtkmm-list@gnome.org'" Date: Tue, 14 Aug 2012 22:22:37 +0200 Subject: Error compiling Gstreamermm for MinGW32/64 Thread-Topic: Error compiling Gstreamermm for MinGW32/64 Thread-Index: Ac16WorpZ4Q+B9CaQy+M3ccMQsmJ3A== Message-ID: <03DD8591022238418FAD9197DAB27BA3010B3850A64E@GVAMAIL.gva.ebu.ch> Accept-Language: fr-FR, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: fr-FR, en-US Content-Type: multipart/alternative; boundary="_000_03DD8591022238418FAD9197DAB27BA3010B3850A64EGVAMAILgvae_" MIME-Version: 1.0 X-BeenThere: gtkmm-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: gtkmm general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Aug 2012 20:34:22 -0000 --_000_03DD8591022238418FAD9197DAB27BA3010B3850A64EGVAMAILgvae_ Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Hi everybody, I need some help to compile gstreamermm-0.10.10 for MinGW32/64. I'm on Fedo= ra 17 - x86_64 - with kernel 3.5.1-1. I followed the usual way to compile for MinGW; I fix some errors before this one ( in wrap.cc ) but this... i don't know h= ow to correct that... I try some stuff without success especially with pkgc= onfig path. >mingw32-configure (with and without the pkgconfig path) >make... and error ... That's my output (the interesting part, I can provide the output of the con= figure part) make: *** [all] Error 2 depbase=3D`echo media_player_gtkmm/player_window.o | sed 's|[^/]*$|.deps/&|= ;s|\.o$||'`;\ i686-w64-mingw32-g++ -DHAVE_CONFIG_H -I.. -I../gstreamer -mms-bitfields = -I/usr/i686-w64-mingw32/sys-root/mingw/include/giomm-2.4 -I/usr/i686-w64-mi= ngw32/sys-root/mingw/lib/giomm-2.4/include -I/usr/i686-w64-mingw32/sys-root= /mingw/include/glibmm-2.4 -I/usr/i686-w64-mingw32/sys-root/mingw/lib/glibmm= -2.4/include -I/usr/i686-w64-mingw32/sys-root/mingw/include/glib-2.0 -I/usr= /i686-w64-mingw32/sys-root/mingw/lib/glib-2.0/include -I/usr/i686-w64-mingw= 32/sys-root/mingw/include/sigc++-2.0 -I/usr/i686-w64-mingw32/sys-root/mingw= /lib/sigc++-2.0/include -I/usr/i686-w64-mingw32/sys-root/mingw/include/libx= ml++-2.6 -I/usr/i686-w64-mingw32/sys-root/mingw/lib/libxml++-2.6/include -I= /usr/i686-w64-mingw32/sys-root/mingw/include/libxml2 -I/usr/i686-w64-mingw3= 2/sys-root/mingw/include/gstreamer-0.10 -I/usr/i686-w64-mingw32/sys-root/mi= ngw/include/gtkmm-3.0 -I/usr/i686-w64-mingw32/sys-root/mingw/lib/gtkmm-3.0/= include -I/usr/i686-w64-mingw32/sys-root/mingw/include/atkmm-1.6 -I/usr/i68= 6-w64-mingw32/sys-root/mingw/include/pangomm-1.4 -I/usr/i686-w64-mingw32/sy= s-root/mingw/lib/pangomm-1.4/include -I/usr/i686-w64-mingw32/sys-root/mingw= /include/gtk-3.0 -I/usr/i686-w64-mingw32/sys-root/mingw/include/cairomm-1.0= -I/usr/i686-w64-mingw32/sys-root/mingw/lib/cairomm-1.0/include -I/usr/i686= -w64-mingw32/sys-root/mingw/include/gdk-pixbuf-2.0 -I/usr/i686-w64-mingw32/= sys-root/mingw/include/gdkmm-3.0 -I/usr/i686-w64-mingw32/sys-root/mingw/lib= /gdkmm-3.0/include -I/usr/i686-w64-mingw32/sys-root/mingw/include/atk-1.0 -= I/usr/i686-w64-mingw32/sys-root/mingw/include/pango-1.0 -I/usr/i686-w64-min= gw32/sys-root/mingw/include/cairo -I/usr/i686-w64-mingw32/sys-root/mingw/in= clude/pixman-1 -I/usr/i686-w64-mingw32/sys-root/mingw/include -I/usr/i686-w= 64-mingw32/sys-root/mingw/include/freetype2 -I/usr/i686-w64-mingw32/sys-roo= t/mingw/include/libpng15 -Wall -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE= =3D2 -fexceptions --param=3Dssp-buffer-size=3D4 -MT media_player_gtkmm/play= er_window.o -MD -MP -MF $depbase.Tpo -c -o media_player_gtkmm/player_window= .o media_player_gtkmm/player_window.cc &&\ mv -f $depbase.Tpo $depbase.Po media_player_gtkmm/player_window.cc:27:22: fatal error: gdk/gdkx.h: No such= file or directory compilation terminated. make[2]: *** [media_player_gtkmm/player_window.o] Error 1 make[2]: Leaving directory `/home/dossantos/App/gstreamermm-0.10.10/example= s' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/dossantos/App/gstreamermm-0.10.10' make: *** [all] Error 2 Anyone has an idea ? Just a tips to try again :P Thanks DSO ---------------------------------------------------------------------------= --- ************************************************** This email and any files transmitted with it are confidential and intended = solely for the use of the individual or entity to whom they are addressed. If you have received this email in error, please notify the system manager.= This footnote also confirms that this email message has been swept by the = mailgateway ************************************************** --_000_03DD8591022238418FAD9197DAB27BA3010B3850A64EGVAMAILgvae_ Content-Type: text/html; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable

Hi everybody,

 

= I need some help to compile gstreamermm-0.10.10 for MinGW32/64. I’m o= n Fedora 17 – x86_64 – with kernel 3.5.1-1.

 

I followed the us= ual way to compile for MinGW;

&nbs= p;

I fix some errors before this one ( in wra= p.cc ) but this... i don’t know how to correct that... I try some stu= ff without success especially with pkgconfig path.

 

>mingw32-configur= e (with and without the pkgconfig path)

= >make... and error ...

 

That’s my outp= ut (the interesting part, I can provide the output of the configure part)

 

make: *** [all] Error 2

depbase=3D`echo= media_player_gtkmm/player_window.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`= ;\

i686-w64-mingw32-g++ -DHAVE_CONFIG_H&= nbsp;  -I.. -I../gstreamer  -mms-bitfields -I/usr/i686-w64-mingw3= 2/sys-root/mingw/include/giomm-2.4 -I/usr/i686-w64-mingw32/sys-root/mingw/l= ib/giomm-2.4/include -I/usr/i686-w64-mingw32/sys-root/mingw/include/glibmm-= 2.4 -I/usr/i686-w64-mingw32/sys-root/mingw/lib/glibmm-2.4/include -I/usr/i6= 86-w64-mingw32/sys-root/mingw/include/glib-2.0 -I/usr/i686-w64-mingw32/sys-= root/mingw/lib/glib-2.0/include -I/usr/i686-w64-mingw32/sys-root/mingw/incl= ude/sigc++-2.0 -I/usr/i686-w64-mingw32/sys-root/mingw/lib/sigc++-2.0/includ= e -I/usr/i686-w64-mingw32/sys-root/mingw/include/libxml++-2.6 -I/usr/i686-w= 64-mingw32/sys-root/mingw/lib/libxml++-2.6/include -I/usr/i686-w64-mingw32/= sys-root/mingw/include/libxml2 -I/usr/i686-w64-mingw32/sys-root/mingw/inclu= de/gstreamer-0.10 -I/usr/i686-w64-mingw32/sys-root/mingw/include/gtkmm-3.0 = -I/usr/i686-w64-mingw32/sys-root/mingw/lib/gtkmm-3.0/include -I/usr/i686-w6= 4-mingw32/sys-root/mingw/include/atkmm-1.6 -I/usr/i686-w64-mingw32/sys-root= /mingw/include/pangomm-1.4 -I/usr/i686-w64-mingw32/sys-root/mingw/lib/pango= mm-1.4/include -I/usr/i686-w64-mingw32/sys-root/mingw/include/gtk-3.0 -I/us= r/i686-w64-mingw32/sys-root/mingw/include/cairomm-1.0 -I/usr/i686-w64-mingw= 32/sys-root/mingw/lib/cairomm-1.0/include -I/usr/i686-w64-mingw32/sys-root/= mingw/include/gdk-pixbuf-2.0 -I/usr/i686-w64-mingw32/sys-root/mingw/include= /gdkmm-3.0 -I/usr/i686-w64-mingw32/sys-root/mingw/lib/gdkmm-3.0/include -I/= usr/i686-w64-mingw32/sys-root/mingw/include/atk-1.0 -I/usr/i686-w64-mingw32= /sys-root/mingw/include/pango-1.0 -I/usr/i686-w64-mingw32/sys-root/mingw/in= clude/cairo -I/usr/i686-w64-mingw32/sys-root/mingw/include/pixman-1 -I/usr/= i686-w64-mingw32/sys-root/mingw/include -I/usr/i686-w64-mingw32/sys-root/mi= ngw/include/freetype2 -I/usr/i686-w64-mingw32/sys-root/mingw/include/libpng= 15    -Wall -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=3D2 -fe= xceptions --param=3Dssp-buffer-size=3D4 -MT media_player_gtkmm/player_windo= w.o -MD -MP -MF $depbase.Tpo -c -o media_player_gtkmm/player_window.o media= _player_gtkmm/player_window.cc &&\

mv -f $depbase.Tpo $depbase.Po

media_= player_gtkmm/player_window.cc:27:22: fatal error: gdk/gdkx.h: No such file = or directory

compilation terminated.

make[2]: *** [media_player_gtkmm/player_win= dow.o] Error 1

make[2]: Leaving director= y `/home/dossantos/App/gstreamermm-0.10.10/examples'

make[1]: *** [all-recursive] Error 1

make[1]: Leaving directory `/home/dossantos/App/gstreamermm-0.10.= 10'

make: *** [all] Error 2

 

 = ;

Anyone has an idea ? Just a tips to try aga= in :P

 

Thanks

 

DSO


**************************************************
This email and any files transmitted with it = are confidential and intended solely for the = use of the individual or entity to whom they are addressed.
If you have received this email in error, = please notify the system manager. This footnote also confirms that this email = message has been swept by the mailgateway
**************************************************

--_000_03DD8591022238418FAD9197DAB27BA3010B3850A64EGVAMAILgvae_-- From gcgg-gtkmm-list@m.gmane.org Thu Aug 16 01:50:22 2012 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 menubar.gnome.org (Postfix) with ESMTP id 04896750C11 for ; Thu, 16 Aug 2012 01:50:22 +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, HK_RANDOM_ENVFROM=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01] autolearn=no Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id aRc8LkAojhUW for ; Thu, 16 Aug 2012 01:50:06 +0000 (UTC) Received: from plane.gmane.org (plane.gmane.org [80.91.229.3]) by menubar.gnome.org (Postfix) with ESMTP id A5F6875048A for ; Thu, 16 Aug 2012 01:50:05 +0000 (UTC) Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1T1pDn-0005R0-Iz for gtkmm-list@gnome.org; Thu, 16 Aug 2012 03:50:03 +0200 Received: from nat-pool-sin-t.redhat.com ([209.132.188.18]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 16 Aug 2012 03:50:03 +0200 Received: from hyperair by nat-pool-sin-t.redhat.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 16 Aug 2012 03:50:03 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: gtkmm-list@gnome.org From: Chow Loong Jin Subject: Re: How to convert Glib::ustring to float or double Date: Thu, 16 Aug 2012 09:47:08 +0800 Lines: 46 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig06E6909EA82ED73C299D55CB" X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: nat-pool-sin-t.redhat.com User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:14.0) Gecko/20120714 Thunderbird/14.0 In-Reply-To: X-Enigmail-Version: 1.4.3 X-BeenThere: gtkmm-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: gtkmm general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Aug 2012 01:50:22 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig06E6909EA82ED73C299D55CB Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 15/08/2012 03:55, Rodrigo Nunes wrote: > Glib::ustring testUString("1.23456789"); > char * UStringToCharArray =3D testUString.c_str(); > double floatingPoint =3D atof(UStringToCharArray); That should probably be const char *. The strings returned by .c_str() sh= ould not be modified directly, and you should receive a warning or error for d= ropping the const qualifier there. --=20 Kind regards, Loong Jin --------------enig06E6909EA82ED73C299D55CB Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iQIcBAEBAgAGBQJQLFEcAAoJEPvVIltYh1KhsNAP/RpgDaSvJ6IMe+vNfRavslCL kb+5nn6bLC750xmqPisVKIwebDRb9VDYo9JaB9wJ0P5sBUwgM4GDumtdCPy0z7dG AIuc3KBP59X1ql/U/pGyozrnC3ZqKvjdApUGNFLii6qT3NqGrmrIZcfwm9ZnQGw+ E/ANgvhIphq7/OI36zwYZEBPWMBTUhAV6VB5LEgbF2Lq7TB/VlukCZVjF+eX8M5m XN32+SesoRJF4FEuk1SUpqm+tLXXDAeOfmDqW30Set8ZPtjKYjCRFpiVPGPZFSbR /eIQMIfLazFaRSjH25EeqXxKyX9QMKDYuks+qpjkFcJaJTfLSfHgtEOxOpAOOhWO 6hzIAUWLNcqoLkdvguaZebrKYJHrdO2zniwcZu/Uea4PpS8wnhNhOi/2zi+zzbXP jxkWNW2NlTYsNqdFDwmiv4L5wTG0tBVeyckrB2MvPfyDAtrDRWvpeT4CMB1+XU8H 8X4qv7PXvqALlIIFQY2q/YKIkn1RBQnKEQ4xqLUF1o870/4WjPFs+VxuqJ3QzIgJ MO/ZJT/1TKdp9i8mGWtG4qW5SLzBrK3wGw17wAT/I+lesT9W3w+HLGcJtOtSWlgi BtaxnvzMY5mQeiCnt0kzXwO7EFHPAiLt/oJ1Lm1BgU4SYyZi5x4FCsUmcEuKZyga qe2QdzAbkr94nYHkyVc9 =5gr/ -----END PGP SIGNATURE----- --------------enig06E6909EA82ED73C299D55CB-- From jaalburquerque@gmail.com Thu Aug 16 03:43:18 2012 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 menubar.gnome.org (Postfix) with ESMTP id 00856750397 for ; Thu, 16 Aug 2012 03:43:18 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.469 X-Spam-Level: X-Spam-Status: No, score=-2.469 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, TW_GT=0.077, TW_KG=0.077, TW_TK=0.077] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ne7uNd2u3VzQ for ; Thu, 16 Aug 2012 03:43:03 +0000 (UTC) Received: from mail-ob0-f182.google.com (mail-ob0-f182.google.com [209.85.214.182]) by menubar.gnome.org (Postfix) with ESMTP id 590A3750306 for ; Thu, 16 Aug 2012 03:43:03 +0000 (UTC) Received: by obbun3 with SMTP id un3so5415348obb.27 for ; Wed, 15 Aug 2012 20:43:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:subject:from:to:cc:date:in-reply-to:references :content-type:x-mailer:mime-version; bh=eNkZlUqc6tJNcrUZuOIXcmP3Eyo/XSzfUhtVEjlIKf0=; b=Wg4oJ2SPy3ip5Tf+OF4F95X0CDkRwv3mz40Rhc0Z+4XxIdR2twnJJb87FZUjtbqzNp eIp8VCpGlAi/9ktWqEoxCXQyxriKJyCCDR6pjMN/ibQFSHa8ti/u2fwMZYsistalfGI6 AUcJY2w5wotul9cRP4BEG+49qI+VGNfqopew+bK71CCsYirQ/aoFTVEJ0QMRvFib4fwB fQcLTKEoMw6ivpUU9p4F1P0ivPeSH15Tgn6PytpXfpWi+n/oSpJomrREgsquYVFj4mD0 vQVRyvQoo9bup/anuwRaxRJoqhaK0vOq2fChgCceKiW0L/Hga9h0oHf+XSALGEcYR3Ql oKvg== Received: by 10.182.85.8 with SMTP id d8mr25867338obz.70.1345088581538; Wed, 15 Aug 2012 20:43:01 -0700 (PDT) Received: from [192.168.1.100] (ip70-185-121-246.ga.at.cox.net. [70.185.121.246]) by mx.google.com with ESMTPS id th3sm3096300obb.6.2012.08.15.20.43.00 (version=SSLv3 cipher=OTHER); Wed, 15 Aug 2012 20:43:01 -0700 (PDT) Message-ID: <1345088579.12020.7.camel@jose-desktop> Subject: Re: Error compiling Gstreamermm for MinGW32/64 From: =?ISO-8859-1?Q?Jos=E9?= Alburquerque To: "Dos Santos, Oliveira" Date: Wed, 15 Aug 2012 23:42:59 -0400 In-Reply-To: <03DD8591022238418FAD9197DAB27BA3010B3850A64E@GVAMAIL.gva.ebu.ch> References: <03DD8591022238418FAD9197DAB27BA3010B3850A64E@GVAMAIL.gva.ebu.ch> Content-Type: multipart/mixed; boundary="=-590vYpEmbH2TFXzrnLyq" X-Mailer: Evolution 3.2.3-0ubuntu6 Mime-Version: 1.0 Cc: "'gtkmm-list@gnome.org'" X-BeenThere: gtkmm-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: gtkmm general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Aug 2012 03:43:18 -0000 --=-590vYpEmbH2TFXzrnLyq Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit On Tue, 2012-08-14 at 22:22 +0200, Dos Santos, Oliveira wrote: > Hi everybody, > > > > I need some help to compile gstreamermm-0.10.10 for MinGW32/64. I’m on > Fedora 17 – x86_64 – with kernel 3.5.1-1. > > > > I followed the usual way to compile for MinGW; > > > > I fix some errors before this one ( in wrap.cc ) but this... i don’t > know how to correct that... I try some stuff without success > especially with pkgconfig path. > Could you say (or provide a patch for) what you fixed? > > > >mingw32-configure (with and without the pkgconfig path) > > >make... and error ... > > > > That’s my output (the interesting part, I can provide the output of > the configure part) > > > > make: *** [all] Error 2 > > depbase=`echo media_player_gtkmm/player_window.o | sed 's|[^/]* > $|.deps/&|;s|\.o$||'`;\ > > i686-w64-mingw32-g++ -DHAVE_CONFIG_H -I.. -I../gstreamer > -mms-bitfields > -I/usr/i686-w64-mingw32/sys-root/mingw/include/giomm-2.4 > -I/usr/i686-w64-mingw32/sys-root/mingw/lib/giomm-2.4/include > -I/usr/i686-w64-mingw32/sys-root/mingw/include/glibmm-2.4 > -I/usr/i686-w64-mingw32/sys-root/mingw/lib/glibmm-2.4/include > -I/usr/i686-w64-mingw32/sys-root/mingw/include/glib-2.0 > -I/usr/i686-w64-mingw32/sys-root/mingw/lib/glib-2.0/include > -I/usr/i686-w64-mingw32/sys-root/mingw/include/sigc++-2.0 > -I/usr/i686-w64-mingw32/sys-root/mingw/lib/sigc++-2.0/include > -I/usr/i686-w64-mingw32/sys-root/mingw/include/libxml++-2.6 > -I/usr/i686-w64-mingw32/sys-root/mingw/lib/libxml++-2.6/include > -I/usr/i686-w64-mingw32/sys-root/mingw/include/libxml2 > -I/usr/i686-w64-mingw32/sys-root/mingw/include/gstreamer-0.10 > -I/usr/i686-w64-mingw32/sys-root/mingw/include/gtkmm-3.0 > -I/usr/i686-w64-mingw32/sys-root/mingw/lib/gtkmm-3.0/include > -I/usr/i686-w64-mingw32/sys-root/mingw/include/atkmm-1.6 > -I/usr/i686-w64-mingw32/sys-root/mingw/include/pangomm-1.4 > -I/usr/i686-w64-mingw32/sys-root/mingw/lib/pangomm-1.4/include > -I/usr/i686-w64-mingw32/sys-root/mingw/include/gtk-3.0 > -I/usr/i686-w64-mingw32/sys-root/mingw/include/cairomm-1.0 > -I/usr/i686-w64-mingw32/sys-root/mingw/lib/cairomm-1.0/include > -I/usr/i686-w64-mingw32/sys-root/mingw/include/gdk-pixbuf-2.0 > -I/usr/i686-w64-mingw32/sys-root/mingw/include/gdkmm-3.0 > -I/usr/i686-w64-mingw32/sys-root/mingw/lib/gdkmm-3.0/include > -I/usr/i686-w64-mingw32/sys-root/mingw/include/atk-1.0 > -I/usr/i686-w64-mingw32/sys-root/mingw/include/pango-1.0 > -I/usr/i686-w64-mingw32/sys-root/mingw/include/cairo > -I/usr/i686-w64-mingw32/sys-root/mingw/include/pixman-1 > -I/usr/i686-w64-mingw32/sys-root/mingw/include > -I/usr/i686-w64-mingw32/sys-root/mingw/include/freetype2 > -I/usr/i686-w64-mingw32/sys-root/mingw/include/libpng15 -Wall -O2 > -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions > --param=ssp-buffer-size=4 -MT media_player_gtkmm/player_window.o -MD > -MP -MF $depbase.Tpo -c -o media_player_gtkmm/player_window.o > media_player_gtkmm/player_window.cc &&\ > > mv -f $depbase.Tpo $depbase.Po > > media_player_gtkmm/player_window.cc:27:22: fatal error: gdk/gdkx.h: No > such file or directory > > compilation terminated. > > make[2]: *** [media_player_gtkmm/player_window.o] Error 1 > > make[2]: Leaving directory > `/home/dossantos/App/gstreamermm-0.10.10/examples' > > make[1]: *** [all-recursive] Error 1 > > make[1]: Leaving directory `/home/dossantos/App/gstreamermm-0.10.10' > > make: *** [all] Error 2 > > > > > > Anyone has an idea ? Just a tips to try again :P The problem is that the media player example was written mostly for the Linux platform because that is the main platform for which gstreamermm has been developed. I tweaked the example a little and maybe it can compile under windows with the tweaks. Could you try the attached patch and see if it helps? > > > > Thanks > > > > DSO > > > ______________________________________________________________________ > > ************************************************** > This email and any files transmitted with it are confidential and > intended solely for the use of the individual or entity to whom they > are addressed. > If you have received this email in error, please notify the system > manager. This footnote also confirms that this email message has been > swept by the mailgateway > ************************************************** > > _______________________________________________ > gtkmm-list mailing list > gtkmm-list@gnome.org > https://mail.gnome.org/mailman/listinfo/gtkmm-list -- José --=-590vYpEmbH2TFXzrnLyq Content-Disposition: attachment; filename="0001-Examples-Fix-the-media-player-example-for-MinGW.patch" Content-Type: text/x-patch; name="0001-Examples-Fix-the-media-player-example-for-MinGW.patch"; charset="UTF-8" Content-Transfer-Encoding: 8bit >From 1b92757df2cf1180c5acb25fa88f4598afcaa885 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Alburquerque?= Date: Wed, 15 Aug 2012 23:06:58 -0400 Subject: [PATCH] Examples: Fix the media player example for MinGW. * examples/media_player_gtkmm/main.cc: * examples/media_player_gtkmm/player_window.cc: * examples/media_player_gtkmm/player_window.h: Modify the code to not use the XImageSink plugin (which is is specific to the Linux Platform). Also include gdk/gdkwin32.h instead of gdk/gdkx.h when compiling for the Windows platform. --- ChangeLog | 11 ++++ examples/media_player_gtkmm/main.cc | 18 +----- examples/media_player_gtkmm/player_window.cc | 76 +++++++++++++++----------- examples/media_player_gtkmm/player_window.h | 7 +-- 4 files changed, 58 insertions(+), 54 deletions(-) diff --git a/ChangeLog b/ChangeLog index 33a35c8..a739ecc 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,14 @@ +2012-08-15 José Alburquerque + + Examples: Fix the media player example for MinGW. + + * examples/media_player_gtkmm/main.cc: + * examples/media_player_gtkmm/player_window.cc: + * examples/media_player_gtkmm/player_window.h: Modify the code to not + use the XImageSink plugin (which is is specific to the Linux + Platform). Also include gdk/gdkwin32.h instead of gdk/gdkx.h when + compiling for the Windows platform. + 2012-07-30 José Alburquerque Object: Add getter methods for the GMutex lock member. diff --git a/examples/media_player_gtkmm/main.cc b/examples/media_player_gtkmm/main.cc index b52b9fa..4df0f8d 100644 --- a/examples/media_player_gtkmm/main.cc +++ b/examples/media_player_gtkmm/main.cc @@ -19,12 +19,9 @@ #include #include #include -#include -#include // Plug-ins: #include -#include #include #include "player_window.h" @@ -46,21 +43,8 @@ int main(int argc, char** argv) return 1; } - // Create a video sink where video (if any) will be drawn: - Glib::RefPtr video_sink = - Gst::XImageSink::create("ximagesink"); - if(!video_sink) - { - std::cerr << "The ximagesink could not be created." << std::endl; - return 1; - } - - // Set the playbin's video-sink property so that our video sink is used - // for video display: - playbin->property_video_sink() = video_sink; - //Create our player window and give it the pipeline and video sink: - PlayerWindow mainWindow(playbin, video_sink); + PlayerWindow mainWindow(playbin); kit.run(mainWindow); // Clean up nicely: diff --git a/examples/media_player_gtkmm/player_window.cc b/examples/media_player_gtkmm/player_window.cc index 37b467d..719594f 100644 --- a/examples/media_player_gtkmm/player_window.cc +++ b/examples/media_player_gtkmm/player_window.cc @@ -18,7 +18,14 @@ #include #include + +#ifdef GDK_WINDOWING_X11 #include +#endif +#ifdef GDK_WINDOWING_WIN32 +#include +#endif + #include #include #include @@ -36,8 +43,7 @@ #include #include "player_window.h" -PlayerWindow::PlayerWindow(const Glib::RefPtr& playbin, - const Glib::RefPtr& video_sink) +PlayerWindow::PlayerWindow(const Glib::RefPtr& playbin) : m_vbox(false, 6), m_progress_label("000:00:00.000000000 / 000:00:00.000000000"), m_play_button(Gtk::Stock::MEDIA_PLAY), @@ -108,8 +114,10 @@ PlayerWindow::PlayerWindow(const Glib::RefPtr& playbin, m_rewind_button.set_sensitive(false); m_forward_button.set_sensitive(false); - m_play_bin = playbin; - m_video_sink = video_sink; + m_playbin = playbin; + + m_playbin->signal_video_changed().connect( + sigc::mem_fun(*this, &PlayerWindow::on_video_changed) ); show_all_children(); m_pause_button.hide(); @@ -120,7 +128,12 @@ void PlayerWindow::on_video_area_realize() // When the video area (the drawing area) is realized, Get its X Window // ID and save it for when the Gst::XOverlay is ready to accept an ID in // which to draw the video. +#ifdef GDK_WINDOWING_X11 m_x_window_id = GDK_WINDOW_XID(m_video_area.get_window()->gobj()); +#endif +#ifdef GDK_WINDOWING_WIN32 + m_x_window_id = GDK_WINDOW_HWND(m_video_area.get_window()->gobj()); +#endif } // This function is used to receive asynchronous messages from mainPipeline's @@ -183,6 +196,20 @@ bool PlayerWindow::on_bus_message(const Glib::RefPtr& /* bus */, return true; } +void PlayerWindow::on_video_changed() +{ + Glib::RefPtr pad = m_playbin->get_video_pad(0); + if(pad) + { + // Add a buffer probe to the video sink pad which will be removed after + // the first buffer is received in the on_video_pad_got_buffer method. + // When the first buffer arrives, the video size can be extracted. + m_pad_probe_id = pad->add_buffer_probe( + sigc::mem_fun(*this, &PlayerWindow::on_video_pad_got_buffer)); + std::cout << "There is no pad available." << std::endl; + } +} + bool PlayerWindow::on_video_pad_got_buffer(const Glib::RefPtr& pad, const Glib::RefPtr& data) { @@ -236,7 +263,7 @@ void PlayerWindow::on_button_play() sigc::mem_fun(*this, &PlayerWindow::on_timeout), 200); // set the pipeline to play mode: - m_play_bin->set_state(Gst::STATE_PLAYING); + m_playbin->set_state(Gst::STATE_PLAYING); } void PlayerWindow::on_button_pause() @@ -251,7 +278,7 @@ void PlayerWindow::on_button_pause() m_timeout_connection.disconnect(); // Set the pipeline to pause mode: - m_play_bin->set_state(Gst::STATE_PAUSED); + m_playbin->set_state(Gst::STATE_PAUSED); } void PlayerWindow::on_button_stop() @@ -271,27 +298,18 @@ void PlayerWindow::on_button_stop() m_timeout_connection.disconnect(); // Set the pipeline to inactive mode: - m_play_bin->set_state(Gst::STATE_NULL); + m_playbin->set_state(Gst::STATE_NULL); // Reset the display: display_label_progress(0, m_duration); m_progress_scale.set_value(0); - - // Remove video sink pad buffer probe if after playing, probe id is - // not zero (means probe was not removed because media had no video and - // video_pad_got_buffer method never got a chance to remove probe) - if(m_pad_probe_id != 0) - { - m_video_sink->get_static_pad("sink")->remove_buffer_probe(m_pad_probe_id); - m_pad_probe_id = 0; - } } bool PlayerWindow::on_scale_value_changed(Gtk::ScrollType /* type_not_used */, double value) { const gint64 newPos = gint64(value * m_duration); - if(m_play_bin->seek(Gst::FORMAT_TIME, Gst::SEEK_FLAG_FLUSH, newPos)) + if(m_playbin->seek(Gst::FORMAT_TIME, Gst::SEEK_FLAG_FLUSH, newPos)) { display_label_progress(newPos, m_duration); return true; @@ -310,11 +328,11 @@ void PlayerWindow::on_button_rewind() gint64 pos = 0; Gst::Format fmt = Gst::FORMAT_TIME; - if(m_play_bin->query_position(fmt, pos)) + if(m_playbin->query_position(fmt, pos)) { gint64 newPos = (pos > skipAmount) ? (pos - skipAmount) : 0; - if(m_play_bin->seek(Gst::FORMAT_TIME, Gst::SEEK_FLAG_FLUSH, newPos)) + if(m_playbin->seek(Gst::FORMAT_TIME, Gst::SEEK_FLAG_FLUSH, newPos)) { m_progress_scale.set_value(double(newPos) / m_duration); display_label_progress(newPos, m_duration); @@ -332,7 +350,7 @@ void PlayerWindow::on_button_forward() Glib::RefPtr query = Gst::QueryPosition::create(fmt); - if(m_play_bin->query(query)) + if(m_playbin->query(query)) { Glib::RefPtr posQuery = Glib::RefPtr::cast_dynamic(query); @@ -349,7 +367,7 @@ void PlayerWindow::on_button_forward() Glib::RefPtr seekEvent = Glib::RefPtr::cast_dynamic(event); - if(Glib::RefPtr::cast_static(m_play_bin)->send_event(event)) + if(Glib::RefPtr::cast_static(m_playbin)->send_event(event)) { m_progress_scale.set_value(double(newPos) / m_duration); display_label_progress(newPos, m_duration); @@ -376,20 +394,12 @@ void PlayerWindow::on_button_open() working_dir = chooser.get_current_folder(); // Set uri property on the playbin. - m_play_bin->property_uri() = chooser.get_uri(); + m_playbin->property_uri() = chooser.get_uri(); // Resize m_video_area and window to minimum when opening a file m_video_area.set_size_request(0, 0); resize(1, 1); - // Add buffer probe to video sink pad when file is opened which will - // be removed after first buffer is received in on_video_pad_got_buffer - // method (if there's video). When first buffer arrives, video - // size can be extracted. If there's no video, probe will be - // removed when media stops in on_button_stop method - m_pad_probe_id = m_video_sink->get_static_pad("sink")->add_buffer_probe( - sigc::mem_fun(*this, &PlayerWindow::on_video_pad_got_buffer)); - set_title( Glib::filename_display_basename(chooser.get_filename()) ); m_play_button.set_sensitive(); @@ -402,8 +412,8 @@ bool PlayerWindow::on_timeout() Gst::Format fmt = Gst::FORMAT_TIME; gint64 pos = 0; - if(m_play_bin->query_position(fmt, pos) - && m_play_bin->query_duration(fmt, m_duration)) + if(m_playbin->query_position(fmt, pos) + && m_playbin->query_duration(fmt, m_duration)) { m_progress_scale.set_value(double(pos) / m_duration); display_label_progress(pos, m_duration); @@ -434,5 +444,5 @@ void PlayerWindow::display_label_progress(gint64 pos, gint64 len) PlayerWindow::~PlayerWindow() { - m_play_bin->get_bus()->remove_watch(m_watch_id); + m_playbin->get_bus()->remove_watch(m_watch_id); } diff --git a/examples/media_player_gtkmm/player_window.h b/examples/media_player_gtkmm/player_window.h index aeaf17e..b93e16a 100644 --- a/examples/media_player_gtkmm/player_window.h +++ b/examples/media_player_gtkmm/player_window.h @@ -35,9 +35,8 @@ class PlayerWindow : public Gtk::Window public: /** * @param playbin The pipeline that can play media files. - * @param video_sink The video sink to use to display stream video (if any). */ - PlayerWindow(const Glib::RefPtr& playbin, const Glib::RefPtr& video_sink); + PlayerWindow(const Glib::RefPtr& playbin); virtual ~PlayerWindow(); protected: @@ -46,6 +45,7 @@ protected: void on_video_area_realize(); void on_bus_message_sync(const Glib::RefPtr& message); bool on_bus_message(const Glib::RefPtr& bus, const Glib::RefPtr& message); + void on_video_changed(); bool on_video_pad_got_buffer(const Glib::RefPtr& pad, const Glib::RefPtr& buffer); void on_button_play(); @@ -72,8 +72,7 @@ protected: Gtk::Button m_forward_button; Gtk::Button m_open_button; - Glib::RefPtr m_play_bin; - Glib::RefPtr m_video_sink; + Glib::RefPtr m_playbin; sigc::connection m_timeout_connection; guint m_watch_id; gint64 m_duration; -- 1.7.9.5 --=-590vYpEmbH2TFXzrnLyq-- From praveen@hipro.co.in Thu Aug 16 05:39:27 2012 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 menubar.gnome.org (Postfix) with ESMTP id 108207501B2 for ; Thu, 16 Aug 2012 05:39:27 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -1.935 X-Spam-Level: X-Spam-Status: No, score=-1.935 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, SPF_SOFTFAIL=0.665] autolearn=no Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id mjKTNVL5yTGM for ; Thu, 16 Aug 2012 05:39:14 +0000 (UTC) Received: from mail-pz0-f54.google.com (mail-pz0-f54.google.com [209.85.210.54]) by menubar.gnome.org (Postfix) with ESMTP id 66A4F75011B for ; Thu, 16 Aug 2012 05:39:13 +0000 (UTC) Received: by dadr6 with SMTP id r6so424422dad.27 for ; Wed, 15 Aug 2012 22:39:12 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type :x-gm-message-state; bh=jYQBdQxwnawtRssxoMxxl9rLxK4bFeEfcLTBjb1lDaU=; b=DiYjRkiGyRp2QaVznIFgWOVhOPT5g66hjeAx4O8sQV2CsN0lUZQZltZpGWqpAK7Sc4 lRPD1dbZysd/R28fiTrBxCjSBMOJ5tXu7O+O1AFRvJeIKXeptwElzlT/tZRM1oyxTVuI KpR0UoWj3YtyLpPAhqcZXoPzkorTjuLeJEmnNGpUr9toOiFDBgZI6/ToD8/dxtuOm9+K VfqKndVpd+kGRrNwqRBYLCPot5/66R1+HI86ofCT0bg8FDxtsDXwMf4YleBC1ecQeKOv GRWEWvxz/BLK6R4U20hH5sbaq3JsUNF5t8hOd7Q6Uwa4FMHLdCUuwJE4LJyuDcy3022G 4enw== MIME-Version: 1.0 Received: by 10.68.241.65 with SMTP id wg1mr1021083pbc.25.1345095552475; Wed, 15 Aug 2012 22:39:12 -0700 (PDT) Received: by 10.68.62.39 with HTTP; Wed, 15 Aug 2012 22:39:12 -0700 (PDT) Date: Thu, 16 Aug 2012 11:09:12 +0530 Message-ID: Subject: signal on selecting a row in TreeView From: Praveen Tiwari To: gtkmm-list@gnome.org Content-Type: text/plain; charset=ISO-8859-1 X-Gm-Message-State: ALoCoQkM5ASvCWJAU0+xSuHzWduIgDQm5Kchl3EipZfWHbShOL6a1AXt79SvLq5mATH/FnCil+QX X-BeenThere: gtkmm-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: gtkmm general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Aug 2012 05:39:27 -0000 Can any body help me to figure out the name of the signal raised on selecting a row (single click on row) in a TreeView, i am using Liststrore as a model . Thanks in advance From mohith.manoj@skanray.com Thu Aug 16 05:52:18 2012 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 menubar.gnome.org (Postfix) with ESMTP id E09957501B2 for ; Thu, 16 Aug 2012 05:52:17 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -1.746 X-Spam-Level: X-Spam-Status: No, score=-1.746 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, TW_GT=0.077, TW_TK=0.077] autolearn=no Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Gy46Oecad7lx for ; Thu, 16 Aug 2012 05:52:16 +0000 (UTC) Received: from cpanel27.interactivedns.com (cpanel27.interactivedns.com [208.43.99.132]) by menubar.gnome.org (Postfix) with ESMTP id 869AC75011B for ; Thu, 16 Aug 2012 05:52:16 +0000 (UTC) Received: from [59.90.166.217] (port=63504 helo=[127.0.0.1]) by cpanel27.interactivedns.com with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.77) (envelope-from ) id 1T1t09-0002Kf-PW; Thu, 16 Aug 2012 11:22:14 +0530 Message-ID: <502C8A8C.1010105@skanray.com> Date: Thu, 16 Aug 2012 11:22:12 +0530 From: Mohith Manoj User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:12.0) Gecko/20120428 Thunderbird/12.0.1 MIME-Version: 1.0 To: Praveen Tiwari Subject: Re: signal on selecting a row in TreeView References: In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - cpanel27.interactivedns.com X-AntiAbuse: Original Domain - gnome.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - skanray.com X-Source: X-Source-Args: X-Source-Dir: Cc: gtkmm-list@gnome.org X-BeenThere: gtkmm-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: gtkmm general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Aug 2012 05:52:18 -0000 Praveen, Connect a function with following prototype to signal_changed of Gtk::TreeView void YourClass::YourFunction(void) This function is going to be called each time there is a change in selection (for multiple selections as well) You might want to consider using Gtk::Selection (RefPtr returned from a called to YourTreeView.get_selection()) if you have multiple selection enabled for the tree view. You'll find the above story in better detail in the link below. http://developer.gnome.org/gtkmm-tutorial/3.0/sec-treeview-selection.html.en (Its the same for Gtkmm 2.x as well) regards Mohith Manoj, Asst. Manager (R&D), Skanray Technologies PVT.LTD Web: www.skanray.com Mob: +919886742571 Ph : +918212415559 Fax: +918212403344 On 16 August 2012 11:09 AM, Praveen Tiwari wrote: > Can any body help me to figure out the name of the signal raised on > selecting a row (single click on row) in a TreeView, i am using > Liststrore as a model . > > > > Thanks in advance > _______________________________________________ > gtkmm-list mailing list > gtkmm-list@gnome.org > https://mail.gnome.org/mailman/listinfo/gtkmm-list > From arbolone@gmail.com Thu Aug 16 14:03:15 2012 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 menubar.gnome.org (Postfix) with ESMTP id 5AC6275045E for ; Thu, 16 Aug 2012 14:03:15 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -0.646 X-Spam-Level: X-Spam-Status: No, score=-0.646 tagged_above=-999 required=2 tests=[BAYES_40=-0.001, 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, TW_GT=0.077, TW_TK=0.077] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id DYSqHKlUjJ6n for ; Thu, 16 Aug 2012 14:03:01 +0000 (UTC) Received: from mail-gh0-f182.google.com (mail-gh0-f182.google.com [209.85.160.182]) by menubar.gnome.org (Postfix) with ESMTP id CD5F4750465 for ; Thu, 16 Aug 2012 14:03:00 +0000 (UTC) Received: by ghrr13 with SMTP id r13so4279087ghr.27 for ; Thu, 16 Aug 2012 07:02:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id:mime-version:content-type:x-mailer :thread-index:content-language; bh=SI0JMjwUQ27loE6qA8S+VmquJ6hbJeCyEMAKeQn9fQI=; b=RJIc5Gt0k17tBSfuXrKACHIgkGWw62OqizZcp9QWbTYPfd+NCJpSSFgRKApFPS9zgn UWAi+L5DIbllBcnT4RpfkP7gS3R609WaGtMj3Fg15hx+DdRPdKAV9tzqN4OnQJMP2LCs mKYhmMEjRpxnk9qknJAYFa6SEHsXTk5KQFn2UPOETZq8bSpK/aJkm4VDDQqw3tJ83JoS lAL1X7JjYiJyjolk5evY6WV8HaNjN+Z6B+ySFOF8NADv3OBbM8AjfxM8BtYwS0XjGItt wzfzQ8YNDoqT4nWH0506U7QFHh5FdawH1MU5QOziLjefA+HqCdwQWT+XsVL+xXAbLRYF X3UQ== Received: by 10.50.85.228 with SMTP id k4mr1691230igz.22.1345125778854; Thu, 16 Aug 2012 07:02:58 -0700 (PDT) Received: from ArbolOnePC (CPE602ad07a8576-CM602ad07a8573.cpe.net.cable.rogers.com. [99.228.43.239]) by mx.google.com with ESMTPS id aj1sm1823787igc.1.2012.08.16.07.02.57 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 16 Aug 2012 07:02:58 -0700 (PDT) From: Arbol One To: Subject: Note to gtkmm documentation Date: Thu, 16 Aug 2012 10:02:51 -0400 Message-ID: <000001cd7bb7$d43d9650$7cb8c2f0$@com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0001_01CD7B96.4D2BF650" X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: Ac17t9MaDV7wOIUvTeSe7ng0BVyLsQ== Content-Language: en-us X-BeenThere: gtkmm-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: gtkmm general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Aug 2012 14:03:15 -0000 This is a multi-part message in MIME format. ------=_NextPart_000_0001_01CD7B96.4D2BF650 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit The purpose of having the gtkmm documentation in my hard drive is to have access to it when there is no network connection. However, the documentation in 'libsigc++ 2 documentation', the one that comes with the installation for windows, links to some http://library...... thing, which I cannot access L [ 'cos I am on a train to TimbuktuJ]. Is there anything the team can do to change this? Could I help changing this? This e-mail is for the sole use of the intended recipient and may contain confidential or privileged information. Unauthorized use of its contents is prohibited. If you have received this e-mail in error, please notify sender immediately via return e-mail and then delete the original e-mail. ------=_NextPart_000_0001_01CD7B96.4D2BF650 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

The purpose of having the gtkmm documentation in my hard drive = is to have access to it when there is no network connection. However, = the documentation in 'libsigc++ 2 documentation', the one that comes = with the installation for windows, links to some http://library...... thing, which I = cannot access L [ 'cos I am on a train to = TimbuktuJ]. Is there anything the team can do = to change this? Could I help changing this?

 

 

This e-mail = is for the sole use of the intended recipient and may contain = confidential or privileged information. Unauthorized use of its contents = is prohibited. If you have received this e-mail in error, please notify = sender immediately via return e-mail and then delete the original = e-mail.

 

------=_NextPart_000_0001_01CD7B96.4D2BF650-- From arbolone@gmail.com Fri Aug 17 15:28:47 2012 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 menubar.gnome.org (Postfix) with ESMTP id 55917750785 for ; Fri, 17 Aug 2012 15:28:47 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.622 X-Spam-Level: X-Spam-Status: No, score=-2.622 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, TW_TK=0.077] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id oM25XXSUGDmo for ; Fri, 17 Aug 2012 15:28:32 +0000 (UTC) Received: from mail-gg0-f182.google.com (mail-gg0-f182.google.com [209.85.161.182]) by menubar.gnome.org (Postfix) with ESMTP id 7EAC975077B for ; Fri, 17 Aug 2012 15:28:32 +0000 (UTC) Received: by ggnk4 with SMTP id k4so6026796ggn.27 for ; Fri, 17 Aug 2012 08:28:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id:mime-version:content-type:x-mailer :thread-index:content-language; bh=dL89wkdvirc6/JoQdFiCL7iizk6BknDWAzBPAM/ATpI=; b=wU4KmH3nRI8KapNaoZUt/rLaZkEW09v0eb3MeHCPaS/gNTLTOiXinriUFPWscByiU/ Iae5qmhFRnjkESUcZwv0P3OLcTUrOqCgJpHMccVoPriQPv9a7/vxwa8BfOMjx5i0YCa/ 5LPn2cKyUAVZV39XLH9cCZY12EpQcbIQqX4PJvsLpXiBxmnpRJeRLqezIbb5fdoJXe+k g0lRZe2CJysaIAaY68B41w4e+777qcLp8fZ9MSlQ/nQodBHMbYn490vJG4ZZq7OprP8y hSXa5GDy8ufjbSz+T5xMB0myYgyDzbJ/xZvTgXWCDTXsDUMD6NLfhsfEoAfNucikS9vb Gbhg== Received: by 10.50.187.170 with SMTP id ft10mr2446648igc.36.1345217310754; Fri, 17 Aug 2012 08:28:30 -0700 (PDT) Received: from ArbolOnePC ([99.228.234.22]) by mx.google.com with ESMTPS id wm7sm9667463igb.6.2012.08.17.08.28.29 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 17 Aug 2012 08:28:29 -0700 (PDT) From: Arbol One To: Subject: signal_focus_out_event Date: Fri, 17 Aug 2012 11:28:22 -0400 Message-ID: <000901cd7c8c$f0e94ee0$d2bbeca0$@com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_000A_01CD7C6B.69D7AEE0" X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: Ac18jO/khR4PTH5vRiyAvHoS/utVqg== Content-Language: en-us X-BeenThere: gtkmm-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: gtkmm general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Aug 2012 15:28:47 -0000 This is a multi-part message in MIME format. ------=_NextPart_000_000A_01CD7C6B.69D7AEE0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Using Gtkmm - 2.22 on my Win7 with MinGW, I am trying to compile this program, but the this->ntrTest->signal_focus_out_event().connect(sigc::mem_fun(*this, &jme::myEntry::notifyOutofFocus)); gives me an error at compile time, what am I doing wrong? class myEntry : virtual public Gtk::VBox { private: Gtk::Entry* ntrTest; Gtk::Label* lblTest; public: myEntry(); virtual ~myEntry() {} bool notifyOutofFocus(); }; } myEntry::myEntry() { this->ntrTest = Gtk::manage(new Gtk::Entry()); this->ntrTest->signal_focus_out_event().connect(sigc::mem_fun(*this, &myEntry::notifyOutofFocus)); this->lblTest = Gtk::manage(new Gtk::Label("test", Gtk::ALIGN_LEFT)); this->pack_start(*lblTest); this->pack_start(*ntrTest); } bool jme::myEntry::notifyOutofFocus(){ //Display "I ma here" return false; } Thanks in advance -------- This e-mail is for the sole use of the intended recipient and may contain confidential or privileged information. Unauthorized use of its contents is prohibited. If you have received this e-mail in error, please notify sender immediately via return e-mail and then delete the original e-mail. ------=_NextPart_000_000A_01CD7C6B.69D7AEE0 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Using = Gtkmm - 2.22 on my Win7 with MinGW, I am trying to compile this program, = but the

this->ntrTest->signal_focus_out_event().connect(s= igc::mem_fun(*this, = &jme::myEntry::notifyOutofFocus));

gives me an error at compile time, what am I doing = wrong?

 

 

class = myEntry : virtual public Gtk::VBox {

private:

    Gtk::Entry* = ntrTest;

    = Gtk::Label* lblTest;

public:

    myEntry();

    virtual ~myEntry() = {}

    bool = notifyOutofFocus();

};

}

myEntry::myEntry() {

    this->ntrTest =3D = Gtk::manage(new Gtk::Entry());

    = this->ntrTest->signal_focus_out_event().connect(sigc::mem_fun(*this= , &myEntry::notifyOutofFocus));

 

    this->lblTest =3D = Gtk::manage(new Gtk::Label("test", = Gtk::ALIGN_LEFT));

    = this->pack_start(*lblTest);

    = this->pack_start(*ntrTest);

}

bool = jme::myEntry::notifyOutofFocus(){   

    //Display "I ma = here"

    return = false;

}

 

 

Thanks in = advance

 

 

--------

This = e-mail is for the sole use of the intended recipient and may contain = confidential or privileged information. Unauthorized use of its contents = is prohibited. If you have received this e-mail in error, please notify = sender immediately via return e-mail and then delete the original = e-mail.

 

------=_NextPart_000_000A_01CD7C6B.69D7AEE0-- From kevin.brightwell2@gmail.com Fri Aug 17 15:45:51 2012 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 menubar.gnome.org (Postfix) with ESMTP id 3110C7507C0 for ; Fri, 17 Aug 2012 15:45:51 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.295 X-Spam-Level: X-Spam-Status: No, score=-2.295 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, TW_GT=0.077, TW_TK=0.077] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id EumW3kLvLiFl for ; Fri, 17 Aug 2012 15:45:48 +0000 (UTC) Received: from mail-qa0-f47.google.com (mail-qa0-f47.google.com [209.85.216.47]) by menubar.gnome.org (Postfix) with ESMTP id 42D9E75077B for ; Fri, 17 Aug 2012 15:45:47 +0000 (UTC) Received: by qadc11 with SMTP id c11so2096927qad.6 for ; Fri, 17 Aug 2012 08:45:46 -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 :content-type; bh=p/82bYVPHRY9BGqGdTGKNhe5N/frHbVKHyKJif7TOuU=; b=Cn/e1vkIBIHm1FeqJO/jv3v1DIrLK/LPAelqyEPHLJHdLq+5WDOV9ROPsRMFBOXujd iOnmUD/a/3Fc7NKd86qztv6/qx+yWVzPWrxQCNW9II4s6cSIR8t2cTS3P74SPpxPkqiR V7li6/8q6eVYGrr96mBO2M94KIOq4KnsQYdD6uTl9BCVriz1peiiesFz7DIzpSa5W30T 9JW4/pAkqHHw/RfnH+kmXtQ25AyPhekga7TnCzsDXawMFYQtBvBGZOFlPx6oXuKF/ZRo qZ8Bera6llrzQ6mnMTbHsmdxcgWbrl6BY1Zy7omLMJuJeSS90nSQvCabcvV2a7UWST+W 4Yxw== MIME-Version: 1.0 Received: by 10.229.136.14 with SMTP id p14mr3974880qct.93.1345218346326; Fri, 17 Aug 2012 08:45:46 -0700 (PDT) Received: by 10.49.38.68 with HTTP; Fri, 17 Aug 2012 08:45:46 -0700 (PDT) In-Reply-To: References: <000901cd7c8c$f0e94ee0$d2bbeca0$@com> Date: Fri, 17 Aug 2012 11:45:46 -0400 Message-ID: Subject: Fwd: signal_focus_out_event From: Kevin Brightwell To: gtkmm-list Content-Type: multipart/alternative; boundary=00248c711847ad9b0f04c7780d3e X-BeenThere: gtkmm-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: gtkmm general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Aug 2012 15:45:51 -0000 --00248c711847ad9b0f04c7780d3e Content-Type: text/plain; charset=ISO-8859-1 I always forget to hit reply-all. ---------- Forwarded message ---------- From: Kevin Brightwell Date: Fri, Aug 17, 2012 at 11:45 AM Subject: Re: signal_focus_out_event To: Arbol One class myEntry : virtual public Gtk::VBox { > > private: > > Gtk::Entry* ntrTest; > > Gtk::Label* lblTest; > > public: > > myEntry(); > > virtual ~myEntry() {} > > bool notifyOutofFocus(GdkEventFocus *); > }; > > > bool jme::myEntry::notifyOutofFocus(GdkEventFocus *ev){ > > //Display "I ma here" > > return false; > } > There, I've fixed it for you. But, you really should look at the documentation, first. Cheers, Kevin On Fri, Aug 17, 2012 at 11:28 AM, Arbol One wrote: > Using Gtkmm - 2.22 on my Win7 with MinGW, I am trying to compile this > program, but the **** > > this->ntrTest->signal_focus_out_event().connect(sigc::mem_fun(*this, > &jme::myEntry::notifyOutofFocus));**** > > gives me an error at compile time, what am I doing wrong?**** > > ** ** > > ** ** > > class myEntry : virtual public Gtk::VBox {**** > > private:**** > > Gtk::Entry* ntrTest;**** > > Gtk::Label* lblTest;**** > > public:**** > > myEntry();**** > > virtual ~myEntry() {}**** > > bool notifyOutofFocus();**** > > };**** > > }**** > > myEntry::myEntry() {**** > > this->ntrTest = Gtk::manage(new Gtk::Entry());**** > > this->ntrTest->signal_focus_out_event().connect(sigc::mem_fun(*this, > &myEntry::notifyOutofFocus));**** > > ** ** > > this->lblTest = Gtk::manage(new Gtk::Label("test", Gtk::ALIGN_LEFT));* > *** > > this->pack_start(*lblTest);**** > > this->pack_start(*ntrTest);**** > > }**** > > bool jme::myEntry::notifyOutofFocus(){ **** > > //Display "I ma here"**** > > return false;**** > > }**** > > ** ** > > ** ** > > Thanks in advance**** > > ** ** > > ** ** > > --------**** > > This e-mail is for the sole use of the intended recipient and may contain > confidential or privileged information. Unauthorized use of its contents is > prohibited. If you have received this e-mail in error, please notify sender > immediately via return e-mail and then delete the original e-mail.**** > > ** ** > > _______________________________________________ > gtkmm-list mailing list > gtkmm-list@gnome.org > https://mail.gnome.org/mailman/listinfo/gtkmm-list > > -- Kevin Brightwell *Year 4 Bachelor of Computer Engineering (BESc.) Year 3 Bachelor of Computer Science (BSc.) * Residence Don - Saugeen-Maitland Hall Western University www.westernu.ca e. kevin.brightwell2@gmail.com c. 226.678.4927 -- Kevin Brightwell *Year 4 Bachelor of Computer Engineering (BESc.) Year 3 Bachelor of Computer Science (BSc.) * Residence Don - Saugeen-Maitland Hall Western University www.westernu.ca e. kevin.brightwell2@gmail.com c. 226.678.4927 --00248c711847ad9b0f04c7780d3e Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable I always forget to hit reply-all.

-------= --- Forwarded message ----------
From: Kev= in Brightwell <kevin.brightwell2@gmail.com>
Date: Fri, Aug 17, 2012 at 11:45 AM
Subject: Re: signal_focus_out_event<= br>To: Arbol One <arbolone@gmail.c= om>


class myEntry : virtual public Gtk= ::VBox {

private:

=A0=A0=A0 Gtk::Entry* ntrTest;

=A0=A0=A0 Gtk::Lab= el* lblTest;

public:

= =A0=A0=A0 myEntry();

=A0=A0=A0 virtual ~myEntry()= {}

=A0=A0=A0 bool notifyOutofFocus(GdkEventFocus *);

};


bool jme::myEntry::= notifyOutofFocus(GdkEventFocus *ev){ =A0=A0

=A0=A0=A0=A0//Display "I ma here"

=A0=A0=A0 return false;

}

There, I've fixed it for you. But, you real= ly should look at the documentation, first.

Cheers,
Kevin

On Fri, Aug 17, 2012 at 11:28 AM, Arbol One <= arbolone@gmail.com<= /a>> wrote:
___= ____________________________________________
gtkmm-list mailing list
gtkmm-list@gnome.= org
https://mail.gnome.org/mailman/listinfo/gtkmm-list


<= br clear=3D"all">
--
Kevin Brightwell
Year 4 Bachelor of Compu= ter Engineering (BESc.)
Year 3 Bachelor of Computer Science (BSc.)
<= br> Residence Don - Saugeen-Maitland Hall
Western University www.west= ernu.ca
e. kevin.brightwell2@gmail.com c. 226.678.4927




--
Kevin Brightwell
Year 4 Bachelor of Computer Engineering (BESc.)
Year 3 Bachelor of Comp= uter Science (BSc.)
Residence Don - Saugeen-Maitland Hall
Wester= n University www.westernu.c= a
e. kevin.b= rightwell2@gmail.com c. 226.678.4927

--00248c711847ad9b0f04c7780d3e-- From arbolone@gmail.com Fri Aug 17 23:12:14 2012 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 menubar.gnome.org (Postfix) with ESMTP id BE7577505C5 for ; Fri, 17 Aug 2012 23:12:14 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -1.535 X-Spam-Level: X-Spam-Status: No, score=-1.535 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, FREEMAIL_REPLY=1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001, TW_GT=0.077, TW_TK=0.077, T_FILL_THIS_FORM_SHORT=0.01] autolearn=no Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id duVLFtWdxgJP for ; Fri, 17 Aug 2012 23:12:12 +0000 (UTC) Received: from mail-yw0-f54.google.com (mail-yw0-f54.google.com [209.85.213.54]) by menubar.gnome.org (Postfix) with ESMTP id 77C267501EE for ; Fri, 17 Aug 2012 23:12:12 +0000 (UTC) Received: by yhfs35 with SMTP id s35so6552198yhf.27 for ; Fri, 17 Aug 2012 16:12:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:references:in-reply-to:subject:date:message-id :mime-version:content-type:x-mailer:thread-index:content-language; bh=dCnxoP4xbs5TUE8m+CqXzCjFMnc+MX99rfhZreoSjtU=; b=fl7v47/sElnh/chuQgmQ8BJwBW7xAJqnREI1dwgjvUH5RTdlyJzyEJueLUGaEP43LX yr/E4l4yB6bi9gdNC4lDnAAhtI3PuP12WkpQbzVkVTjsb3gXWMX5mADd+q7Ot9eSjecu UTMcX1VJk9uNX6jZRhkZVM8AHjlRHOL3hBI3RNKxB91X1Nc0mV5jAI6t/f1a+2aTb5wc DTJWuGDk8DPaTQCynHwI+cpefp7HAZHzOcS9s+u7aPAbmkUdkQrP+xZe3TgfKTkx+75J RoAUAbIQ4RsoU3VVpV44UM+NroGK1S1r02Gr3sWlMJh6ESnAifQLpWZWGMcRWa0JpM/+ /tkA== Received: by 10.50.163.99 with SMTP id yh3mr3386576igb.53.1345245130677; Fri, 17 Aug 2012 16:12:10 -0700 (PDT) Received: from ArbolOnePC ([99.228.234.22]) by mx.google.com with ESMTPS id dw5sm5969950igc.6.2012.08.17.16.12.08 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 17 Aug 2012 16:12:09 -0700 (PDT) From: Arbol One To: "'Kevin Brightwell'" References: <000901cd7c8c$f0e94ee0$d2bbeca0$@com> In-Reply-To: Subject: RE: signal_focus_out_event Date: Fri, 17 Aug 2012 19:12:02 -0400 Message-ID: <000001cd7ccd$b6b1d4e0$24157ea0$@com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0001_01CD7CAC.2FA034E0" X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: Ac18j028wzn7gJqTQOWJkyXSSrW1wwAPil3A Content-Language: en-us Cc: gtkmm-list@gnome.org X-BeenThere: gtkmm-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: gtkmm general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Aug 2012 23:12:15 -0000 This is a multi-part message in MIME format. ------=_NextPart_000_0001_01CD7CAC.2FA034E0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Thank you for the prompt response. It is strange the way things happen, seconds after I clicked on send, I went back to the program and found the mistake, but any how, it is nice to know that you are there to give a helping hand. Thanks From: Kevin Brightwell [mailto:kevin.brightwell2@gmail.com] Sent: Friday, August 17, 2012 11:45 AM To: Arbol One Subject: Re: signal_focus_out_event class myEntry : virtual public Gtk::VBox { private: Gtk::Entry* ntrTest; Gtk::Label* lblTest; public: myEntry(); virtual ~myEntry() {} bool notifyOutofFocus(GdkEventFocus *); }; bool jme::myEntry::notifyOutofFocus(GdkEventFocus *ev){ //Display "I ma here" return false; } There, I've fixed it for you. But, you really should look at the documentation , first. Cheers, Kevin On Fri, Aug 17, 2012 at 11:28 AM, Arbol One wrote: Using Gtkmm - 2.22 on my Win7 with MinGW, I am trying to compile this program, but the this->ntrTest->signal_focus_out_event().connect(sigc::mem_fun(*this, &jme::myEntry::notifyOutofFocus)); gives me an error at compile time, what am I doing wrong? class myEntry : virtual public Gtk::VBox { private: Gtk::Entry* ntrTest; Gtk::Label* lblTest; public: myEntry(); virtual ~myEntry() {} bool notifyOutofFocus(); }; } myEntry::myEntry() { this->ntrTest = Gtk::manage(new Gtk::Entry()); this->ntrTest->signal_focus_out_event().connect(sigc::mem_fun(*this, &myEntry::notifyOutofFocus)); this->lblTest = Gtk::manage(new Gtk::Label("test", Gtk::ALIGN_LEFT)); this->pack_start(*lblTest); this->pack_start(*ntrTest); } bool jme::myEntry::notifyOutofFocus(){ //Display "I ma here" return false; } Thanks in advance -------- This e-mail is for the sole use of the intended recipient and may contain confidential or privileged information. Unauthorized use of its contents is prohibited. If you have received this e-mail in error, please notify sender immediately via return e-mail and then delete the original e-mail. _______________________________________________ gtkmm-list mailing list gtkmm-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtkmm-list -- Kevin Brightwell Year 4 Bachelor of Computer Engineering (BESc.) Year 3 Bachelor of Computer Science (BSc.) Residence Don - Saugeen-Maitland Hall Western University www.westernu.ca e. kevin.brightwell2@gmail.com c. 226.678.4927 ------=_NextPart_000_0001_01CD7CAC.2FA034E0 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Thank you for the prompt response.

It is strange the way things happen, seconds after I clicked on send, = I went back to the program and found the mistake, but any how, it is = nice to know that you are there to give a helping = hand.

 

Thanks

 

 

From:= Kevin = Brightwell [mailto:kevin.brightwell2@gmail.com]
Sent: Friday, = August 17, 2012 11:45 AM
To: Arbol One
Subject: Re: = signal_focus_out_event

 

class = myEntry : virtual public Gtk::VBox {

private:

  =   Gtk::Entry* ntrTest;

  =   Gtk::Label* lblTest;

public:=

  =   myEntry();

  =   virtual ~myEntry() {}

  =   bool notifyOutofFocus(GdkEventFocus *);

};

 <= /o:p>

bool = jme::myEntry::notifyOutofFocus(GdkEventFocus *ev){ =   

  =   //Display "I ma here"

  =   return false;

}


There, I've fixed it for you. But, you really = should look at the documentation, first. =

Cheers,
Kevin

 

On Fri, = Aug 17, 2012 at 11:28 AM, Arbol One <arbolone@gmail.com> = wrote:

Using Gtkmm = - 2.22 on my Win7 with MinGW, I am trying to compile this program, but = the

this->ntr= Test->signal_focus_out_event().connect(sigc::mem_fun(*this, = &jme::myEntry::notifyOutofFocus));

gives me an = error at compile time, what am I doing wrong?

 <= /o:p>

 <= /o:p>

class = myEntry : virtual public Gtk::VBox {

private:

  =   Gtk::Entry* ntrTest;

  =   Gtk::Label* lblTest;

public:=

  =   myEntry();

  =   virtual ~myEntry() {}

  =   bool notifyOutofFocus();

};

}=

myEntry::myE= ntry() {

  =   this->ntrTest =3D Gtk::manage(new = Gtk::Entry());

  =   = this->ntrTest->signal_focus_out_event().connect(sigc::mem_fun(*this= , &myEntry::notifyOutofFocus));

 <= /o:p>

  =   this->lblTest =3D Gtk::manage(new Gtk::Label("test", = Gtk::ALIGN_LEFT));

  =   this->pack_start(*lblTest);

  =   this->pack_start(*ntrTest);

}=

bool = jme::myEntry::notifyOutofFocus(){   

  =   //Display "I ma here"

  =   return false;

}=

 <= /o:p>

 <= /o:p>

Thanks in = advance

 <= /o:p>

 <= /o:p>

--------

This e-mail = is for the sole use of the intended recipient and may contain = confidential or privileged information. Unauthorized use of its contents = is prohibited. If you have received this e-mail in error, please notify = sender immediately via return e-mail and then delete the original = e-mail.

 <= /o:p>


______________________________________= _________
gtkmm-list mailing list
gtkmm-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtkmm-list<= o:p>




--
Kevin = Brightwell
Year 4 Bachelor of Computer Engineering (BESc.)
Year = 3 Bachelor of Computer Science (BSc.)

Residence Don - = Saugeen-Maitland Hall
Western University www.westernu.ca
e. = kevin.brightwell2@gmail.com c. = 226.678.4927

------=_NextPart_000_0001_01CD7CAC.2FA034E0-- From arbolone@gmail.com Sat Aug 18 00:08:59 2012 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 menubar.gnome.org (Postfix) with ESMTP id 4CE877500EB for ; Sat, 18 Aug 2012 00:08:59 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.689 X-Spam-Level: X-Spam-Status: No, score=-2.689 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, T_FRT_BELOW2=0.01] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 8NgTstHwZZKd for ; Sat, 18 Aug 2012 00:08:54 +0000 (UTC) Received: from mail-iy0-f182.google.com (mail-iy0-f182.google.com [209.85.210.182]) by menubar.gnome.org (Postfix) with ESMTP id 06FA0751128 for ; Sat, 18 Aug 2012 00:08:25 +0000 (UTC) Received: by ialo14 with SMTP id o14so1649141ial.27 for ; Fri, 17 Aug 2012 17:08:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id:mime-version:content-type :x-priority:x-msmail-priority:x-mailer:thread-index:content-language :importance; bh=hEXgDWP2eRd1qiocIguIeSV261zMTDYk7ZkSCfXfOVo=; b=z1VSvvd1JifxIse20KbTFWmpUjh8UxS05L7oUZ34KteX8W55GSIi0ItrWmZI97PmOt ZbMAmRSRiX+9/wjD8fLLTCsh5IcbEwsFqcn2tA/kr4doAmw5K3NnMt5+KmTVS0h+wfVH JnalunwUmMqGM7DBD/sC7dG1ixVln1ZOAufeuQWFuSsWGbDF/I1j71nwTScfbDuX3IyF k6KU9P7zAhvTodRgCllP1lnYyDURuFb3ZFHMugCJpY8Ho7TAYG2ZkH+u0GXmV9FyJSKn LskODVnnze1OmWiwPvQWOJ3AZy9gPRPaqGxCQLmrkRVMGfQ9udaJ1ZsoxdjacAYEnVMH Chow== Received: by 10.42.47.136 with SMTP id o8mr5751378icf.47.1345248503920; Fri, 17 Aug 2012 17:08:23 -0700 (PDT) Received: from ArbolOnePC ([99.228.234.22]) by mx.google.com with ESMTPS id dw5sm6090196igc.6.2012.08.17.17.08.22 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 17 Aug 2012 17:08:23 -0700 (PDT) From: Arbol One To: Subject: Emitting signals Date: Fri, 17 Aug 2012 20:08:15 -0400 Message-ID: <000501cd7cd5$91860490$b4920db0$@com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0006_01CD7CB4.0A746490" X-Priority: 1 (Highest) X-MSMail-Priority: High X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: Ac181ZCKKp3Mo/V/TxSPdTZBS4xYDQ== Content-Language: en-us Importance: High X-BeenThere: gtkmm-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: gtkmm general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 18 Aug 2012 00:08:59 -0000 This is a multi-part message in MIME format. ------=_NextPart_000_0006_01CD7CB4.0A746490 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit The idea in the bellow example is to present what my intentions are. Now, what I would like to do is to emit a signal from 'class A' that would represent the signal sent from the Gtk::Entry widget; any program using 'class A', in this case 'class B', would be able to capture the signal and, if so wished, resend it. I don't have a clue how to accomplish this, so I thought of running it by you first, any ideas would be most appreciated. Thanks in advance. -------------------------------- example--------------- class A : virtual public Gtk::SomeWidget{ Gtk::Entry* mEntry; A(); virtual ~A(); bool a_slot(GdkEventFocus* event); sigc::signal signal_detected; }; A::A(){ mEntry = manage(new Gtk::Entry()); mEntry ->signal_focus_out_event().connect(sigc::mem_fun(*this, &A::a_slot)); } bool::A::a_slot(GdkEventFocus* event){ // emit a signal_focus_out_event return false; } class B : virtual public Gtk::Window{ . A* a; B(); virtual ~B(); bool b_slot(GdkEventFocus* event); sigc::signal signal_detected; }; B:B(){ a = manage(new A); a->signal_focus_out_event().connect(sigc::mem_fun(*this, &B::b_slot)); } bool::A::a_slot(GdkEventFocus* event){ // emit a signal_focus_out_event return false; } int main(int argc, char *argv[]) { Gtk::Main kit(argc, argv); B app; Gtk::Main::run(app); return 0; } This e-mail is for the sole use of the intended recipient and may contain confidential or privileged information. Unauthorized use of its contents is prohibited. If you have received this e-mail in error, please notify sender immediately via return e-mail and then delete the original e-mail. ------=_NextPart_000_0006_01CD7CB4.0A746490 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

The idea = in the bellow example is to present what my intentions are. =

Now, what I would like to do is to = emit a signal from 'class A' that would represent the signal sent from = the Gtk::Entry widget; any program using 'class A', in this case 'class = B', would be able to capture the signal and, if so wished, resend it. I = don't have a clue how to accomplish this, so I thought of running it by = you first, any ideas would be most appreciated.

Thanks in advance.

 

-------------------------------- = example---------------

class A : = virtual public Gtk::SomeWidget{

   Gtk::Entry* mEntry;

   A();

   virtual ~A();

   bool a_slot(GdkEventFocus* = event);

   = sigc::signal<void> signal_detected;

};

A::A(){

   mEntry =3D manage(new = Gtk::Entry());

   mEntry = ->signal_focus_out_event().connect(sigc::mem_fun(*this, = &A::a_slot));

   = }

bool::A::a_slot(GdkEventFocus* = event){

//   emit a = signal_focus_out_event

return = false;

}

class B : virtual public Gtk::Window{

   …

   A* a;

   B();

  virtual  ~B();

   bool b_slot(GdkEventFocus* = event);

   = sigc::signal<void> signal_detected;

};

B:B(){

   = a =3D manage(new A);

   = a->signal_focus_out_event().connect(sigc::mem_fun(*this, = &B::b_slot));

}

bool::A::a_slot(GdkEventFocus* = event){

//   emit a = signal_focus_out_event

return = false;

}

int main(int argc, char *argv[]) {

    Gtk::Main kit(argc, = argv);

    B = app;

    = Gtk::Main::run(app);

 

    return 0;

}

 

This e-mail = is for the sole use of the intended recipient and may contain = confidential or privileged information. Unauthorized use of its contents = is prohibited. If you have received this e-mail in error, please notify = sender immediately via return e-mail and then delete the original = e-mail.

 

------=_NextPart_000_0006_01CD7CB4.0A746490-- From arbolone@gmail.com Sat Aug 18 00:18:30 2012 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 menubar.gnome.org (Postfix) with ESMTP id 3E8227500EB for ; Sat, 18 Aug 2012 00:18:30 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.622 X-Spam-Level: X-Spam-Status: No, score=-2.622 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, TW_TK=0.077] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id PSdwJ9+t6o27 for ; Sat, 18 Aug 2012 00:18:26 +0000 (UTC) Received: from mail-ob0-f182.google.com (mail-ob0-f182.google.com [209.85.214.182]) by menubar.gnome.org (Postfix) with ESMTP id DD232750544 for ; Sat, 18 Aug 2012 00:18:25 +0000 (UTC) Received: by obbun3 with SMTP id un3so10781901obb.27 for ; Fri, 17 Aug 2012 17:18:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id:mime-version:content-type:x-mailer :thread-index:content-language; bh=oWkkC10AdgUy2xxMw97CcZ6IbwoT+hLipiowegexmw0=; b=olKQzrw7LZFTq91gEF2TADKCLNF7r8gDhtYSUjA7E7cAAkEKq412NxqW6vpdqx+xKo 0j5HLv671LDjhXCh5fXENLRJ2Dicpjd+JPvKJPk0XYo+tIZTQUfUtutJ19cQvdKrcLeF Mpr0q5OP7xD9AJuXAksfpqS09YZs9jbRyb8kTsjVOHhn9jWMZ6pcHA8T+iPNmVlmK55L E2hfAyUejphMGgSbyg2asmCsgfTRTLBceSWgF4rCZUdVO7j60bLafF592BF84rpYhGwH 9/YA9NtcXNmqdw9XbYf0xy25hZQ8GHLzqMUvDcyxliALVjw6Za4e04RxyLMzLMT3Zm8h lx7Q== Received: by 10.50.182.135 with SMTP id ee7mr3614017igc.10.1345249104076; Fri, 17 Aug 2012 17:18:24 -0700 (PDT) Received: from ArbolOnePC ([99.228.234.22]) by mx.google.com with ESMTPS id va9sm6077577igb.17.2012.08.17.17.18.22 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 17 Aug 2012 17:18:23 -0700 (PDT) From: Arbol One To: Subject: Emit a signal Date: Fri, 17 Aug 2012 20:18:16 -0400 Message-ID: <000001cd7cd6$f74c9810$e5e5c830$@com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0001_01CD7CB5.703AF810" X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: Ac181vaB1LstxUHPQ8Cx4GbKQhKaYQ== Content-Language: en-us X-BeenThere: gtkmm-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: gtkmm general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 18 Aug 2012 00:18:30 -0000 This is a multi-part message in MIME format. ------=_NextPart_000_0001_01CD7CB5.703AF810 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Using Gtkmm - 2.22 on my Win7 with MinGW. Now, what I would like to do is to emit a signal from 'class A' that would represent the signal sent from the Gtk::Entry widget; any program using 'class A', in this case 'class B', would be able to capture the signal and, if so wished, resend it. I don't have a clue how to accomplish this, so I thought of running it by you first, any ideas would be most appreciated. Thanks in advance. -------------------------------- example--------------- class A : virtual public Gtk::SomeWidget{ Gtk::Entry* mEntry; A(); virtual ~A(); bool a_slot(GdkEventFocus* event); sigc::signal signal_detected; }; A::A(){ mEntry = manage(new Gtk::Entry()); mEntry ->signal_focus_out_event().connect(sigc::mem_fun(*this, &A::a_slot)); } bool::A::a_slot(GdkEventFocus* event){ // emit a signal_focus_out_event return false; } class B : virtual public Gtk::Window{ . A* a; B(); virtual ~B(); bool b_slot(GdkEventFocus* event); sigc::signal signal_detected; }; B:B(){ a = manage(new A); a->signal_focus_out_event().connect(sigc::mem_fun(*this, &B::b_slot)); } bool::A::a_slot(GdkEventFocus* event){ // emit a signal_focus_out_event return false; } int main(int argc, char *argv[]) { Gtk::Main kit(argc, argv); B app; Gtk::Main::run(app); return 0; } This e-mail is for the sole use of the intended recipient and may contain confidential or privileged information. Unauthorized use of its contents is prohibited. If you have received this e-mail in error, please notify sender immediately via return e-mail and then delete the original e-mail. ------=_NextPart_000_0001_01CD7CB5.703AF810 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Using = Gtkmm - 2.22 on my Win7 with MinGW.

 

Now, what I = would like to do is to emit a signal from 'class A' that would represent = the signal sent from the Gtk::Entry widget; any program using 'class A', = in this case 'class B', would be able to capture the signal and, if so = wished, resend it. I don't have a clue how to accomplish this, so I = thought of running it by you first, any ideas would be most = appreciated.

Thanks in = advance.

 

-------------------------------- = example---------------

class A : = virtual public Gtk::SomeWidget{

   Gtk::Entry* mEntry;

   A();

   virtual ~A();

   bool a_slot(GdkEventFocus* = event);

   = sigc::signal<void> signal_detected;

};

A::A(){

   mEntry =3D manage(new = Gtk::Entry());

   mEntry = ->signal_focus_out_event().connect(sigc::mem_fun(*this, = &A::a_slot));

   = }

bool::A::a_slot(GdkEventFocus* = event){

//   emit a = signal_focus_out_event

return = false;

}

class B : virtual public Gtk::Window{

   …

   A* a;

   B();

  virtual  ~B();

   bool b_slot(GdkEventFocus* = event);

   = sigc::signal<void> signal_detected;

};

B:B(){

   = a =3D manage(new A);

   = a->signal_focus_out_event().connect(sigc::mem_fun(*this, = &B::b_slot));

}

bool::A::a_slot(GdkEventFocus* = event){

//   emit a = signal_focus_out_event

return = false;

}

int main(int argc, char *argv[]) {

    Gtk::Main kit(argc, = argv);

    B = app;

    = Gtk::Main::run(app);

 

    return 0;

}

 

 

This e-mail = is for the sole use of the intended recipient and may contain = confidential or privileged information. Unauthorized use of its contents = is prohibited. If you have received this e-mail in error, please notify = sender immediately via return e-mail and then delete the original = e-mail.

 

------=_NextPart_000_0001_01CD7CB5.703AF810-- From arbolone@gmail.com Sat Aug 18 07:08:12 2012 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 menubar.gnome.org (Postfix) with ESMTP id AA0377501BF for ; Sat, 18 Aug 2012 07:08:12 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.535 X-Spam-Level: X-Spam-Status: No, score=-2.535 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, TW_TK=0.077, TW_TN=0.077, T_FILL_THIS_FORM_SHORT=0.01] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id eifB+M2pn0Lf for ; Sat, 18 Aug 2012 07:08:10 +0000 (UTC) Received: from mail-iy0-f182.google.com (mail-iy0-f182.google.com [209.85.210.182]) by menubar.gnome.org (Postfix) with ESMTP id 0C7BB750060 for ; Sat, 18 Aug 2012 07:08:09 +0000 (UTC) Received: by ialo14 with SMTP id o14so1893174ial.27 for ; Sat, 18 Aug 2012 00:08:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id:mime-version:content-type:x-mailer :thread-index:content-language; bh=eznYMyRNKGHuOzZ0pu4A96gYWganVk+MCkuE9NQGGJI=; b=iONwOimNJhiMlD6GA/j6yqSpLFsn0NdYl0Tmwm/OQH7W+i94dFl20xmZVyyAH3Uibt 3crqBb7KtwObPXBsHpwDn+caM6YAbMU5xM4CmGJDR6clUza/DrCjSfyNAyQCXmtFJ/r3 Hut/EPKn5A9QjIo4WGGgQNdvUiv+25hp4wiGnAbWXe2DCBTHJu8TngKsTRueS6w2WXPn yVWPbMK6IZ75iHa1n7MaObhGP/LOAiouUvCmwsudyN9WOLrW8G8sIrVXUQMAtYUW5jTQ tGDRJsAVGyERxpJr6oc8QRK6OQn2NBMTdEOkKmdgvFMXK6WBaf3Tg2QIkogno6abWs1r aTQg== Received: by 10.50.193.201 with SMTP id hq9mr4105429igc.48.1345273688198; Sat, 18 Aug 2012 00:08:08 -0700 (PDT) Received: from ArbolOnePC ([99.228.234.22]) by mx.google.com with ESMTPS id ua2sm13420220igb.7.2012.08.18.00.08.06 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 18 Aug 2012 00:08:07 -0700 (PDT) From: Arbol One To: Subject: libsigc++ tutorial Date: Sat, 18 Aug 2012 03:07:59 -0400 Message-ID: <000001cd7d10$3450ed40$9cf2c7c0$@com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0001_01CD7CEE.AD3F4D40" X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: Ac19EDNSDjyvJlSmToWo8tg2wUphkg== Content-Language: en-us X-BeenThere: gtkmm-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: gtkmm general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 18 Aug 2012 07:08:12 -0000 This is a multi-part message in MIME format. ------=_NextPart_000_0001_01CD7CEE.AD3F4D40 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Using Gtkmm - 2.22 on Win7 with MinGW. Well, this is what I have done so far, based on what I understand from the libsigc++ tutorial, what am I doing wrong? class myEntry : virtual public Gtk::VBox { private: Gtk::Entry* ntrTest; Gtk::Label* lblTest; sigc::signal signal_detected; public: myEntry(); virtual ~myEntry() {} bool notifyOutofFocus(GdkEventFocus* event); }; myEntry::myEntry() { this->ntrTest = Gtk::manage(new Gtk::Entry()); this->ntrTest->signal_focus_out_event().connect(sigc::mem_fun(*this, &jme::myEntry::notifyOutofFocus)); this->lblTest = Gtk::manage(new Gtk::Label("test", Gtk::ALIGN_LEFT)); this->pack_start(*lblTest); this->pack_start(*ntrTest); } bool myEntry::notifyOutofFocus(GdkEventFocus* event) { signal_detected.emit(); return false; } class runner : public Gtk::Window { private: Gtk::Button* btnapply; Gtk::Button* btnexit; Gtk::HBox* btnhb; Gtk::VBox* vb; jme::myEntry* mentry; public: runner(); ~runner() {} void apply() { Display(); } void close() { this->hide(); } bool warn_people(); }; bool runner::warn_people() { sleep(3); Display(); return false; } runner::runner() { btnhb = Gtk::manage(new Gtk::HBox); vb = Gtk::manage(new Gtk::VBox); mentry = Gtk::manage(new jme::myEntry); ////////// >> compile time error !! mentry->signal_detected.connect( sigc::ptr_fun(&runner::warn_people) ); //////// <<< compile time error ends btnapply = Gtk::manage(new Gtk::Button(Gtk::Stock::APPLY)); //btnapply->signal_clicked().connect( sigc::mem_fun(*this, &runner::apply)); btnexit = Gtk::manage(new Gtk::Button(Gtk::Stock::CLOSE)); btnexit->signal_clicked().connect(sigc::mem_fun(*this, &runner::close)); vb->pack_start(*mentry); btnhb->pack_start(*btnapply); btnhb->pack_start(*btnexit); vb->pack_start(*btnhb); set_default_size(200, 50); this->add(*vb); this->show_all(); } int main(int argc, char *argv[]) { Gtk::Main kit(argc, argv); runner jaime; Gtk::Main::run(jaime); return 0; } This e-mail is for the sole use of the intended recipient and may contain confidential or privileged information. Unauthorized use of its contents is prohibited. If you have received this e-mail in error, please notify sender immediately via return e-mail and then delete the original e-mail. ------=_NextPart_000_0001_01CD7CEE.AD3F4D40 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Using = Gtkmm - 2.22 on  Win7 with MinGW.

 

 

Well, this = is what I have done so far, based on what I understand from the = libsigc++ tutorial, what am I doing wrong?

class myEntry : virtual public Gtk::VBox = {

private:

    Gtk::Entry* = ntrTest;

    = Gtk::Label* lblTest;

    sigc::signal<void> = signal_detected;

public:

    myEntry();

    virtual ~myEntry() = {}

    bool = notifyOutofFocus(GdkEventFocus* event);

};

myEntry::myEntry() {

    this->ntrTest =3D = Gtk::manage(new Gtk::Entry());

    = this->ntrTest->signal_focus_out_event().connect(sigc::mem_fun(*this= , &jme::myEntry::notifyOutofFocus));

    this->lblTest =3D = Gtk::manage(new Gtk::Label("test", = Gtk::ALIGN_LEFT));

    = this->pack_start(*lblTest);

    = this->pack_start(*ntrTest);

 

}

bool = myEntry::notifyOutofFocus(GdkEventFocus* event) {

    =     signal_detected.emit();

        return = false;

}

class runner : public Gtk::Window {

private:

    Gtk::Button* = btnapply;

    = Gtk::Button* btnexit;

    Gtk::HBox* btnhb;

    Gtk::VBox* vb;

    jme::myEntry* = mentry;

 

public:

    runner();

    ~runner() {}

    void apply() { = Display();    }

    void close() { =  this->hide();   }

    bool = warn_people();

 

};

bool = runner::warn_people() {

    sleep(3);

    Display();

    return false;

}

 

runner::runner() {

    btnhb =3D Gtk::manage(new = Gtk::HBox);

    vb =3D = Gtk::manage(new Gtk::VBox);

    mentry =3D Gtk::manage(new = jme::myEntry);

////////// >> = compile time error !!

    mentry->signal_detected.connect( = sigc::ptr_fun(&runner::warn_people) );

//////// <<< compile time error = ends

    btnapply =3D = Gtk::manage(new Gtk::Button(Gtk::Stock::APPLY));

    = //btnapply->signal_clicked().connect( sigc::mem_fun(*this, = &runner::apply));

 

    btnexit =3D Gtk::manage(new = Gtk::Button(Gtk::Stock::CLOSE));

    = btnexit->signal_clicked().connect(sigc::mem_fun(*this, = &runner::close));

 

    = vb->pack_start(*mentry);

    = btnhb->pack_start(*btnapply);

    = btnhb->pack_start(*btnexit);

    = vb->pack_start(*btnhb);

 

    set_default_size(200, = 50);

    = this->add(*vb);

    = this->show_all();

 

 

}

 

int main(int = argc, char *argv[]) {

    Gtk::Main kit(argc, = argv);

    runner = jaime;

    = Gtk::Main::run(jaime);

 

    return 0;

}

 

This e-mail = is for the sole use of the intended recipient and may contain = confidential or privileged information. Unauthorized use of its contents = is prohibited. If you have received this e-mail in error, please notify = sender immediately via return e-mail and then delete the original = e-mail.

 

------=_NextPart_000_0001_01CD7CEE.AD3F4D40-- From qdlacz@gmail.com Sat Aug 18 14:38:30 2012 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 menubar.gnome.org (Postfix) with ESMTP id 722EE7503A3 for ; Sat, 18 Aug 2012 14:38:30 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.469 X-Spam-Level: X-Spam-Status: No, score=-2.469 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, TW_GT=0.077, TW_TK=0.077, TW_TN=0.077] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 0AtsObMoloGq for ; Sat, 18 Aug 2012 14:38:16 +0000 (UTC) Received: from mail-lpp01m010-f54.google.com (mail-lpp01m010-f54.google.com [209.85.215.54]) by menubar.gnome.org (Postfix) with ESMTP id 3F6E475029B for ; Sat, 18 Aug 2012 14:38:15 +0000 (UTC) Received: by lage12 with SMTP id e12so4368947lag.27 for ; Sat, 18 Aug 2012 07:38:13 -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=v7nVRFsZGNnt9BLIKf0UWox3bSy8L/36fKuxQtsj3n4=; b=AgvHQpsElirjKn5ZQb/2AVibtfj5FwxknL0p7thQS4NzKcng7UXZUiljCc3LoyYtBP 73XpwpNT519gYfyGB4RZXcWrVN1gILSE1ZugZN9J0SAmNCHEEa6YPdorpR4323TycjJT qyil2W5R0t4oDMhPVTEHeKe2jLPfcNprs57i1HoXuspZGw9NA+Dxv2ei+6PieP9N9qg/ L583RuMMc6uknDPPqCGfbhapR04S1QzVrVmKiyzuaR9E5fFhWCQhR61MMALeOzcR8NJR EhVnSE0HJqmrriw+wMVmiW9EQ6vYbOSr0BbExpn8Zm9VGZ5jKcB1FKk+5Kk2ADWqHdNI RMrA== MIME-Version: 1.0 Received: by 10.112.26.38 with SMTP id i6mr771692lbg.76.1345300693717; Sat, 18 Aug 2012 07:38:13 -0700 (PDT) Received: by 10.112.85.137 with HTTP; Sat, 18 Aug 2012 07:38:13 -0700 (PDT) In-Reply-To: <000001cd7d10$3450ed40$9cf2c7c0$@com> References: <000001cd7d10$3450ed40$9cf2c7c0$@com> Date: Sat, 18 Aug 2012 16:38:13 +0200 Message-ID: Subject: Re: libsigc++ tutorial From: Krzesimir Nowak To: Arbol One Content-Type: text/plain; charset=ISO-8859-1 Cc: gtkmm-list@gnome.org X-BeenThere: gtkmm-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: gtkmm general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 18 Aug 2012 14:38:30 -0000 2012/8/18 Arbol One : > Using Gtkmm - 2.22 on Win7 with MinGW. > > > > > > Well, this is what I have done so far, based on what I understand from the > libsigc++ tutorial, what am I doing wrong? > > class myEntry : virtual public Gtk::VBox { > > private: > > Gtk::Entry* ntrTest; > > Gtk::Label* lblTest; > > sigc::signal signal_detected; > > public: > > myEntry(); > > virtual ~myEntry() {} > > bool notifyOutofFocus(GdkEventFocus* event); > > }; > > myEntry::myEntry() { > > this->ntrTest = Gtk::manage(new Gtk::Entry()); > > this->ntrTest->signal_focus_out_event().connect(sigc::mem_fun(*this, > &jme::myEntry::notifyOutofFocus)); > > this->lblTest = Gtk::manage(new Gtk::Label("test", Gtk::ALIGN_LEFT)); > > this->pack_start(*lblTest); > > this->pack_start(*ntrTest); > > > > } > > bool myEntry::notifyOutofFocus(GdkEventFocus* event) { > > signal_detected.emit(); > > return false; > > } > > class runner : public Gtk::Window { > > private: > > Gtk::Button* btnapply; > > Gtk::Button* btnexit; > > Gtk::HBox* btnhb; > > Gtk::VBox* vb; > > jme::myEntry* mentry; > > > > public: > > runner(); > > ~runner() {} > > void apply() { Display(); } > > void close() { this->hide(); } > > bool warn_people(); > > > > }; > > bool runner::warn_people() { > > sleep(3); > > Display(); > > return false; > > } > bool runner::warn_people() is runner's non-static method, but... > > runner::runner() { > > btnhb = Gtk::manage(new Gtk::HBox); > > vb = Gtk::manage(new Gtk::VBox); > > mentry = Gtk::manage(new jme::myEntry); > > ////////// >> compile time error !! > > mentry->signal_detected.connect( sigc::ptr_fun(&runner::warn_people) ); > > //////// <<< compile time error ends ... here you treat it as either static method or mere function. Use sigc::mem_fun instead of sigc::ptr_fun (like you are doing two lines lower in comment line). > btnapply = Gtk::manage(new Gtk::Button(Gtk::Stock::APPLY)); > > //btnapply->signal_clicked().connect( sigc::mem_fun(*this, > &runner::apply)); > > > > btnexit = Gtk::manage(new Gtk::Button(Gtk::Stock::CLOSE)); > > btnexit->signal_clicked().connect(sigc::mem_fun(*this, &runner::close)); > > > > vb->pack_start(*mentry); > > btnhb->pack_start(*btnapply); > > btnhb->pack_start(*btnexit); > > vb->pack_start(*btnhb); > > > > set_default_size(200, 50); > > this->add(*vb); > > this->show_all(); > > > > > > } > > > > int main(int argc, char *argv[]) { > > Gtk::Main kit(argc, argv); > > runner jaime; > > Gtk::Main::run(jaime); > > > > return 0; > > } > > > > This e-mail is for the sole use of the intended recipient and may contain > confidential or privileged information. Unauthorized use of its contents is > prohibited. If you have received this e-mail in error, please notify sender > immediately via return e-mail and then delete the original e-mail. > > > > > _______________________________________________ > gtkmm-list mailing list > gtkmm-list@gnome.org > https://mail.gnome.org/mailman/listinfo/gtkmm-list > From jakub@okonski.org Sun Aug 19 17:10:22 2012 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 menubar.gnome.org (Postfix) with ESMTP id 85F91750429 for ; Sun, 19 Aug 2012 17:10:22 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -1.829 X-Spam-Level: X-Spam-Status: No, score=-1.829 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_SORBS_WEB=0.77] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id OIgFc72x2kEX for ; Sun, 19 Aug 2012 17:10:20 +0000 (UTC) Received: from mail-qc0-f182.google.com (mail-qc0-f182.google.com [209.85.216.182]) by menubar.gnome.org (Postfix) with ESMTP id 0A85D750436 for ; Sun, 19 Aug 2012 17:10:19 +0000 (UTC) Received: by qcsg15 with SMTP id g15so6396924qcs.27 for ; Sun, 19 Aug 2012 10:10:18 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-originating-ip:date:message-id:subject:from:to :content-type:x-gm-message-state; bh=ZsH+NTCLcPHgyYEoYUD7LB9IA471YrKqhdJPGjKZTsY=; b=Txtnozuj6tretWlvGHnec7/LUKxrHjcrIXHbzGs3MW34tsXBmDtngXvf4/7LBeLzj1 gGen/2earL2Bf3a+f93C0UhILBtk2Nj06IsKPteQ37smP9fR9/nXDlyrtu6UfcFwUZGN Ue/DaW1I4Y7ghYFn1jtRqQyGrwQcj4mXES5QCR8CHuLARqj3cKNy1xEAPH0bQpT0Npqb IdIj4tRiDwOQP2rh3ZY69eOYi+VTQK4cY51Frm/P8TM1ZUccJz/XftIlnZTo0YxKIHdu 2mJM7K0fTjwaMgCVf7jTAVjn+NBILypsMppH5IAEfhmJV+Tpt8cpr7wgYl6bGQVEQF23 mJ6Q== MIME-Version: 1.0 Received: by 10.229.136.1 with SMTP id p1mr1607950qct.81.1345396218118; Sun, 19 Aug 2012 10:10:18 -0700 (PDT) Received: by 10.229.25.6 with HTTP; Sun, 19 Aug 2012 10:10:18 -0700 (PDT) X-Originating-IP: [92.55.195.150] Date: Sun, 19 Aug 2012 19:10:18 +0200 Message-ID: Subject: Glib::Regex and unicode chars From: =?ISO-8859-2?Q?Jakub_Oko=F1ski?= To: gtkmm-list@gnome.org Content-Type: multipart/alternative; boundary=00248c70feb5a9c0a404c7a177bd X-Gm-Message-State: ALoCoQnRYQFT1YWDDZ22HFT0QN5wCeJwjHDyAQXg9TqiYOSef1BXxP1wDZumgBvlUTSsykGTU/RL X-BeenThere: gtkmm-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: gtkmm general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 19 Aug 2012 17:10:23 -0000 --00248c70feb5a9c0a404c7a177bd Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hello, I'm trying to implement syntax highlighting and it works perfectly until I input some special chars, in which fetch_pos method gives me number of bytes rather than characters. Let's take this regex object for example: Glib::Regex::create(R"((?class))", Glib::RegexCompileFlags::REGEX_OPTIMIZE); fetch_pos method works perfectly on ascii text, but as soon as I prepend the string with any multibyte unicode character, fetch_pos gives me shifted values. (The shift is equal to test_string.bytes() - test_string.length()). I could probably fix this manually by adjusting shift by the difference of bytes and length, but I'm sure that would not be efficient and I would have to look back in the buffer constantly. Same goes for capturing keywords that have unicode characters themselves, for example capturing "clas=C5=9B" (note the special character at the end) = would result in fetch_pos giving range of 6 characters, when the word contains 5 characters (but has 6 bytes). Maybe I'm not using it correctly, but it was said that Glib::Regex supports utf-8. Thanks --00248c70feb5a9c0a404c7a177bd Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hello,

I'm trying to implement syntax highlighting a= nd it works perfectly until I input some special chars, in which fetch_pos = method gives me number of bytes rather than characters. Let's take this= regex object for example:

Glib::Regex::create(R"((?<word>class))"= , Glib::RegexCompileFlags::REGEX_OPTIMIZE);

fetch_= pos method works perfectly on ascii text, but as soon as I prepend the stri= ng with any multibyte unicode character, fetch_pos gives me shifted values.= (The shift is equal to test_string.bytes() - test_string.length()).

I could probably fix this manually by adjusting shift b= y the difference of bytes and length, but I'm sure that would not be ef= ficient and I would have to look back in the buffer constantly.

Same goes for capturing keywords that have unicode character= s themselves, for example capturing "clas=C5=9B" (note the specia= l character at the end) would result in fetch_pos giving range of 6 charact= ers, when the word contains 5 characters (but has 6 bytes).

Maybe I'm not using it correctly, but it was said t= hat Glib::Regex supports utf-8.

Thanks
--00248c70feb5a9c0a404c7a177bd-- From lists@binarywings.net Mon Aug 20 15:12:32 2012 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 menubar.gnome.org (Postfix) with ESMTP id 347187505CF for ; Mon, 20 Aug 2012 15:12:32 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.701 X-Spam-Level: X-Spam-Status: No, score=-2.701 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_LOW=-0.7, SPF_PASS=-0.001] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id QG59H-yXCdVh for ; Mon, 20 Aug 2012 15:12:18 +0000 (UTC) Received: from out5-smtp.messagingengine.com (out5-smtp.messagingengine.com [66.111.4.29]) by menubar.gnome.org (Postfix) with ESMTP id 53F03750426 for ; Mon, 20 Aug 2012 15:12:18 +0000 (UTC) Received: from compute5.internal (compute5.nyi.mail.srv.osa [10.202.2.45]) by gateway1.nyi.mail.srv.osa (Postfix) with ESMTP id C663520958 for ; Mon, 20 Aug 2012 11:12:16 -0400 (EDT) Received: from frontend1.nyi.mail.srv.osa ([10.202.2.160]) by compute5.internal (MEProxy); Mon, 20 Aug 2012 11:12:16 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=binarywings.net; h=message-id:date:from:mime-version:to:subject:references :in-reply-to:content-type; s=mesmtp; bh=4Kkk/x4Q6difxH1VUOSnpYUJ 758=; b=covx73M0x2KWEYgIXg01waOgZJw8Rg+nJR6sO1gIVA1JOk5P4vH2+Av2 7vkl7g64sPSuH2bei0UwMLnvmlcN0oNGNwGrrZt0GEFDqrBUsb9eDddkhxgewWEc 0xBrrWWFP4/3HJF9BpENDnKOKUMKYdG1emZGPYpWpqQwyTwqCnU= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=message-id:date:from:mime-version:to :subject:references:in-reply-to:content-type; s=smtpout; bh=4Kkk /x4Q6difxH1VUOSnpYUJ758=; b=J9Ac4/3SWry7sDBdXHOhIRogVGy7/9R7qYQh FJwlOIOn+CXx2JnTn+3CABVJKEeKXntpqsd2blrfRqJ7mu+ZVlchqhiYKqOXX/wy 1Wi6wAK5ImepnbUamHjoeaQ1IdPUUxeWswBLBeMybgVI8BqztQE21KEqfyHTQ0gV +3VLQI4= X-Sasl-enc: ESEPIoYvbZx1IteWECL/PhECAArCvrVzLDSg0MIoTuL1 1345475535 Received: from [10.210.253.3] (unknown [176.5.253.3]) by mail.messagingengine.com (Postfix) with ESMTPA id B75928E03C0 for ; Mon, 20 Aug 2012 11:12:15 -0400 (EDT) Message-ID: <503253C9.50109@binarywings.net> Date: Mon, 20 Aug 2012 17:12:09 +0200 From: Florian Philipp User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.6esrpre) Gecko/20120804 Thunderbird/10.0.6 MIME-Version: 1.0 To: gtkmm-list@gnome.org Subject: Re: Glib::Regex and unicode chars References: In-Reply-To: X-Enigmail-Version: 1.3.5 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig5C6948F184A1354F7FEF0687" X-BeenThere: gtkmm-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: gtkmm general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 Aug 2012 15:12:32 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig5C6948F184A1354F7FEF0687 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Am 19.08.2012 19:10, schrieb Jakub Oko=C5=84ski: > Hello, >=20 > I'm trying to implement syntax highlighting and it works perfectly unti= l > I input some special chars, in which fetch_pos method gives me number o= f > bytes rather than characters. Let's take this regex object for example:= >=20 > Glib::Regex::create(R"((?class))", > Glib::RegexCompileFlags::REGEX_OPTIMIZE); >=20 > fetch_pos method works perfectly on ascii text, but as soon as I prepen= d > the string with any multibyte unicode character, fetch_pos gives me > shifted values. (The shift is equal to test_string.bytes() - > test_string.length()). >=20 > I could probably fix this manually by adjusting shift by the difference= > of bytes and length, but I'm sure that would not be efficient and I > would have to look back in the buffer constantly. >=20 > Same goes for capturing keywords that have unicode characters > themselves, for example capturing "clas=C5=9B" (note the special charac= ter at > the end) would result in fetch_pos giving range of 6 characters, when > the word contains 5 characters (but has 6 bytes). >=20 > Maybe I'm not using it correctly, but it was said that Glib::Regex > supports utf-8. >=20 > Thanks >=20 Hmm, that's unfortunate. Two ideas to work around: 1. Work on the std::string directly (ustring::raw()) and convert back to ustring when you are finished. 2. Use g_utf8_pointer_to_offset() to get from position to position, caching the result if necessary. =46rom looking at the code for ustring, it is obvious that it does basically the same thing so you don't lose any performance. (Which, by the way, also means that iterating over a ustring with operator[] has an O(n^2) overhead. Good to know.) Hope this helps, Florian Philipp --------------enig5C6948F184A1354F7FEF0687 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAlAyU80ACgkQqs4uOUlOuU9OeACeMPJSYXJk+qUN0VCAgYBDn536 46cAmweHB5Q+T2JhxrUQyTIS/nEX3RCy =8r6p -----END PGP SIGNATURE----- --------------enig5C6948F184A1354F7FEF0687-- From gnome@hupe.me Mon Aug 20 20:59:00 2012 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 menubar.gnome.org (Postfix) with ESMTP id 3F90D75117D for ; Mon, 20 Aug 2012 20:59:00 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -1.67 X-Spam-Level: X-Spam-Status: No, score=-1.67 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, TW_GT=0.077, TW_JJ=0.077, TW_TK=0.077] autolearn=no Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id pE35iDRANjJS for ; Mon, 20 Aug 2012 20:58:44 +0000 (UTC) X-Greylist: delayed 1200 seconds by postgrey-1.34 at menubar.gnome.org; Mon, 20 Aug 2012 20:58:44 UTC Received: from mo3.mail-out.ovh.net (6.mo3.mail-out.ovh.net [188.165.43.173]) by menubar.gnome.org (Postfix) with ESMTP id 56D8F751165 for ; Mon, 20 Aug 2012 20:58:43 +0000 (UTC) Received: from mail427.ha.ovh.net (b7.ovh.net [213.186.33.57]) by mo3.mail-out.ovh.net (Postfix) with SMTP id D360AFFA4C0 for ; Mon, 20 Aug 2012 22:27:43 +0200 (CEST) Received: from b0.ovh.net (HELO queueout) (213.186.33.50) by b0.ovh.net with SMTP; 20 Aug 2012 22:20:49 +0200 Received: from 127.149.102.84.rev.sfr.net (HELO ?192.168.1.3?) (84.102.149.127) by ns0.ovh.net with SMTP; 20 Aug 2012 22:20:49 +0200 Message-ID: <50329C20.7010906@hupe.me> Date: Mon, 20 Aug 2012 22:20:48 +0200 From: gnome@hupe.me User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.5) Gecko/20120624 Icedove/10.0.5 MIME-Version: 1.0 To: gtkmm-list@gnome.org X-Ovh-Mailout: 178.32.228.3 (mo3.mail-out.ovh.net) Subject: how to set custom icon theme? References: <50329538.9070205@hupe.me> In-Reply-To: <50329538.9070205@hupe.me> Content-Type: multipart/mixed; boundary="------------010107070507010201090207" X-Ovh-Tracer-Id: 11250273345866319990 X-Ovh-Remote: 84.102.149.127 (127.149.102.84.rev.sfr.net) X-Ovh-Local: 213.186.33.20 (ns0.ovh.net) X-OVH-SPAMSTATE: OK X-OVH-SPAMSCORE: 18 X-OVH-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrfeehtddrudegucetufdoteggodetrfcurfhrohhfihhlvgemucfqggfjnecuuegrihhlohhuthemuceftddtnecuudcurhgrnhguohhmuchsthhrihhnghdlshdmucdludekmdenucfhrhhomhepghhnohhmvgeshhhuphgvrdhmvgenucfjughrpefkpfffhfhrfgggvffufhgjtgesmhdtrggrtdefud X-Spam-Check: DONE|U 0.5/N X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: 18 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrfeehtddrudegucetufdoteggodetrfcurfhrohhfihhlvgemucfqggfjnecuuegrihhlohhuthemuceftddtnecuudcurhgrnhguohhmuchsthhrihhnghdlshdmucdludekmdenucfhrhhomhepghhnohhmvgeshhhuphgvrdhmvgenucfjughrpefkpfffhfhrfgggvffufhgjtgesmhdtrggrtdefud X-BeenThere: gtkmm-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: gnome@hupe.me List-Id: gtkmm general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 Aug 2012 20:59:00 -0000 This is a multi-part message in MIME format. --------------010107070507010201090207 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Hi everyone, I would like to set the icon theme in my application. I added in main.cc the following but this has no effect: Glib::RefPtr defaultIconTheme = Gtk::IconTheme::create(); defaultIconTheme->set_custom_theme("Gartoon"); What is the correct way to do it? Thank you in advance. Best, Phil I use gtkmm-3.0 3.4.0 under debian wheezy. compilation command: g++ -c `pkg-config gtkmm-3.0 --cflags --libs` *.cc g++ `pkg-config gtkmm-3.0 --cflags --libs` *.o --------------010107070507010201090207 Content-Type: text/x-c++src; name="examplewindow.cc" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="examplewindow.cc" //$Id: examplewindow.cc 836 2007-05-09 03:02:38Z jjongsma $ -*- c++ -*- /* gtkmm example Copyright (C) 2002 gtkmm development team * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 * as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ #include "examplewindow.h" #include ExampleWindow::ExampleWindow() : m_ButtonBox(Gtk::ORIENTATION_VERTICAL), m_Button_File("Choose File"), m_Button_Folder("Choose Folder") { set_title("Gtk::FileSelection example"); add(m_ButtonBox); m_ButtonBox.pack_start(m_Button_File); m_Button_File.signal_clicked().connect(sigc::mem_fun(*this, &ExampleWindow::on_button_file_clicked) ); m_ButtonBox.pack_start(m_Button_Folder); m_Button_Folder.signal_clicked().connect(sigc::mem_fun(*this, &ExampleWindow::on_button_folder_clicked) ); show_all_children(); } ExampleWindow::~ExampleWindow() { } void ExampleWindow::on_button_folder_clicked() { Gtk::FileChooserDialog dialog("Please choose a folder", Gtk::FILE_CHOOSER_ACTION_SELECT_FOLDER); dialog.set_transient_for(*this); //Add response buttons the the dialog: dialog.add_button(Gtk::Stock::CANCEL, Gtk::RESPONSE_CANCEL); dialog.add_button("Select", Gtk::RESPONSE_OK); int result = dialog.run(); //Handle the response: switch(result) { case(Gtk::RESPONSE_OK): { std::cout << "Select clicked." << std::endl; std::cout << "Folder selected: " << dialog.get_filename() << std::endl; break; } case(Gtk::RESPONSE_CANCEL): { std::cout << "Cancel clicked." << std::endl; break; } default: { std::cout << "Unexpected button clicked." << std::endl; break; } } } void ExampleWindow::on_button_file_clicked() { Gtk::FileChooserDialog dialog("Please choose a file", Gtk::FILE_CHOOSER_ACTION_OPEN); dialog.set_transient_for(*this); //Add response buttons the the dialog: dialog.add_button(Gtk::Stock::CANCEL, Gtk::RESPONSE_CANCEL); dialog.add_button(Gtk::Stock::OPEN, Gtk::RESPONSE_OK); //Add filters, so that only certain file types can be selected: Glib::RefPtr filter_text = Gtk::FileFilter::create(); filter_text->set_name("Text files"); filter_text->add_mime_type("text/plain"); dialog.add_filter(filter_text); Glib::RefPtr filter_cpp = Gtk::FileFilter::create(); filter_cpp->set_name("C/C++ files"); filter_cpp->add_mime_type("text/x-c"); filter_cpp->add_mime_type("text/x-c++"); filter_cpp->add_mime_type("text/x-c-header"); dialog.add_filter(filter_cpp); Glib::RefPtr filter_any = Gtk::FileFilter::create(); filter_any->set_name("Any files"); filter_any->add_pattern("*"); dialog.add_filter(filter_any); //Show the dialog and wait for a user response: int result = dialog.run(); //Handle the response: switch(result) { case(Gtk::RESPONSE_OK): { std::cout << "Open clicked." << std::endl; //Notice that this is a std::string, not a Glib::ustring. std::string filename = dialog.get_filename(); std::cout << "File selected: " << filename << std::endl; break; } case(Gtk::RESPONSE_CANCEL): { std::cout << "Cancel clicked." << std::endl; break; } default: { std::cout << "Unexpected button clicked." << std::endl; break; } } } --------------010107070507010201090207 Content-Type: text/x-chdr; name="examplewindow.h" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="examplewindow.h" //$Id: examplewindow.h 705 2006-07-19 02:55:32Z jjongsma $ -*- c++ -*- /* gtkmm example Copyright (C) 2002 gtkmm development team * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 * as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ #ifndef GTKMM_EXAMPLEWINDOW_H #define GTKMM_EXAMPLEWINDOW_H #include class ExampleWindow : public Gtk::Window { public: ExampleWindow(); virtual ~ExampleWindow(); protected: //Signal handlers: void on_button_file_clicked(); void on_button_folder_clicked(); //Child widgets: Gtk::ButtonBox m_ButtonBox; Gtk::Button m_Button_File, m_Button_Folder; }; #endif //GTKMM_EXAMPLEWINDOW_H --------------010107070507010201090207 Content-Type: text/x-c++src; name="main.cc" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="main.cc" //$Id: main.cc 836 2007-05-09 03:02:38Z jjongsma $ -*- c++ -*- /* gtkmm example Copyright (C) 2002 gtkmm development team * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 * as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ #include "examplewindow.h" #include int main(int argc, char *argv[]) { Glib::RefPtr app = Gtk::Application::create(argc, argv, "org.gtkmm.example"); ExampleWindow window; Glib::RefPtr defaultIconTheme = Gtk::IconTheme::create(); defaultIconTheme->set_custom_theme("Gartoon"); //Shows the window and returns when it is closed. return app->run(window); } --------------010107070507010201090207-- From kozhayev@gmail.com Wed Aug 22 03:19:40 2012 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 menubar.gnome.org (Postfix) with ESMTP id 04B597500ED for ; Wed, 22 Aug 2012 03:19:40 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.622 X-Spam-Level: X-Spam-Status: No, score=-2.622 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, TW_BM=0.077] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id DbmkHl0rw6gG for ; Wed, 22 Aug 2012 03:19:37 +0000 (UTC) Received: from mail-iy0-f182.google.com (mail-iy0-f182.google.com [209.85.210.182]) by menubar.gnome.org (Postfix) with ESMTP id 62E7E750021 for ; Wed, 22 Aug 2012 03:19:37 +0000 (UTC) Received: by ialo14 with SMTP id o14so688623ial.27 for ; Tue, 21 Aug 2012 20:19: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=TOLb8aik0hKdA/Hz5BMH4trtliitydF15eIJlATQSUc=; b=g51hayPESsbXkuP70hhwah1TD7QDSuPR6YmintkgXTXAxZSVkKr4kfO3e2OErQNAkK X7GQPQGBG0YTcFgCNhfPrDfDMTfSIEmo/y2vZckV/7d5uZbDDJx1gems5+2kC4zFZxhp jYq4o0Wwlh0Z/u+aZNSal9xjg2yftr4sxfQ0D8a9zJ3RNS34PwuaLJzcsUXGWCfRdqan EFxMoTA9uKaSdT2dr5dAx3tbdnx4HQwntlbgiNTYUgK47hyXK0hHkSi1pBqdp3kONgCx /0nwt6cVDOWWHLeYeU6d4+in2q2W0YHppgOeKKPRyYDCXiZ12Mpb6VFE57BBNYauSn0Z M9zg== MIME-Version: 1.0 Received: by 10.50.171.106 with SMTP id at10mr604037igc.61.1345605575781; Tue, 21 Aug 2012 20:19:35 -0700 (PDT) Received: by 10.231.185.135 with HTTP; Tue, 21 Aug 2012 20:19:35 -0700 (PDT) Date: Wed, 22 Aug 2012 09:19:35 +0600 Message-ID: Subject: Memory leak when using Gio::File From: =?UTF-8?B?0JPQsNC70YvQvNC20LDQvQ==?= To: gtkmm-list@gnome.org Content-Type: multipart/alternative; boundary=e89a8f3ba1215a2d6904c7d2361e X-BeenThere: gtkmm-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: gtkmm general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Aug 2012 03:19:40 -0000 --e89a8f3ba1215a2d6904c7d2361e Content-Type: text/plain; charset=UTF-8 I have giomm 2.30.0 and glibmm 2.30.0. Test program: #include #include #include int main(int argc, char const *argv[]) { g_type_init(); Glib::RefPtr file = Gio::File::create_for_path("test.txt"); if (file->query_exists()) { std::cout << "File is there" << std::endl; } return 0; } Compilation and running: > g++ giomm-test.cpp -o giomm-test `pkg-config --libs --cflags giomm-2.4` > valgrind --leak-check=full --show-possibly-lost=no giomm-test (process:3152): glibmm-CRITICAL **: Glib::ObjectBase* Glib::wrap_create_new_wrapper_for_interface(GObject*, GType): assertion `wrap_func_table != 0' failed (process:3152): GLib-GObject-CRITICAL **: g_object_set_qdata_full: assertion `quark > 0' failed ==3152== ==3152== HEAP SUMMARY: ==3152== in use at exit: 69,660 bytes in 956 blocks ==3152== total heap usage: 1,569 allocs, 613 frees, 247,744 bytes allocated ==3152== ==3152== 24 bytes in 1 blocks are definitely lost in loss record 370 of 577 ==3152== at 0x402842F: operator new(unsigned int) (vg_replace_malloc.c:255) ==3152== by 0x40CB4B6: Gio::File* Glib::wrap_auto_interface(_GObject*, bool) (in /usr/lib/libgiomm-2.4.so.1.3.0) ==3152== by 0x40CAB9E: Glib::wrap(_GFile*, bool) (in /usr/lib/libgiomm-2.4.so.1.3.0) ==3152== by 0x42BE112: (below main) (libc-start.c:226) ==3152== ==3152== 160 (40 direct, 120 indirect) bytes in 1 blocks are definitely lost in loss record 520 of 577 ==3152== at 0x4028876: malloc (vg_replace_malloc.c:236) ==3152== by 0x438964C: nss_parse_service_list (nsswitch.c:626) ==3152== by 0x4389C59: __nss_database_lookup (nsswitch.c:167) ==3152== by 0x4C502F8: ??? ==3152== by 0x4C51A5D: ??? ==3152== by 0x4340956: getpwnam_r@@GLIBC_2.1.2 (getXXbyYY_r.c:256) ==3152== by 0x4659695: ??? (in /lib/i386-linux-gnu/libglib-2.0.so.0.3200.0) ==3152== by 0x61687A6C: ??? ==3152== ==3152== LEAK SUMMARY: ==3152== definitely lost: 64 bytes in 2 blocks ==3152== indirectly lost: 120 bytes in 10 blocks ==3152== possibly lost: 15,175 bytes in 268 blocks ==3152== still reachable: 54,301 bytes in 676 blocks ==3152== suppressed: 0 bytes in 0 blocks ==3152== Reachable blocks (those to which a pointer was found) are not shown. ==3152== To see them, rerun with: --leak-check=full --show-reachable=yes ==3152== ==3152== For counts of detected and suppressed errors, rerun with: -v ==3152== ERROR SUMMARY: 92 errors from 92 contexts (suppressed: 69 from 13) Why is there a memory leak? If I don't use Gio::File there is no memory leak. --e89a8f3ba1215a2d6904c7d2361e Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable I have giomm 2.30.0 and glibmm 2.30.0. Test program:

#include <iostream>
#include <glibmm.h&= gt;
#include <giomm.h>

int main(in= t argc, char const *argv[]) {
=C2=A0 g_type_init();
=C2=A0 Glib::RefPtr<Gio::File> f= ile =3D Gio::File::create_for_path("test.txt");
=C2=A0 = if (file->query_exists()) {
=C2=A0 =C2=A0 std::cout << &= quot;File is there" << std::endl;
=C2=A0 }
=C2=A0 return 0;
}


Compilation and running:


> g++ giomm-test.cpp -o giomm-test `pkg-config --libs --cflags g= iomm-2.4`
> valgrind --leak-check=3Dfull --show-possibly-lost=3Dno giomm-test=

Gtk::CellRendererSpin = parameterRenderer;
Gtk::TreeViewColumn = parameterColumn;

parameterColumn.set_title("Parameters");
<= font class=3D"Apple-style-span" = face=3D"Menlo">parameterColumn.pack_start(parameterRenderer);
=

parameterRenderer.property_adjustment() =3D = &parameterAdjustment;
parameterRenderer.property_editable() =3D = true;
parameterRenderer.property_digits() =3D = 18;

Using the above code, I could edit = positive numbers without problems.
However, every negative = number, when edited, was reset to 0.

I tried to = fix this problem by creating a column for separate Gtk::Adjustments in = my TreeModel, but simply adding a = Gtk::TreeModelColumn<Gtk::Adjustment> doesn't = compile.

I know that the simple answer for my = last problem would be to just use gtkmm 3.0, but this isn't possible for = me.

If you could help me setup the Adjustments = right, I would be very = grateful.

-- 
Best = regards,
Rafa=B3 Hirsz
= --Apple-Mail=_BBAD4EB5-0E8B-49A1-9C3C-C0C0FBB5898B-- From mohith.manoj@skanray.com Fri Aug 31 03:53:42 2012 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 menubar.gnome.org (Postfix) with ESMTP id 8196675042C for ; Fri, 31 Aug 2012 03:53:42 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -1.746 X-Spam-Level: X-Spam-Status: No, score=-1.746 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, HTML_MESSAGE=0.001, SPF_PASS=-0.001, TW_GT=0.077, TW_TK=0.077] autolearn=no Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id OCoxavFDLbH2 for ; Fri, 31 Aug 2012 03:53:40 +0000 (UTC) Received: from cpanel27.interactivedns.com (cpanel27.interactivedns.com [208.43.99.132]) by menubar.gnome.org (Postfix) with ESMTP id 01F00750D35 for ; Fri, 31 Aug 2012 03:53:37 +0000 (UTC) Received: from [59.90.166.217] (port=50255 helo=[127.0.0.1]) by cpanel27.interactivedns.com with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.77) (envelope-from ) id 1T7IIY-00022r-A3; Fri, 31 Aug 2012 09:23:35 +0530 Message-ID: <50403539.3040902@skanray.com> Date: Fri, 31 Aug 2012 09:23:29 +0530 From: Mohith Manoj User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:12.0) Gecko/20120428 Thunderbird/12.0.1 MIME-Version: 1.0 To: =?UTF-8?B?0KHRgtCw0L3QuNGB0LvQsNCyINCg0L7Qs9C+0LLRgdC60LjQuQ==?= Subject: Re: Dealing with dlls References: In-Reply-To: X-TagToolbar-Keys: D20120831092329620 Content-Type: multipart/alternative; boundary="------------030505070005060903060100" X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - cpanel27.interactivedns.com X-AntiAbuse: Original Domain - gnome.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - skanray.com X-Source: X-Source-Args: X-Source-Dir: Cc: gtkmm-list@gnome.org X-BeenThere: gtkmm-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: gtkmm general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 31 Aug 2012 03:53:42 -0000 This is a multi-part message in MIME format. --------------030505070005060903060100 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Go through section 'Redistributing' in this gnome page . The page talks about the dlls you need to pack inside your installer (if you plan or making one). Else put all the DLLs and your binary into one folder, compress it into an archive and send it to your friend. regards Mohith Manoj, Asst. Manager (R&D), Skanray Technologies PVT.LTD Web: www.skanray.com Mob: +919886742571 Ph : +918212415559 Fax: +918212403344 On Sat 25-Aug-2012 18:01, Станислав Роговский wrote: > Hello, > > I've created an application with gtkmm GUI and want to send it to my > friend, who does not have gtkmm installed. It normally executes on my > computer (it can find dlls in gtkmm/bin folder), but gives an error > about missing dll on friends' computer. I've tried to send him some of > them, but it asks about other dll's. Of course, I can send him all the > dlls containing in gtkmm/bin, but I doubt that this is the best > solution, because in this case even simple application needs a huge > bundle of libraries. Is there a better, more elegant solution? > > > > > _______________________________________________ > gtkmm-list mailing list > gtkmm-list@gnome.org > https://mail.gnome.org/mailman/listinfo/gtkmm-list --------------030505070005060903060100 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit Go through section 'Redistributing' in this gnome page.

The page talks about the dlls you need to pack inside your installer (if you plan or making one). Else put all the DLLs and your binary into one folder, compress it into an archive and send it to your friend.
regards
Mohith Manoj,
Asst. Manager (R&D),
Skanray Technologies PVT.LTD
Web: www.skanray.com
Mob: +919886742571
Ph : +918212415559
Fax: +918212403344

On Sat 25-Aug-2012 18:01, Станислав Роговский wrote:
Hello,

I've created an application with gtkmm GUI and want to send it to my friend, who does not have gtkmm installed. It normally executes on my computer (it can find dlls in gtkmm/bin folder), but gives an error about missing dll on friends' computer. I've tried to send him some of them, but it asks about other dll's. Of course, I can send him all the dlls containing in gtkmm/bin, but I doubt that this is the best solution, because in this case even simple application needs a huge bundle of libraries. Is there a better, more elegant solution?




_______________________________________________
gtkmm-list mailing list
gtkmm-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtkmm-list
--------------030505070005060903060100-- From murrayc@murrayc.com Fri Aug 31 12:25:36 2012 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 menubar.gnome.org (Postfix) with ESMTP id 958AF7501FC; Fri, 31 Aug 2012 12:25:36 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.446 X-Spam-Level: X-Spam-Status: No, score=-2.446 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_LOW=-0.7, TW_GT=0.077, TW_TK=0.077] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Ypc9EzPXl2VM; Fri, 31 Aug 2012 12:25:34 +0000 (UTC) Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com [66.111.4.25]) by menubar.gnome.org (Postfix) with ESMTP id 8F65B75020F; Fri, 31 Aug 2012 12:25:34 +0000 (UTC) Received: from compute3.internal (compute3.nyi.mail.srv.osa [10.202.2.43]) by gateway1.nyi.mail.srv.osa (Postfix) with ESMTP id BEF35216FE; Fri, 31 Aug 2012 08:25:31 -0400 (EDT) Received: from frontend1.nyi.mail.srv.osa ([10.202.2.160]) by compute3.internal (MEProxy); Fri, 31 Aug 2012 08:25:31 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=message-id:subject:from:to:date :content-type:mime-version:content-transfer-encoding; s=smtpout; bh=qMFGS+OvPjoHZb3NxwFUzz/mY3g=; b=uhjnO6jgNoSRzA0ZzmgMobz4Mr8N OVln21vJlz26rJC+/JRSBNtzjfFjpXtxhEtwK63hOfotOp03518op1c92Zea30ae Af0JRlRbwQ6vsCA96IuItoHmEBmsC0p68Nle7ZqkVbPTZT8bcElv74kz887ZiaLo u2QLGS+RHlh4gfk= X-Sasl-enc: iKGtE0yzRVUM9CdGFGQKSJ7MiezO30iZs55qRsZ66cVo 1346415931 Received: from [192.168.178.34] (unknown [88.217.72.41]) by mail.messagingengine.com (Postfix) with ESMTPA id 076F68E00FB; Fri, 31 Aug 2012 08:25:30 -0400 (EDT) Message-ID: <1346415929.18506.1.camel@murayc-x220.fritz.box> Subject: ANNOUNCE: gtkmm 3.5.12 From: Murray Cumming To: gnome-announce , gtkmm-list Date: Fri, 31 Aug 2012 14:25:29 +0200 Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.4.3 (3.4.3-2.fc17) Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-BeenThere: gtkmm-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: gtkmm general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 31 Aug 2012 12:25:36 -0000 *** gtkmm 3.6: gtkmm 3.5 wraps GTK+ 3.5. It will become gtkmm 3.6, wrapping the stable GTK+ 3.6 API. gtkmm stays in-sync with GTK+ by following the official GNOME release schedule: http://www.gnome.org/start/unstable/ http://www.gtkmm.org *** Changes Changes in gtkmm 3.5.12 (unstable): Gtk: * Added the LevelBar widget. (Murray Cumming) * Application: - Added get_active_window(). (Murray Cumming) - Don't call add_window() before the application is registered. (Kjell Ahlstedt) Bug #681323 (Gregory Martin) * CellRendererText: Added the placeholder_text property. * Entry: Add input purpose and input hints methods. * MenuButton: Added get/set_popup(), deprecated get/set_menu(). * Settings: Deprecate the gtk-touchscreen-property. * TextView: Added input purpose and input hints methods. * Widget: Added insert_action_group(). (Murray Cumming) Documentation: * Show the get_type() methods in the API documentation. (Murray Cumming) Bug #670212 (Mark Vender). *** Development There is active discussion on the mailing list: http://www.gtkmm.org/mailinglist.shtml and in the #c++ channel on irc.gnome.org -- Murray Cumming murrayc@murrayc.com www.murrayc.com www.openismus.com
(process:3152): glibmm-CRITICAL **: Gl= ib::ObjectBase* Glib::wrap_create_new_wrapper_for_interface(GObject*, GType= ): assertion `wrap_func_table !=3D 0' failed

(process:3152): GLib-GObject-CRITICAL **: g_object_set_= qdata_full: assertion `quark > 0' failed
=3D=3D3152=3D=3D= =C2=A0
=3D=3D3152=3D=3D HEAP SUMMARY:
=3D=3D3152=3D=3D = =C2=A0 =C2=A0 in use at exit: 69,660 bytes in 956 blocks
=3D=3D3152=3D=3D =C2=A0 total heap usage: 1,569 allocs, 613 frees, 247= ,744 bytes allocated
=3D=3D3152=3D=3D=C2=A0
=3D=3D3152= =3D=3D 24 bytes in 1 blocks are definitely lost in loss record 370 of 577
=3D=3D3152=3D=3D =C2=A0 =C2=A0at 0x402842F: operator new(unsigned = int) (vg_replace_malloc.c:255)
=3D=3D3152=3D=3D =C2=A0 =C2=A0by 0x40CB4B6: Gio::File* Glib::wrap_auto= _interface<Gio::File>(_GObject*, bool) (in /usr/lib/libgiomm-2.4.so.1= .3.0)
=3D=3D3152=3D=3D =C2=A0 =C2=A0by 0x40CAB9E: Glib::wrap(_GFi= le*, bool) (in /usr/lib/libgiomm-2.4.so.1.3.0)
=3D=3D3152=3D=3D =C2=A0 =C2=A0by 0x42BE112: (below main) (libc-start.c= :226)
=3D=3D3152=3D=3D=C2=A0
=3D=3D3152=3D=3D 160 (40 d= irect, 120 indirect) bytes in 1 blocks are definitely lost in loss record 5= 20 of 577
=3D=3D3152=3D=3D =C2=A0 =C2=A0at 0x4028876: malloc (vg_= replace_malloc.c:236)
=3D=3D3152=3D=3D =C2=A0 =C2=A0by 0x438964C: nss_parse_service_list (ns= switch.c:626)
=3D=3D3152=3D=3D =C2=A0 =C2=A0by 0x4389C59: __nss_d= atabase_lookup (nsswitch.c:167)
=3D=3D3152=3D=3D =C2=A0 =C2=A0by = 0x4C502F8: ???
=3D=3D3152=3D=3D =C2=A0 =C2=A0by 0x4C51A5D: ???
=3D=3D3152=3D=3D =C2=A0 =C2=A0by 0x4340956: getpwnam_r@@GLIBC_2.1.2 (g= etXXbyYY_r.c:256)
=3D=3D3152=3D=3D =C2=A0 =C2=A0by 0x4659695: ???= (in /lib/i386-linux-gnu/libglib-2.0.so.0.3200.0)
=3D=3D3152=3D= =3D =C2=A0 =C2=A0by 0x61687A6C: ???
=3D=3D3152=3D=3D=C2=A0
=3D=3D3152=3D=3D LEAK SUMMARY:
=3D=3D3152=3D=3D =C2=A0 =C2= =A0definitely lost: 64 bytes in 2 blocks
=3D=3D3152=3D=3D =C2=A0 = =C2=A0indirectly lost: 120 bytes in 10 blocks
=3D=3D3152=3D=3D = =C2=A0 =C2=A0 =C2=A0possibly lost: 15,175 bytes in 268 blocks
=3D=3D3152=3D=3D =C2=A0 =C2=A0still reachable: 54,301 bytes in 676 blo= cks
=3D=3D3152=3D=3D =C2=A0 =C2=A0 =C2=A0 =C2=A0 suppressed: 0 by= tes in 0 blocks
=3D=3D3152=3D=3D Reachable blocks (those to which= a pointer was found) are not shown.
=3D=3D3152=3D=3D To see them= , rerun with: --leak-check=3Dfull --show-reachable=3Dyes
=3D=3D3152=3D=3D=C2=A0
=3D=3D3152=3D=3D For counts of detect= ed and suppressed errors, rerun with: -v
=3D=3D3152=3D=3D ERROR S= UMMARY: 92 errors from 92 contexts (suppressed: 69 from 13)


Why is there a memory leak? If I don't use Gio::File there is no m= emory leak.
--e89a8f3ba1215a2d6904c7d2361e-- From jaalburquerque@gmail.com Thu Aug 23 04:20:57 2012 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 menubar.gnome.org (Postfix) with ESMTP id A57EE751A9F for ; Thu, 23 Aug 2012 04:20:53 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.469 X-Spam-Level: X-Spam-Status: No, score=-2.469 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, TW_GT=0.077, TW_KG=0.077, TW_TK=0.077] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id XnIIN1+UNAqd for ; Thu, 23 Aug 2012 04:20:46 +0000 (UTC) Received: from mail-ob0-f182.google.com (mail-ob0-f182.google.com [209.85.214.182]) by menubar.gnome.org (Postfix) with ESMTP id 359C9751C6C for ; Thu, 23 Aug 2012 03:26:52 +0000 (UTC) Received: by obbun3 with SMTP id un3so1135274obb.27 for ; Wed, 22 Aug 2012 20:26:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:subject:from:to:cc:date:in-reply-to:references :content-type:x-mailer:content-transfer-encoding:mime-version; bh=qvBlF8+sYQ4ycwcpPL8MLBBo+ZiQy6bybqbdiR+TVFc=; b=DBnARdjV4LyR1UuXFCwHLjeGqAqsWzlh1lA8n5nh4zHgLquEjxD3RAQ2C/KOU19lBb qtJI5Xg2t52en5n/emPcsJsrOlUmdT3tY+t7p00iGB2muWWFKGX/0MMD18aYqNqBcVgy miSC+DeVYGOHj7RL+YxDHYF7gahrvn64w8bYz7d8kSNP2wsXLuWDFM50E3P8G7CCUGu2 IPMaNrHwCapjaxweIM3V88Dvx1eZD/q+tD0q+7qbUSe4iy78TlFZnKT4hTY+qyoGNY57 PA398/wSQwsnBXgAkcrKp+LZi7R/zfF1+Z+nldYEHYROJaA6kDh25F6MUFCLFb130wxh nYIg== Received: by 10.182.152.97 with SMTP id ux1mr56014obb.13.1345692411545; Wed, 22 Aug 2012 20:26:51 -0700 (PDT) Received: from [192.168.1.100] (ip70-185-121-246.ga.at.cox.net. [70.185.121.246]) by mx.google.com with ESMTPS id aa6sm4186889oec.0.2012.08.22.20.26.50 (version=SSLv3 cipher=OTHER); Wed, 22 Aug 2012 20:26:50 -0700 (PDT) Message-ID: <1345692409.14435.2.camel@jose-desktop> Subject: Re: Error compiling Gstreamermm for MinGW32/64 From: =?ISO-8859-1?Q?Jos=E9?= Alburquerque To: "Dos Santos, Oliveira" Date: Wed, 22 Aug 2012 23:26:49 -0400 In-Reply-To: <1345088579.12020.7.camel@jose-desktop> References: <03DD8591022238418FAD9197DAB27BA3010B3850A64E@GVAMAIL.gva.ebu.ch> <1345088579.12020.7.camel@jose-desktop> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.2.3-0ubuntu6 Content-Transfer-Encoding: 8bit Mime-Version: 1.0 Cc: "'gtkmm-list@gnome.org'" X-BeenThere: gtkmm-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: gtkmm general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Aug 2012 04:20:58 -0000 On Wed, 2012-08-15 at 23:42 -0400, José Alburquerque wrote: > On Tue, 2012-08-14 at 22:22 +0200, Dos Santos, Oliveira wrote: > > Hi everybody, > > > > > > > > I need some help to compile gstreamermm-0.10.10 for MinGW32/64. I’m on > > Fedora 17 – x86_64 – with kernel 3.5.1-1. > > > > > > > > I followed the usual way to compile for MinGW; > > > > > > > > I fix some errors before this one ( in wrap.cc ) but this... i don’t > > know how to correct that... I try some stuff without success > > especially with pkgconfig path. > > > Could you say (or provide a patch for) what you fixed? > > > > > > > >mingw32-configure (with and without the pkgconfig path) > > > > >make... and error ... > > > > > > > > That’s my output (the interesting part, I can provide the output of > > the configure part) > > > > > > > > make: *** [all] Error 2 > > > > depbase=`echo media_player_gtkmm/player_window.o | sed 's|[^/]* > > $|.deps/&|;s|\.o$||'`;\ > > > > i686-w64-mingw32-g++ -DHAVE_CONFIG_H -I.. -I../gstreamer > > -mms-bitfields > > -I/usr/i686-w64-mingw32/sys-root/mingw/include/giomm-2.4 > > -I/usr/i686-w64-mingw32/sys-root/mingw/lib/giomm-2.4/include > > -I/usr/i686-w64-mingw32/sys-root/mingw/include/glibmm-2.4 > > -I/usr/i686-w64-mingw32/sys-root/mingw/lib/glibmm-2.4/include > > -I/usr/i686-w64-mingw32/sys-root/mingw/include/glib-2.0 > > -I/usr/i686-w64-mingw32/sys-root/mingw/lib/glib-2.0/include > > -I/usr/i686-w64-mingw32/sys-root/mingw/include/sigc++-2.0 > > -I/usr/i686-w64-mingw32/sys-root/mingw/lib/sigc++-2.0/include > > -I/usr/i686-w64-mingw32/sys-root/mingw/include/libxml++-2.6 > > -I/usr/i686-w64-mingw32/sys-root/mingw/lib/libxml++-2.6/include > > -I/usr/i686-w64-mingw32/sys-root/mingw/include/libxml2 > > -I/usr/i686-w64-mingw32/sys-root/mingw/include/gstreamer-0.10 > > -I/usr/i686-w64-mingw32/sys-root/mingw/include/gtkmm-3.0 > > -I/usr/i686-w64-mingw32/sys-root/mingw/lib/gtkmm-3.0/include > > -I/usr/i686-w64-mingw32/sys-root/mingw/include/atkmm-1.6 > > -I/usr/i686-w64-mingw32/sys-root/mingw/include/pangomm-1.4 > > -I/usr/i686-w64-mingw32/sys-root/mingw/lib/pangomm-1.4/include > > -I/usr/i686-w64-mingw32/sys-root/mingw/include/gtk-3.0 > > -I/usr/i686-w64-mingw32/sys-root/mingw/include/cairomm-1.0 > > -I/usr/i686-w64-mingw32/sys-root/mingw/lib/cairomm-1.0/include > > -I/usr/i686-w64-mingw32/sys-root/mingw/include/gdk-pixbuf-2.0 > > -I/usr/i686-w64-mingw32/sys-root/mingw/include/gdkmm-3.0 > > -I/usr/i686-w64-mingw32/sys-root/mingw/lib/gdkmm-3.0/include > > -I/usr/i686-w64-mingw32/sys-root/mingw/include/atk-1.0 > > -I/usr/i686-w64-mingw32/sys-root/mingw/include/pango-1.0 > > -I/usr/i686-w64-mingw32/sys-root/mingw/include/cairo > > -I/usr/i686-w64-mingw32/sys-root/mingw/include/pixman-1 > > -I/usr/i686-w64-mingw32/sys-root/mingw/include > > -I/usr/i686-w64-mingw32/sys-root/mingw/include/freetype2 > > -I/usr/i686-w64-mingw32/sys-root/mingw/include/libpng15 -Wall -O2 > > -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions > > --param=ssp-buffer-size=4 -MT media_player_gtkmm/player_window.o -MD > > -MP -MF $depbase.Tpo -c -o media_player_gtkmm/player_window.o > > media_player_gtkmm/player_window.cc &&\ > > > > mv -f $depbase.Tpo $depbase.Po > > > > media_player_gtkmm/player_window.cc:27:22: fatal error: gdk/gdkx.h: No > > such file or directory > > > > compilation terminated. > > > > make[2]: *** [media_player_gtkmm/player_window.o] Error 1 > > > > make[2]: Leaving directory > > `/home/dossantos/App/gstreamermm-0.10.10/examples' > > > > make[1]: *** [all-recursive] Error 1 > > > > make[1]: Leaving directory `/home/dossantos/App/gstreamermm-0.10.10' > > > > make: *** [all] Error 2 > > > > > > > > > > > > Anyone has an idea ? Just a tips to try again :P > > The problem is that the media player example was written mostly for the > Linux platform because that is the main platform for which gstreamermm > has been developed. > > I tweaked the example a little and maybe it can compile under windows > with the tweaks. > > Could you try the attached patch and see if it helps? I've pushed the suggested patch to the master branch of gstreamermm since it doesn't break the example for linux. Maybe later it can be tested to ensure that it makes compiling for MinGW possible. Thanks for pointing out the problem. > > > > > > > > Thanks > > > > > > > > DSO > > > > > > ______________________________________________________________________ > > > > ************************************************** > > This email and any files transmitted with it are confidential and > > intended solely for the use of the individual or entity to whom they > > are addressed. > > If you have received this email in error, please notify the system > > manager. This footnote also confirms that this email message has been > > swept by the mailgateway > > ************************************************** > > > > _______________________________________________ > > gtkmm-list mailing list > > gtkmm-list@gnome.org > > https://mail.gnome.org/mailman/listinfo/gtkmm-list > -- José From jaalburquerque@gmail.com Thu Aug 23 04:20:59 2012 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 menubar.gnome.org (Postfix) with ESMTP id 22C50751AE6 for ; Thu, 23 Aug 2012 04:20:55 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.469 X-Spam-Level: X-Spam-Status: No, score=-2.469 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, TW_BM=0.077, TW_GT=0.077, TW_TK=0.077] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id cnVJS7mkugfK for ; Thu, 23 Aug 2012 04:20:49 +0000 (UTC) Received: from mail-ob0-f182.google.com (mail-ob0-f182.google.com [209.85.214.182]) by menubar.gnome.org (Postfix) with ESMTP id CFE64751C6F for ; Thu, 23 Aug 2012 03:27:11 +0000 (UTC) Received: by mail-ob0-f182.google.com with SMTP id un3so1135274obb.27 for ; Wed, 22 Aug 2012 20:27:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:subject:from:to:cc:date:in-reply-to:references :content-type:x-mailer:content-transfer-encoding:mime-version; bh=z/e8BCo6G9cWs/T4QFIykSE9jGKbyKapDLErzDz7bi8=; b=mH7Tv4kSaRWENDTaALdmzzNyuDCvkhzEfEg3ZCGUPzmsvKodHbig9/j3JWLSj/mVMo YY9ie8Dx3/nhxE4lOdNfnLjVGLaULlCQ5gUhO3HKmlAviLfnEz/LHKNmTR+CALh4iWiL Fsv6M4ObDxTCOPCBow0RKsu7LIx5Dw2GP+zuVmJQQDXxabPNA6JvyxYBZb8q6EZGgsqS gcKLwwteEOKrLHlgJ1HigvUFgk9hPb9R3UOpn6UG4q2w+WmTWUY0LcUnUQwy8VfpD/aA tBRbO01DkS8Iu5awxjxdr3UcMR0XeWq1fde2Lk6TmaCIJ4hZMr+756KOuVcMcCj1lX3S VKgw== Received: by 10.60.11.136 with SMTP id q8mr16950420oeb.132.1345692431685; Wed, 22 Aug 2012 20:27:11 -0700 (PDT) Received: from [192.168.1.100] (ip70-185-121-246.ga.at.cox.net. [70.185.121.246]) by mx.google.com with ESMTPS id ea6sm5628612obc.9.2012.08.22.20.27.10 (version=SSLv3 cipher=OTHER); Wed, 22 Aug 2012 20:27:11 -0700 (PDT) Message-ID: <1345692429.14435.3.camel@jose-desktop> Subject: Re: Memory leak when using Gio::File From: =?ISO-8859-1?Q?Jos=E9?= Alburquerque To: =?UTF-8?Q?=D0=93=D0=B0=D0=BB=D1=8B=D0=BC=D0=B6=D0=B0=D0=BD?= Date: Wed, 22 Aug 2012 23:27:09 -0400 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.2.3-0ubuntu6 Content-Transfer-Encoding: 8bit Mime-Version: 1.0 Cc: gtkmm-list@gnome.org X-BeenThere: gtkmm-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: gtkmm general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Aug 2012 04:21:00 -0000 On Wed, 2012-08-22 at 09:19 +0600, Галымжан wrote: > I have giomm 2.30.0 and glibmm 2.30.0. Test program: > > > > > #include > #include > #include > > > int main(int argc, char const *argv[]) { > g_type_init(); > Glib::RefPtr file = > Gio::File::create_for_path("test.txt"); > if (file->query_exists()) { > std::cout << "File is there" << std::endl; > } > return 0; > } > > > > > Compilation and running: > > > > > > g++ giomm-test.cpp -o giomm-test `pkg-config --libs --cflags > giomm-2.4` > > valgrind --leak-check=full --show-possibly-lost=no giomm-test > > > (process:3152): glibmm-CRITICAL **: Glib::ObjectBase* > Glib::wrap_create_new_wrapper_for_interface(GObject*, GType): > assertion `wrap_func_table != 0' failed > > > (process:3152): GLib-GObject-CRITICAL **: g_object_set_qdata_full: > assertion `quark > 0' failed > ==3152== > ==3152== HEAP SUMMARY: > ==3152== in use at exit: 69,660 bytes in 956 blocks > ==3152== total heap usage: 1,569 allocs, 613 frees, 247,744 bytes > allocated > ==3152== > ==3152== 24 bytes in 1 blocks are definitely lost in loss record 370 > of 577 > ==3152== at 0x402842F: operator new(unsigned int) > (vg_replace_malloc.c:255) > ==3152== by 0x40CB4B6: Gio::File* > Glib::wrap_auto_interface(_GObject*, bool) > (in /usr/lib/libgiomm-2.4.so.1.3.0) > ==3152== by 0x40CAB9E: Glib::wrap(_GFile*, bool) > (in /usr/lib/libgiomm-2.4.so.1.3.0) > ==3152== by 0x42BE112: (below main) (libc-start.c:226) > ==3152== > ==3152== 160 (40 direct, 120 indirect) bytes in 1 blocks are > definitely lost in loss record 520 of 577 > ==3152== at 0x4028876: malloc (vg_replace_malloc.c:236) > ==3152== by 0x438964C: nss_parse_service_list (nsswitch.c:626) > ==3152== by 0x4389C59: __nss_database_lookup (nsswitch.c:167) > ==3152== by 0x4C502F8: ??? > ==3152== by 0x4C51A5D: ??? > ==3152== by 0x4340956: getpwnam_r@@GLIBC_2.1.2 (getXXbyYY_r.c:256) > ==3152== by 0x4659695: ??? > (in /lib/i386-linux-gnu/libglib-2.0.so.0.3200.0) > ==3152== by 0x61687A6C: ??? > ==3152== > ==3152== LEAK SUMMARY: > ==3152== definitely lost: 64 bytes in 2 blocks > ==3152== indirectly lost: 120 bytes in 10 blocks > ==3152== possibly lost: 15,175 bytes in 268 blocks > ==3152== still reachable: 54,301 bytes in 676 blocks > ==3152== suppressed: 0 bytes in 0 blocks > ==3152== Reachable blocks (those to which a pointer was found) are not > shown. > ==3152== To see them, rerun with: --leak-check=full > --show-reachable=yes > ==3152== > ==3152== For counts of detected and suppressed errors, rerun with: -v > ==3152== ERROR SUMMARY: 92 errors from 92 contexts (suppressed: 69 > from 13) > > > > > Why is there a memory leak? If I don't use Gio::File there is no > memory leak. Could you try with Gio::init() instead of g_type_init() and see if that makes a difference? > _______________________________________________ > gtkmm-list mailing list > gtkmm-list@gnome.org > https://mail.gnome.org/mailman/listinfo/gtkmm-list -- José From kozhayev@gmail.com Thu Aug 23 05:26:03 2012 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 menubar.gnome.org (Postfix) with ESMTP id A937E7504CD for ; Thu, 23 Aug 2012 05:26:02 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.468 X-Spam-Level: X-Spam-Status: No, score=-2.468 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, TW_BM=0.077, TW_GT=0.077, TW_TK=0.077] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 5bf53YtwyPhh for ; Thu, 23 Aug 2012 05:25:46 +0000 (UTC) Received: from mail-iy0-f182.google.com (mail-iy0-f182.google.com [209.85.210.182]) by menubar.gnome.org (Postfix) with ESMTP id 376EB7506E9 for ; Thu, 23 Aug 2012 05:25:45 +0000 (UTC) Received: by ialo14 with SMTP id o14so1099976ial.27 for ; Wed, 22 Aug 2012 22:25:44 -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=MdHP/lTXft03Gm+FqrqSGhqr1MUf/ydKPUSB+VOkeiI=; b=Qmew54k+q9JzeR403/80Vadcf9hdleCwmkXzrK7nY6q2JfyDkis6gOf1hRMYnQfnk8 7tm6xOmGlKDsSsYqCnROxmrGDB8qtBIVDiFuYlFoSp/f4bvgRUhitw8CSy2w9jkR3AR3 08viURX8lcyOBd0URM27gLZ5K6o9mCHlWnYUQxih/K5/ryiubQdjmx2oRYtXQGZQTLEj OVJSSxmWZrcudYTzKejyJrufaK5yVvRwSk2pJjjM0259/jCYneuUelfHFCi8puEFqoBh iNTMgqRIvFIkJ/Dt0GD1shmz8FHLzALGG/Bqyq6gIA1tHOqO94uGiqkYE7L1iEDwr5VY AQAA== MIME-Version: 1.0 Received: by 10.42.114.16 with SMTP id e16mr173876icq.57.1345699544675; Wed, 22 Aug 2012 22:25:44 -0700 (PDT) Received: by 10.231.185.135 with HTTP; Wed, 22 Aug 2012 22:25:44 -0700 (PDT) In-Reply-To: <1345692429.14435.3.camel@jose-desktop> References: <1345692429.14435.3.camel@jose-desktop> Date: Thu, 23 Aug 2012 11:25:44 +0600 Message-ID: Subject: Re: Memory leak when using Gio::File From: Galymzhan To: =?UTF-8?Q?Jos=C3=A9_Alburquerque?= Content-Type: multipart/alternative; boundary=20cf303f6e2255b50904c7e81794 Cc: gtkmm-list@gnome.org X-BeenThere: gtkmm-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: gtkmm general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Aug 2012 05:26:03 -0000 --20cf303f6e2255b50904c7e81794 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Using Gio::init() instead of g_type_init() does not make a difference. There is still a leak: =3D=3D2885=3D=3D LEAK SUMMARY: =3D=3D2885=3D=3D definitely lost: 40 bytes in 1 blocks =3D=3D2885=3D=3D indirectly lost: 120 bytes in 10 blocks =3D=3D2885=3D=3D possibly lost: 13,975 bytes in 258 blocks =3D=3D2885=3D=3D still reachable: 79,346 bytes in 1,424 blocks =3D=3D2885=3D=3D suppressed: 0 bytes in 0 blocks Here is a full valgrind summary: https://gist.github.com/3432925 Also, I tried to reset RefPtr's pointer with `file.reset();` but that does not help. Is there any method of Gio::File which is supposed to do closing or cleanup? 2012/8/23 Jos=C3=A9 Alburquerque > On Wed, 2012-08-22 at 09:19 +0600, =D0=93=D0=B0=D0=BB=D1=8B=D0=BC=D0=B6= =D0=B0=D0=BD wrote: > > I have giomm 2.30.0 and glibmm 2.30.0. Test program: > > > > > > > > > > #include > > #include > > #include > > > > > > int main(int argc, char const *argv[]) { > > g_type_init(); > > Glib::RefPtr file =3D > > Gio::File::create_for_path("test.txt"); > > if (file->query_exists()) { > > std::cout << "File is there" << std::endl; > > } > > return 0; > > } > > > > > > > > > > Compilation and running: > > > > > > > > > > > g++ giomm-test.cpp -o giomm-test `pkg-config --libs --cflags > > giomm-2.4` > > > valgrind --leak-check=3Dfull --show-possibly-lost=3Dno giomm-test > > > > > > (process:3152): glibmm-CRITICAL **: Glib::ObjectBase* > > Glib::wrap_create_new_wrapper_for_interface(GObject*, GType): > > assertion `wrap_func_table !=3D 0' failed > > > > > > (process:3152): GLib-GObject-CRITICAL **: g_object_set_qdata_full: > > assertion `quark > 0' failed > > =3D=3D3152=3D=3D > > =3D=3D3152=3D=3D HEAP SUMMARY: > > =3D=3D3152=3D=3D in use at exit: 69,660 bytes in 956 blocks > > =3D=3D3152=3D=3D total heap usage: 1,569 allocs, 613 frees, 247,744 b= ytes > > allocated > > =3D=3D3152=3D=3D > > =3D=3D3152=3D=3D 24 bytes in 1 blocks are definitely lost in loss recor= d 370 > > of 577 > > =3D=3D3152=3D=3D at 0x402842F: operator new(unsigned int) > > (vg_replace_malloc.c:255) > > =3D=3D3152=3D=3D by 0x40CB4B6: Gio::File* > > Glib::wrap_auto_interface(_GObject*, bool) > > (in /usr/lib/libgiomm-2.4.so.1.3.0) > > =3D=3D3152=3D=3D by 0x40CAB9E: Glib::wrap(_GFile*, bool) > > (in /usr/lib/libgiomm-2.4.so.1.3.0) > > =3D=3D3152=3D=3D by 0x42BE112: (below main) (libc-start.c:226) > > =3D=3D3152=3D=3D > > =3D=3D3152=3D=3D 160 (40 direct, 120 indirect) bytes in 1 blocks are > > definitely lost in loss record 520 of 577 > > =3D=3D3152=3D=3D at 0x4028876: malloc (vg_replace_malloc.c:236) > > =3D=3D3152=3D=3D by 0x438964C: nss_parse_service_list (nsswitch.c:62= 6) > > =3D=3D3152=3D=3D by 0x4389C59: __nss_database_lookup (nsswitch.c:167= ) > > =3D=3D3152=3D=3D by 0x4C502F8: ??? > > =3D=3D3152=3D=3D by 0x4C51A5D: ??? > > =3D=3D3152=3D=3D by 0x4340956: getpwnam_r@@GLIBC_2.1.2 (getXXbyYY_r.= c:256) > > =3D=3D3152=3D=3D by 0x4659695: ??? > > (in /lib/i386-linux-gnu/libglib-2.0.so.0.3200.0) > > =3D=3D3152=3D=3D by 0x61687A6C: ??? > > =3D=3D3152=3D=3D > > =3D=3D3152=3D=3D LEAK SUMMARY: > > =3D=3D3152=3D=3D definitely lost: 64 bytes in 2 blocks > > =3D=3D3152=3D=3D indirectly lost: 120 bytes in 10 blocks > > =3D=3D3152=3D=3D possibly lost: 15,175 bytes in 268 blocks > > =3D=3D3152=3D=3D still reachable: 54,301 bytes in 676 blocks > > =3D=3D3152=3D=3D suppressed: 0 bytes in 0 blocks > > =3D=3D3152=3D=3D Reachable blocks (those to which a pointer was found) = are not > > shown. > > =3D=3D3152=3D=3D To see them, rerun with: --leak-check=3Dfull > > --show-reachable=3Dyes > > =3D=3D3152=3D=3D > > =3D=3D3152=3D=3D For counts of detected and suppressed errors, rerun wi= th: -v > > =3D=3D3152=3D=3D ERROR SUMMARY: 92 errors from 92 contexts (suppressed:= 69 > > from 13) > > > > > > > > > > Why is there a memory leak? If I don't use Gio::File there is no > > memory leak. > > Could you try with Gio::init() instead of g_type_init() and see if that > makes a difference? > > > _______________________________________________ > > gtkmm-list mailing list > > gtkmm-list@gnome.org > > https://mail.gnome.org/mailman/listinfo/gtkmm-list > > -- > Jos=C3=A9 > > --20cf303f6e2255b50904c7e81794 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Using Gio::init() instead of g_type_init() does not make a difference. Ther= e is still a leak:


=3D=3D2885=3D=3D = LEAK SUMMARY:
=3D=3D2885=3D=3D =C2=A0 =C2=A0definitely lost: 40 b= ytes in 1 blocks
=3D=3D2885=3D=3D =C2=A0 =C2=A0indirectly lost: 120 bytes in 10 blocks
=
=3D=3D2885=3D=3D =C2=A0 =C2=A0 =C2=A0possibly lost: 13,975 bytes in 25= 8 blocks
=3D=3D2885=3D=3D =C2=A0 =C2=A0still reachable: 79,346 by= tes in 1,424 blocks
=3D=3D2885=3D=3D =C2=A0 =C2=A0 =C2=A0 =C2=A0 = suppressed: 0 bytes in 0 blocks


Here is a full valgrind summary:=C2=A0https://gist.github.com/3432925
Also, I tried to reset RefPtr's pointer with `file.reset()= ;` but that does not help. Is there any method of Gio::File which is suppos= ed to do closing or cleanup?

2012/8/23 Jos=C3=A9 Alburquerque <= jaalburquerque@gmail.com>
On Wed, 2012-08-22 at 09:19 +0600, = =D0=93=D0=B0=D0=BB=D1=8B=D0=BC=D0=B6=D0=B0=D0=BD wrote:
> I have giomm 2.30.0 and glibmm 2.30.0. Test program:
>
>
>
>
> #include <iostream>
> #include <glibmm.h>
> #include <giomm.h>
>
>
> int main(int argc, char const *argv[]) {
> =C2=A0 g_type_init();
> =C2=A0 Glib::RefPtr<Gio::File> file =3D
> Gio::File::create_for_path("test.txt");
> =C2=A0 if (file->query_exists()) {
> =C2=A0 =C2=A0 std::cout << "File is there" << st= d::endl;
> =C2=A0 }
> =C2=A0 return 0;
> }
>
>
>
>
> Compilation and running:
>
>
>
>
> > g++ giomm-test.cpp -o giomm-test `pkg-config --libs --cflags
> giomm-2.4`
> > valgrind --leak-check=3Dfull --show-possibly-lost=3Dno giomm-test=
>
>
> (process:3152): glibmm-CRITICAL **: Glib::ObjectBase*
> Glib::wrap_create_new_wrapper_for_interface(GObject*, GType):
> assertion `wrap_func_table !=3D 0' failed
>
>
> (process:3152): GLib-GObject-CRITICAL **: g_object_set_qdata_full:
> assertion `quark > 0' failed
> =3D=3D3152=3D=3D
> =3D=3D3152=3D=3D HEAP SUMMARY:
> =3D=3D3152=3D=3D =C2=A0 =C2=A0 in use at exit: 69,660 bytes in 956 blo= cks
> =3D=3D3152=3D=3D =C2=A0 total heap usage: 1,569 allocs, 613 frees, 247= ,744 bytes
> allocated
> =3D=3D3152=3D=3D
> =3D=3D3152=3D=3D 24 bytes in 1 blocks are definitely lost in loss reco= rd 370
> of 577
> =3D=3D3152=3D=3D =C2=A0 =C2=A0at 0x402842F: operator new(unsigned int)=
> (vg_replace_malloc.c:255)
> =3D=3D3152=3D=3D =C2=A0 =C2=A0by 0x40CB4B6: Gio::File*
> Glib::wrap_auto_interface<Gio::File>(_GObject*, bool)
> (in /usr/lib/libgiomm-2.4.so.1.3.0)
> =3D=3D3152=3D=3D =C2=A0 =C2=A0by 0x40CAB9E: Glib::wrap(_GFile*, bool)<= br> > (in /usr/lib/libgiomm-2.4.so.1.3.0)
> =3D=3D3152=3D=3D =C2=A0 =C2=A0by 0x42BE112: (below main) (libc-start.c= :226)
> =3D=3D3152=3D=3D
> =3D=3D3152=3D=3D 160 (40 direct, 120 indirect) bytes in 1 blocks are > definitely lost in loss record 520 of 577
> =3D=3D3152=3D=3D =C2=A0 =C2=A0at 0x4028876: malloc (vg_replace_malloc.= c:236)
> =3D=3D3152=3D=3D =C2=A0 =C2=A0by 0x438964C: nss_parse_service_list (ns= switch.c:626)
> =3D=3D3152=3D=3D =C2=A0 =C2=A0by 0x4389C59: __nss_database_lookup (nss= witch.c:167)
> =3D=3D3152=3D=3D =C2=A0 =C2=A0by 0x4C502F8: ???
> =3D=3D3152=3D=3D =C2=A0 =C2=A0by 0x4C51A5D: ???
> =3D=3D3152=3D=3D =C2=A0 =C2=A0by 0x4340956: getpwnam_r@@GLIBC_2.1.2 (g= etXXbyYY_r.c:256)
> =3D=3D3152=3D=3D =C2=A0 =C2=A0by 0x4659695: ???
> (in /lib/i386-linux-gnu/libglib-2.0.so.0.3200.0)
> =3D=3D3152=3D=3D =C2=A0 =C2=A0by 0x61687A6C: ???
> =3D=3D3152=3D=3D
> =3D=3D3152=3D=3D LEAK SUMMARY:
> =3D=3D3152=3D=3D =C2=A0 =C2=A0definitely lost: 64 bytes in 2 blocks > =3D=3D3152=3D=3D =C2=A0 =C2=A0indirectly lost: 120 bytes in 10 blocks<= br> > =3D=3D3152=3D=3D =C2=A0 =C2=A0 =C2=A0possibly lost: 15,175 bytes in 26= 8 blocks
> =3D=3D3152=3D=3D =C2=A0 =C2=A0still reachable: 54,301 bytes in 676 blo= cks
> =3D=3D3152=3D=3D =C2=A0 =C2=A0 =C2=A0 =C2=A0 suppressed: 0 bytes in 0 = blocks
> =3D=3D3152=3D=3D Reachable blocks (those to which a pointer was found)= are not
> shown.
> =3D=3D3152=3D=3D To see them, rerun with: --leak-check=3Dfull
> --show-reachable=3Dyes
> =3D=3D3152=3D=3D
> =3D=3D3152=3D=3D For counts of detected and suppressed errors, rerun w= ith: -v
> =3D=3D3152=3D=3D ERROR SUMMARY: 92 errors from 92 contexts (suppressed= : 69
> from 13)
>
>
>
>
> Why is there a memory leak? If I don't use Gio::File there is no > memory leak.

Could you try with Gio::init() instead of g_type_init() and see= if that
makes a difference?

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

--
Jos=C3=A9


--20cf303f6e2255b50904c7e81794-- From chris@cvine.freeserve.co.uk Thu Aug 23 10:13:42 2012 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 menubar.gnome.org (Postfix) with ESMTP id 4B9A77504A5 for ; Thu, 23 Aug 2012 10:13:42 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -1.746 X-Spam-Level: X-Spam-Status: No, score=-1.746 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001, TW_MZ=0.077, TW_YM=0.077] autolearn=no Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id DO9+WREePHZs for ; Thu, 23 Aug 2012 10:13:23 +0000 (UTC) X-Greylist: delayed 451 seconds by postgrey-1.34 at menubar.gnome.org; Thu, 23 Aug 2012 10:13:22 UTC Received: from smtpout.wanadoo.co.uk (smtpout3.wanadoo.co.uk [80.12.242.59]) by menubar.gnome.org (Postfix) with ESMTP id CAFA175033B for ; Thu, 23 Aug 2012 10:13:22 +0000 (UTC) Received: from bother.homenet ([2.25.69.209]) by mwinf5d44 with ME id qA5o1j0044WuUUq03A5okV; Thu, 23 Aug 2012 12:05:49 +0200 Received: from bother.homenet (localhost [127.0.0.1]) by bother.homenet (Postfix) with ESMTP id 34D82854E6; Thu, 23 Aug 2012 11:05:48 +0100 (BST) Date: Thu, 23 Aug 2012 11:05:48 +0100 From: Chris Vine To: Galymzhan Subject: Re: Memory leak when using Gio::File Message-ID: <20120823110548.707add21@bother.homenet> In-Reply-To: References: <1345692429.14435.3.camel@jose-desktop> X-Mailer: Claws Mail 3.8.1 (GTK+ 2.24.10; i686-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: =?ISO-8859-1?B?Sm9z6Q==?= Alburquerque , gtkmm-list@gnome.org X-BeenThere: gtkmm-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: gtkmm general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Aug 2012 10:13:42 -0000 On Thu, 23 Aug 2012 11:25:44 +0600 Galymzhan wrote: > Using Gio::init() instead of g_type_init() does not make a difference. > There is still a leak: > > > ==2885== LEAK SUMMARY: > ==2885== definitely lost: 40 bytes in 1 blocks > ==2885== indirectly lost: 120 bytes in 10 blocks > ==2885== possibly lost: 13,975 bytes in 258 blocks > ==2885== still reachable: 79,346 bytes in 1,424 blocks > ==2885== suppressed: 0 bytes in 0 blocks > > > Here is a full valgrind summary: https://gist.github.com/3432925 > Also, I tried to reset RefPtr's pointer with `file.reset();` but that > does not help. Is there any method of Gio::File which is supposed to > do closing or cleanup? It almost certainly isn't a leak. For a start, it doesn't look from your earlier posting that you turned off memory slices (which uses caching) by forcing use of malloc or followed the other advice on using valgrind with gobject/gtk+. Even if you did, glib doesn't free one time allocations made on type initialisation when exiting, for efficiency reasons. The gnome webpage on using gtk+ with valgrind also has some links to suppressions files which may or may not be suitable for your purposes. Or you could use your example as the beginnings of your own suppression generator. Chris From gcgg-gtkmm-list@m.gmane.org Thu Aug 23 19:10:31 2012 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 menubar.gnome.org (Postfix) with ESMTP id A32AA75035A for ; Thu, 23 Aug 2012 19:10:31 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: 0.035 X-Spam-Level: X-Spam-Status: No, score=0.035 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, DKIM_ADSP_CUSTOM_MED=0.001, FREEMAIL_FROM=0.001, HK_RANDOM_ENVFROM=0.001, NML_ADSP_CUSTOM_MED=0.9, RCVD_NUMERIC_HELO=1.164, RP_MATCHES_RCVD=-0.207, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, TW_TK=0.077] autolearn=no Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id UULQWMhCt9tk for ; Thu, 23 Aug 2012 19:10:30 +0000 (UTC) Received: from plane.gmane.org (plane.gmane.org [80.91.229.3]) by menubar.gnome.org (Postfix) with ESMTP id 25B8875021A for ; Thu, 23 Aug 2012 19:10:29 +0000 (UTC) Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1T4cnR-0004Ju-8M for gtkmm-list@gnome.org; Thu, 23 Aug 2012 21:10:25 +0200 Received: from 68.171.89.5 ([68.171.89.5]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 23 Aug 2012 21:10:25 +0200 Received: from kenton.wilson by 68.171.89.5 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 23 Aug 2012 21:10:25 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: gtkmm-list@gnome.org From: kenton.wilson@gmail.com Subject: Simultaneous Use of Virtual and Real Keyboards Date: Thu, 23 Aug 2012 14:10:04 -0500 Lines: 7 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 68.171.89.5 X-Newsreader: Forte Agent 6.00/32.1186 X-BeenThere: gtkmm-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: gtkmm general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Aug 2012 19:10:31 -0000 Does anyone know if Gtkmm can make use of virtual and real keyboards simultaneously? Is there some information posted somewhere on this? Has anyone done it and what were the issues that you had to deal with or work around. Kenton Wilson From chordor@gmail.com Sat Aug 25 12:31:20 2012 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 menubar.gnome.org (Postfix) with ESMTP id 2D86E7500E0 for ; Sat, 25 Aug 2012 12:31:20 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.545 X-Spam-Level: X-Spam-Status: No, score=-2.545 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, TW_GT=0.077, TW_TK=0.077] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id CMVkpkaWFIHn for ; Sat, 25 Aug 2012 12:31:18 +0000 (UTC) Received: from mail-qa0-f54.google.com (mail-qa0-f54.google.com [209.85.216.54]) by menubar.gnome.org (Postfix) with ESMTP id 6DA5275000B for ; Sat, 25 Aug 2012 12:31:18 +0000 (UTC) Received: by qatn12 with SMTP id n12so1267567qat.6 for ; Sat, 25 Aug 2012 05:31:16 -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=1CiHd3DwXeq865CtpEaFLTxiPXJIT7It4BB8zwVmn00=; b=p9bUu7doLv7yYPM65NQGbkleXT2VQPeX6GbzehO7La+R9dE4747Vd7zyDpM2NhcWpY sFDxB2VmhgrJU7NXXlvqU+2pkosxKl293Mxl/lI40gw3iKP9iXmr8IsSZBXQdHUglLoB 293QLZoXN4oTEQSuX/aJh3RijJAax1OvyYzPALYl2HHQLv5leXbUp3tHCrAz2iY4VEGH X5sl+jAmxleRu4XJk23qaWdPfh++CMkLTBIDJTp0A5LUcaS7CNZHVHAlAI5Ek2wZSz0f w1ROHyx8XqaDaKD/mHV8Ly/HxPMWbehUm2SWM5VrmuB82sB5OtvAVvqf4k7ARRLD+NJG fHAg== MIME-Version: 1.0 Received: by 10.229.135.10 with SMTP id l10mr4049814qct.103.1345897876675; Sat, 25 Aug 2012 05:31:16 -0700 (PDT) Received: by 10.224.87.3 with HTTP; Sat, 25 Aug 2012 05:31:16 -0700 (PDT) Date: Sat, 25 Aug 2012 15:31:16 +0300 Message-ID: Subject: Dealing with dlls From: =?KOI8-R?B?89TBzsnTzMHXIPLPx8/X08vJyg==?= To: gtkmm-list@gnome.org Content-Type: multipart/alternative; boundary=00248c7690aad7de6c04c81644e8 X-BeenThere: gtkmm-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: gtkmm general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 25 Aug 2012 12:31:20 -0000 --00248c7690aad7de6c04c81644e8 Content-Type: text/plain; charset=ISO-8859-1 Hello, I've created an application with gtkmm GUI and want to send it to my friend, who does not have gtkmm installed. It normally executes on my computer (it can find dlls in gtkmm/bin folder), but gives an error about missing dll on friends' computer. I've tried to send him some of them, but it asks about other dll's. Of course, I can send him all the dlls containing in gtkmm/bin, but I doubt that this is the best solution, because in this case even simple application needs a huge bundle of libraries. Is there a better, more elegant solution? --00248c7690aad7de6c04c81644e8 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hello,

I've created an application with gtkmm GUI and want to se= nd it to my friend, who does not have gtkmm installed. It normally executes= on my computer (it can find dlls in gtkmm/bin folder), but gives an error = about missing dll on friends' computer. I've tried to send him some= of them, but it asks about other dll's. Of course, I can send him all = the dlls containing in gtkmm/bin, but I doubt that this is the best solutio= n, because in this case even simple application needs a huge bundle of libr= aries. Is there a better, more elegant solution?


--00248c7690aad7de6c04c81644e8-- From interval1066@gmail.com Sat Aug 25 17:00:35 2012 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 menubar.gnome.org (Postfix) with ESMTP id A9AB675024B for ; Sat, 25 Aug 2012 17:00:35 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.295 X-Spam-Level: X-Spam-Status: No, score=-2.295 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, TW_GT=0.077, TW_TK=0.077] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Q+daZPdm6kU6 for ; Sat, 25 Aug 2012 17:00:20 +0000 (UTC) Received: from mail-lpp01m010-f54.google.com (mail-lpp01m010-f54.google.com [209.85.215.54]) by menubar.gnome.org (Postfix) with ESMTP id 87D93750156 for ; Sat, 25 Aug 2012 17:00:19 +0000 (UTC) Received: by lage12 with SMTP id e12so2806414lag.27 for ; Sat, 25 Aug 2012 10:00:17 -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 :content-type; bh=7GN9OyZZKGR9ojxlSui3/6txQRZQdB/bQQ+l/2xixE4=; b=SyYulJyiaQmNJFMW9VZjoUhRdFx34xX6q+Bj1iodPVns8Q5bm/pQVj2GvcXP3WgGTc XgI6m8y4Gj00JHH6Fwtkesq33A8J5+M96sDm0AEC9U9t/XRlMBrj6yG8YsBQGJSbeQAe DRdUSjwcUo5yDrWifjd9BblGNlRGtf5ffC1a0pVJTokTmJVJ7WC4vdVFw0Lrvg2/lat3 pRkF6XkRM6R4ycT/EyrJSCxrKHunAjzVICFDW5UmnE8ykw3pBwnG/709v1cj1tcL4Rs/ V1n2dH0KhWNFsNjCudcbZauJt3TNjI/n5iHNZJmo/+o2nye8z2uHQd5BXiyxpDRPuJkD qUBw== MIME-Version: 1.0 Received: by 10.152.124.180 with SMTP id mj20mr9344906lab.43.1345914017210; Sat, 25 Aug 2012 10:00:17 -0700 (PDT) Received: by 10.112.89.13 with HTTP; Sat, 25 Aug 2012 10:00:17 -0700 (PDT) Received: by 10.112.89.13 with HTTP; Sat, 25 Aug 2012 10:00:17 -0700 (PDT) In-Reply-To: References: Date: Sat, 25 Aug 2012 10:00:17 -0700 Message-ID: Subject: Re: Dealing with dlls From: "Tim O'Neil" To: =?UTF-8?B?0KHRgtCw0L3QuNGB0LvQsNCyINCg0L7Qs9C+0LLRgdC60LjQuQ==?= , "gtkmm-list@gnome.org" Content-Type: multipart/alternative; boundary=f46d0434bfdee4e16904c81a0620 X-BeenThere: gtkmm-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: gtkmm general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 25 Aug 2012 17:00:35 -0000 --f46d0434bfdee4e16904c81a0620 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable The obvious question would be "Did he install gtkmm on his box?" On Aug 25, 2012 5:31 AM, "=D0=A1=D1=82=D0=B0=D0=BD=D0=B8=D1=81=D0=BB=D0=B0= =D0=B2 =D0=A0=D0=BE=D0=B3=D0=BE=D0=B2=D1=81=D0=BA=D0=B8=D0=B9" wrote: > Hello, > > I've created an application with gtkmm GUI and want to send it to my > friend, who does not have gtkmm installed. It normally executes on my > computer (it can find dlls in gtkmm/bin folder), but gives an error about > missing dll on friends' computer. I've tried to send him some of them, bu= t > it asks about other dll's. Of course, I can send him all the dlls > containing in gtkmm/bin, but I doubt that this is the best solution, > because in this case even simple application needs a huge bundle of > libraries. Is there a better, more elegant solution? > > > > _______________________________________________ > gtkmm-list mailing list > gtkmm-list@gnome.org > https://mail.gnome.org/mailman/listinfo/gtkmm-list > > --f46d0434bfdee4e16904c81a0620 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

The obvious question would be "Did he install gtkmm on his box?&quo= t;

On Aug 25, 2012 5:31 AM, "=D0=A1=D1=82=D0= =B0=D0=BD=D0=B8=D1=81=D0=BB=D0=B0=D0=B2 =D0=A0=D0=BE=D0=B3=D0=BE=D0=B2=D1= =81=D0=BA=D0=B8=D0=B9" <chordo= r@gmail.com> wrote:
Hello,

I've created an application with gtkmm GUI and want to se= nd it to my friend, who does not have gtkmm installed. It normally executes= on my computer (it can find dlls in gtkmm/bin folder), but gives an error = about missing dll on friends' computer. I've tried to send him some= of them, but it asks about other dll's. Of course, I can send him all = the dlls containing in gtkmm/bin, but I doubt that this is the best solutio= n, because in this case even simple application needs a huge bundle of libr= aries. Is there a better, more elegant solution?



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

--f46d0434bfdee4e16904c81a0620-- From mohgtkmm@gmail.com Sat Aug 25 17:26:28 2012 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 menubar.gnome.org (Postfix) with ESMTP id 81EDC75043D for ; Sat, 25 Aug 2012 17:26:28 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.545 X-Spam-Level: X-Spam-Status: No, score=-2.545 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, HK_RANDOM_ENVFROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001, TW_GT=0.077, TW_TK=0.077] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id smooXg2LiRzE for ; Sat, 25 Aug 2012 17:26:16 +0000 (UTC) Received: from mail-bk0-f54.google.com (mail-bk0-f54.google.com [209.85.214.54]) by menubar.gnome.org (Postfix) with ESMTP id AB86E750328 for ; Sat, 25 Aug 2012 17:26:15 +0000 (UTC) Received: by bkcje9 with SMTP id je9so1179870bkc.27 for ; Sat, 25 Aug 2012 10:26:13 -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:content-type :x-mailer:mime-version:content-transfer-encoding; bh=7TJkgqxgzOOKCpEEFzyKHob+HOkQeVuUWc9v3ywJwXY=; b=vfpjDHKCZwmP32yvxG9KPnWCI9AjA/pJx8HlVzC267pP/MDpedW0+jBIMM5rVr0Q7H PNSMyTtgiXxytrMFG0snK2hgHHgcGUaaVbEarr54lAAXnfRnnZP9K0yufVRuQZihzHcZ 8oVq01khWOCPtHhl1TXNV8bJF3rPKQXhdbjdMi9+rHjFh0bsAZeuqZ06Pw1wNNfNS+0M GW2xg5R4mrzi7Op/xVxP+oZWw6DVZ7JBg1g1ok6QcDVhXBX7WwABDXSvYpBPEFA9ulpX 3ODDMEPXbIxpviSPU8EOpx7Bd6WeCT3bmBLk9HQn1wiD4nJOjJBuy3JgnEi7heGhKoGN 5/hA== Received: by 10.204.128.196 with SMTP id l4mr2873410bks.21.1345915573291; Sat, 25 Aug 2012 10:26:13 -0700 (PDT) Received: from [192.168.1.2] ([41.201.84.204]) by mx.google.com with ESMTPS id n5sm7929979bkv.14.2012.08.25.10.26.09 (version=SSLv3 cipher=OTHER); Sat, 25 Aug 2012 10:26:12 -0700 (PDT) Message-ID: <1345915557.4334.4.camel@mohlinux.dyndns.org> Subject: Re: Dealing with dlls From: "moh B." To: gtkmm-list@gnome.org Date: Sat, 25 Aug 2012 18:25:57 +0100 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.4.3-1 Mime-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: gtkmm-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: gtkmm general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 25 Aug 2012 17:26:28 -0000 No, no don't request your friend to install the required libs, You have to supply the whole app with all the necessary files and libs - Imagine his friend is a child and this app is for children. Yes a small gtkmm app needs all those libs(Dlls). Happy programming. On Sat, 2012-08-25 at 10:00 -0700, Tim O'Neil wrote: > The obvious question would be "Did he install gtkmm on his box?" > > On Aug 25, 2012 5:31 AM, "Станислав Роговский" > wrote: > Hello, > > I've created an application with gtkmm GUI and want to send it > to my friend, who does not have gtkmm installed. It normally > executes on my computer (it can find dlls in gtkmm/bin > folder), but gives an error about missing dll on friends' > computer. I've tried to send him some of them, but it asks > about other dll's. Of course, I can send him all the dlls > containing in gtkmm/bin, but I doubt that this is the best > solution, because in this case even simple application needs a > huge bundle of libraries. Is there a better, more elegant > solution? > > > > _______________________________________________ > gtkmm-list mailing list > gtkmm-list@gnome.org > https://mail.gnome.org/mailman/listinfo/gtkmm-list > > _______________________________________________ > gtkmm-list mailing list > gtkmm-list@gnome.org > https://mail.gnome.org/mailman/listinfo/gtkmm-list From rgo@interzet.ru Sat Aug 25 18:21:42 2012 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 menubar.gnome.org (Postfix) with ESMTP id 0B7C275064B for ; Sat, 25 Aug 2012 18:21:42 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -1.953 X-Spam-Level: X-Spam-Status: No, score=-1.953 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, RP_MATCHES_RCVD=-0.207, TW_GT=0.077, TW_TK=0.077] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id r8xnJKPuX7Jc for ; Sat, 25 Aug 2012 18:21:24 +0000 (UTC) X-Greylist: delayed 12325 seconds by postgrey-1.34 at menubar.gnome.org; Sat, 25 Aug 2012 18:21:24 UTC Received: from mail.interzet.ru (mail.interzet.ru [188.134.0.200]) by menubar.gnome.org (Postfix) with ESMTP id 3E46E75056A for ; Sat, 25 Aug 2012 18:21:23 +0000 (UTC) Received: from [10.212.0.118] (helo=rgo) by mail.interzet.ru with esmtp (Exim 4.69) (envelope-from ) id 1T5HmG-0005sU-VP for gtkmm-list@gnome.org; Sat, 25 Aug 2012 18:55:56 +0400 Date: Sat, 25 Aug 2012 18:55:53 +0400 From: Timofey Misarenkov To: gtkmm-list@gnome.org Subject: Gtk::ToolButton constructor Message-Id: <20120825185553.66942275.rgo@interzet.ru> X-Mailer: Sylpheed 3.1.4 (GTK+ 2.24.10; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: gtkmm-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: gtkmm general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 25 Aug 2012 18:21:42 -0000 Hi. I'm writing now some program using gtkmm and for now I spent two hours to find explanation for: Gdk-CRITICAL **: _gdk_drawable_ref_cairo_surface: assertion `GDK_IS_DRAWABLE (drawable)' failed I'm pretty sure I know now what the trouble. I'm using constructor ToolButton::ToolButton(Widget& icon_widget, const Glib::ustring& label=Glib::ustring()) and according to constructor signature I'm passing to it reference to some subclass of Gtk::Widget. But seems that ToolButton wants to see not just some subclass of _Gtk::Widget_, but more concrete subclass of Gtk::Misc. So there is a question: why this constructor of ToolButton asks for Gtk::Widget while waiting for Gtk::Misc? Why this constructor doesn't throw an error when receiving Gtk::DrawingArea, that is not subclass of Gtk::Misc? May be i'm wrong with it, but seems it would be better to change this constructor to something like: ToolButton::ToolButton(Misc& icon_widget, const Glib::ustring& label=Glib::ustring()) So, the real question is: am I wrong with it? Thank you. -- Timofey Misarenkov From arbolone@gmail.com Sun Aug 26 22:59:30 2012 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 menubar.gnome.org (Postfix) with ESMTP id 828BD7502DB for ; Sun, 26 Aug 2012 22:59:30 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.622 X-Spam-Level: X-Spam-Status: No, score=-2.622 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, TW_TK=0.077] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id H6gndnENPPht for ; Sun, 26 Aug 2012 22:59:17 +0000 (UTC) Received: from mail-iy0-f182.google.com (mail-iy0-f182.google.com [209.85.210.182]) by menubar.gnome.org (Postfix) with ESMTP id DA3357501A3 for ; Sun, 26 Aug 2012 22:59:16 +0000 (UTC) Received: by ialo14 with SMTP id o14so11888089ial.27 for ; Sun, 26 Aug 2012 15:59:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id:mime-version:content-type:x-mailer :thread-index:content-language; bh=fWtQ1BFm4WeE4krS4JpKwjVj+GtBivdCSQScdllTCng=; b=jCtKRWXUC+DUawvzndkvCg6tAchTWoQpTocaL/+UxbmHHBtCHwCa4AO5/+5+p9Iaoj WfLrH2USAwuLtNfVdSL43YIImc2WjG+aim+lT9ykiZScKV223wnPclevYmw0Kjy5GdDO nU86pA9jsK49hNN+zSDMn9mEyiWZ14i6GxG4TrfKPaBUHPj2owquO3s9SEYFZqy0PPwt Y+PHnh6rFTGJUe8OEO61a8jUbs3J4AAzglIkQicJ2oVQAYoyi6A2zBlDJaL1kXa53Qjq dXiVjoFOvOwHVRqw2bkvpzuuMqIB3LFwSWlU2pXlIw7quFA2lBeHk3EPf6h3p5AeA7uo ExAA== Received: by 10.50.94.133 with SMTP id dc5mr8331658igb.16.1346021954962; Sun, 26 Aug 2012 15:59:14 -0700 (PDT) Received: from ArbolOnePC (CPE602ad07a8576-CM602ad07a8573.cpe.net.cable.rogers.com. [99.228.234.22]) by mx.google.com with ESMTPS id df1sm16839803igc.10.2012.08.26.15.59.13 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 26 Aug 2012 15:59:14 -0700 (PDT) From: Arbol One To: Subject: Hand held devices Date: Sun, 26 Aug 2012 18:59:11 -0400 Message-ID: <000001cd83de$69055d30$3b101790$@com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0001_01CD83BC.E1F3BD30" X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: Ac2D3mgkU/HXnNH9SGWmSwJLRRNLaw== Content-Language: en-us X-BeenThere: gtkmm-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: gtkmm general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 26 Aug 2012 22:59:30 -0000 This is a multi-part message in MIME format. ------=_NextPart_000_0001_01CD83BC.E1F3BD30 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit We are almost finish with a very small application that is best suited for a hand held device. As I said, the application is very small and uses SQLite as its RDB. The application resembles a questionnaire... fill in the blanks kind of thing, the data collected goes in to the RDB and later on could be transferd to a pc. The app is being developed on Win7. Using C++ and Gtkmm as the GUI toolkit, the libraries used for manipulation and storage of data is 'home cooked', but heavily depend on the Glib/mm family. >From the inception of the project, the development has always been with the intention of portability, thus, it is assumed that if the device can run C/C++ applications it will be able to run our application as well. So, my question is: Has anyone deployed an application that would be run on a hand held device (iPhone, winPhone or iPad for instance)? If so, what recommendation would you give us? This e-mail is for the sole use of the intended recipient and may contain confidential or privileged information. Unauthorized use of its contents is prohibited. If you have received this e-mail in error, please notify sender immediately via return e-mail and then delete the original e-mail. ------=_NextPart_000_0001_01CD83BC.E1F3BD30 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

We are = almost finish with a very small application that is best suited for a = hand held device.

As I said, the = application is very small and uses SQLite as its RDB. The application = resembles a questionnaire... fill in the blanks kind of thing, the data = collected goes in to the RDB and later on could be transferd to a = pc.

The app is being developed on = Win7. Using C++ and Gtkmm as the GUI toolkit, the libraries used for = manipulation and storage of data is 'home cooked', but heavily depend on = the Glib/mm family.

 

From = the inception of the project, the development has always been with the = intention of portability, thus, it is assumed that if the device can run = C/C++ applications it will be able to run our application as = well.

 

So, my question is: Has anyone deployed an = application that would be run on a hand held device (iPhone, winPhone or = iPad for instance)? If so, what recommendation would you give = us?

 

 

 

This e-mail = is for the sole use of the intended recipient and may contain = confidential or privileged information. Unauthorized use of its contents = is prohibited. If you have received this e-mail in error, please notify = sender immediately via return e-mail and then delete the original = e-mail.

 

------=_NextPart_000_0001_01CD83BC.E1F3BD30-- From gcgg-gtkmm-list@m.gmane.org Mon Aug 27 00:37:31 2012 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 menubar.gnome.org (Postfix) with ESMTP id 724E375036B for ; Mon, 27 Aug 2012 00:37:31 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -0.042 X-Spam-Level: X-Spam-Status: No, score=-0.042 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, DKIM_ADSP_CUSTOM_MED=0.001, FREEMAIL_FROM=0.001, HK_RANDOM_ENVFROM=0.001, NML_ADSP_CUSTOM_MED=0.9, RCVD_NUMERIC_HELO=1.164, RP_MATCHES_RCVD=-0.207, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] autolearn=no Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id uLRBnrmgoZip for ; Mon, 27 Aug 2012 00:37:19 +0000 (UTC) Received: from plane.gmane.org (plane.gmane.org [80.91.229.3]) by menubar.gnome.org (Postfix) with ESMTP id 85CEB7502ED for ; Mon, 27 Aug 2012 00:37:18 +0000 (UTC) Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1T5nKQ-0000aZ-3u for gtkmm-list@gnome.org; Mon, 27 Aug 2012 02:37:18 +0200 Received: from 68.171.89.5 ([68.171.89.5]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 27 Aug 2012 02:37:18 +0200 Received: from kenton.wilson by 68.171.89.5 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 27 Aug 2012 02:37:18 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: gtkmm-list@gnome.org From: kenton.wilson@gmail.com Subject: Re: Hand held devices Date: Sun, 26 Aug 2012 19:37:06 -0500 Lines: 10 Message-ID: <76gl389msd0nut3bflu3t9chf324m1ti5r@4ax.com> References: <000001cd83de$69055d30$3b101790$@com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 68.171.89.5 X-Newsreader: Forte Agent 6.00/32.1186 X-BeenThere: gtkmm-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: gtkmm general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Aug 2012 00:37:31 -0000 On Sun, 26 Aug 2012 18:59:11 -0400, Arbol One wrote: >So, my question is: Has anyone deployed an application that would be run on >a hand held device (iPhone, winPhone or iPad for instance)? If so, what >recommendation would you give us? Pray??? LOL, just couldn't help myself. Kenton From germandiago@gmail.com Tue Aug 28 15:24:52 2012 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 menubar.gnome.org (Postfix) with ESMTP id 77704750D3B for ; Tue, 28 Aug 2012 15:24:52 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.545 X-Spam-Level: X-Spam-Status: No, score=-2.545 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, TW_GT=0.077, TW_TK=0.077] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 8tIuC9InW6IG for ; Tue, 28 Aug 2012 15:24:48 +0000 (UTC) Received: from mail-pb0-f54.google.com (mail-pb0-f54.google.com [209.85.160.54]) by menubar.gnome.org (Postfix) with ESMTP id 9A5B7750D7B for ; Tue, 28 Aug 2012 15:23:47 +0000 (UTC) Received: by pbbrp2 with SMTP id rp2so10618847pbb.27 for ; Tue, 28 Aug 2012 08:23:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject :content-type; bh=UvHOO63dY2BsOLfHEjfiVjKyvhqVZCnThNqN3W/uosQ=; b=SQ3D/EQhkPRUhkehcKC1bDYHT8fs49jehTu9zvSotjdYLuvEeUKQTXFn7tGkfwgCd6 /JdriEDgpSrW7SWw05wZ0E4ES06lSOfenWEch+xpRnKPQezUAS66IhFhmmit524F+nU7 eGOdC+TO3Dq3z0kgTZjp1WdUjLPY4c4j6vBaKZD4nvYpRgMJBLYRQKOWOhBH1HHAGQx+ s5D3yB7q5S0gzpzRwkG3ZJRaymjxUuEClDbi2f5y7cvD1IJi5gwHCJlXVHJj0caalB5h yx9m/8L4szfpXySuhXZpzn1+KdXlUtSUuXUqFBCZIO02NH876EkkibVDKZpSYXDCiChi Lwmw== Received: by 10.66.81.202 with SMTP id c10mr38114319pay.31.1346167425550; Tue, 28 Aug 2012 08:23:45 -0700 (PDT) Received: from [192.168.1.5] ([113.162.168.44]) by mx.google.com with ESMTPS id pv9sm1957183pbb.67.2012.08.28.08.23.42 (version=SSLv3 cipher=OTHER); Tue, 28 Aug 2012 08:23:44 -0700 (PDT) Message-ID: <503CE277.7050506@gmail.com> Date: Tue, 28 Aug 2012 22:23:35 +0700 From: =?ISO-8859-1?Q?Germ=E1n_Diago_G=F3mez?= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:14.0) Gecko/20120714 Thunderbird/14.0 MIME-Version: 1.0 To: gtkmm-list@gnome.org Subject: Interest in dynamic signal connection and some questions Content-Type: multipart/alternative; boundary="------------070901090800070802070101" X-BeenThere: gtkmm-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: gtkmm general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Aug 2012 15:24:53 -0000 This is a multi-part message in MIME format. --------------070901090800070802070101 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Hello all, I'm trying to implement a dynamic system for signals that plays nicely with plain gtk+. My main motivation is that I want to use MVVM pattern but gtkmm doesn't provide data binding and I've wanted to improve this situation for a while. My main goals for this are: 1.- To be able to connect signals directly from glade by name (I already can do this with gtk_builder_connect_signals_full and it works, but I'm improving my approach). 2.- To be able to register signals (can't be done for now) and properties (I think this is correctly handled already by gtkmm) so that custom widgets are editable from glade. 3.- To be able to register types more easily into glade. As I see in this tutorial, it's quite complicated: http://szilard.blogs.balabit.com/en/2012/06/how-to-add-custom-gtkmm-widget-to-glade/ Some constraints I want to apply: 1.- It's a must that it plays well with existing gtkmm. 1.- NonIntrusive. No need to derive your objects from Glib::Object if you want to use them in the GObject type system. It would be nice to be able to register c++ types without touching them. I thought of something like this: template class GobjectWrappedType : public Glib::Object, public T { //Register type automatically into gobject system. }; template void createObject(Args && args) { return GObjectWrappedType(std::forward(args)...); } Approach taken for signals (c++11 syntax): class MyClass : public Glib::Object { //Gets registered with g_signal_new function into gobject. Parameters introspected via c++ templates Signal signal{this, makeSigcSignal{"clicked"}}; Questions: 1.- Does Glib::Object register the GType into the type system or it only registers the type name? 2.- Are properties already appropiate for this use? I'm thinking of making a type erasure type that can wrap existing Glib::Property. 3.- Are signals registered into the gobject type system currently and I missed something? When I come up with something usable, I will drop a mail. I won't have too much time until two or three weeks at least. --------------070901090800070802070101 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Hello all,

I'm trying to implement a dynamic system for signals that plays nicely with plain gtk+. My main motivation is that I want to use MVVM pattern but gtkmm doesn't provide data binding and I've wanted to improve this situation for a while.

My main goals for this are:

1.- To be able to connect signals directly from glade by name (I already can do this with gtk_builder_connect_signals_full and it works, but I'm improving my approach).
2.- To be able to register signals (can't be done for now) and properties (I think this is correctly handled already by gtkmm) so that custom widgets are editable from glade.
3.- To be able to register types more easily into glade. As I see in this tutorial, it's quite complicated:

http://szilard.blogs.balabit.com/en/2012/06/how-to-add-custom-gtkmm-widget-to-glade/

Some constraints I want to apply:

1.- It's a must that it plays well with existing gtkmm.

1.- NonIntrusive. No need to derive your objects from Glib::Object if you want to use them in the GObject type system. It would be nice to be able to register c++ types without touching them. I thought of something like this:

template <class T>
class GobjectWrappedType : public Glib::Object, public T {
//Register type automatically into gobject system.
};

template <class T, class...Args>
void createObject(Args && args) {
    return GObjectWrappedType<T>(std::forward<Args>(args)...);
}

Approach taken for signals (c++11 syntax):

class MyClass : public Glib::Object {
//Gets registered with g_signal_new function into gobject. Parameters introspected via c++ templates
Signal signal{this, makeSigcSignal<void>{"clicked"}};

Questions:

1.- Does Glib::Object register the GType into the type system or it only registers the type name?
2.- Are properties already appropiate for this use? I'm thinking of making a type erasure type that can wrap existing Glib::Property.
3.- Are signals registered into the gobject type system currently and I missed something?

When I come up with something usable, I will drop a mail. I won't have too much time until two or three weeks at least.
--------------070901090800070802070101-- From percle@gmail.com Tue Aug 28 20:50:38 2012 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 menubar.gnome.org (Postfix) with ESMTP id 12FED75035A for ; Tue, 28 Aug 2012 20:50: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 menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id eW-FoOqMz+6Y for ; Tue, 28 Aug 2012 20:50:20 +0000 (UTC) Received: from mail-iy0-f182.google.com (mail-iy0-f182.google.com [209.85.210.182]) by menubar.gnome.org (Postfix) with ESMTP id 751717502FD for ; Tue, 28 Aug 2012 20:50:20 +0000 (UTC) Received: by ialo14 with SMTP id o14so19911702ial.27 for ; Tue, 28 Aug 2012 13:50:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:content-type:content-transfer-encoding:subject:message-id:date :to:mime-version:x-mailer; bh=J6Kr+vsgtALB4Isbzlnv3ZIY0DdBLbYcxDk8s4iTs78=; b=nEXNU2J1pt6Q3nBjNUiNwbhNvIEtnyfCkLgzEeqNXDolU7U6M8Mm3dbQ6ncJteuNMD n/DzfzSoCmMp0DkCYqCoB7rtb9C9L+KeJhGbaZl59cFXUbp3nl48tElkAs19Uani/EFt C3j8MUq3x5jaPko49q3a/lbEI6HnYoRh3nRnIvIDeG8/nciiYy9FtCmD9JkROqPJozii 7rqkZFv6hJ5n+iWig78j8kUqaIwVY+gdr6g5hFDhpAAOwM5XtvkZqHBfuEUslH9LMdDJ JmGOobDfoEqg1n3lucfU8kKWinkzmc/GkGyxU04FEYMeYGy/FHlPn2bH8gkcNcXuq7Wu +0FQ== Received: by 10.50.178.97 with SMTP id cx1mr15089837igc.48.1346187018699; Tue, 28 Aug 2012 13:50:18 -0700 (PDT) Received: from [192.168.1.187] (node-8-12.flex.volo.net. [76.191.16.12]) by mx.google.com with ESMTPS id fu4sm4505887igc.4.2012.08.28.13.50.15 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 28 Aug 2012 13:50:17 -0700 (PDT) From: Ming-ching Chiu Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Subject: Problem about CellRendererText Message-Id: <64049667-49DC-49B7-8838-49BCC62A4107@gmail.com> Date: Tue, 28 Aug 2012 15:50:15 -0500 To: gtkmm-list@gnome.org Mime-Version: 1.0 (Mac OS X Mail 6.0 \(1486\)) X-Mailer: Apple Mail (2.1486) X-BeenThere: gtkmm-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: gtkmm general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Aug 2012 20:50:38 -0000 Hi, Right now in my Tree View I have multiple editable cells in each row. = However, to fill in all the cells, I have to click on one cell, enter = the data, and then either hit return or click somewhere else to move the = focus out of the cell, and then click the next cell which I want to = enter data. If I click on the second cell right after entering data in = the first cell without moving the focus out of it, the focus will move = directly to the second cell and the data I just entered in the first = cell is gone. Is there anyway to solve this problem? Thanks Best, Ming-ching=20= From giuspen@gmail.com Wed Aug 29 09:11:22 2012 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 menubar.gnome.org (Postfix) with ESMTP id E4B1875006E for ; Wed, 29 Aug 2012 09:11:22 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -1.845 X-Spam-Level: X-Spam-Status: No, score=-1.845 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, SPF_PASS=-0.001, TW_GT=0.077, TW_TK=0.077] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 82mWmDzEizMo for ; Wed, 29 Aug 2012 09:11:17 +0000 (UTC) Received: from mail-ie0-f182.google.com (mail-ie0-f182.google.com [209.85.223.182]) by menubar.gnome.org (Postfix) with ESMTP id 0F398750069 for ; Wed, 29 Aug 2012 09:11:16 +0000 (UTC) Received: by iebc12 with SMTP id c12so181007ieb.27 for ; Wed, 29 Aug 2012 02:11: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:date:message-id:subject:from:to :cc:content-type; bh=wji+Y6EQ/1eCnCews1YPW8dcvnYtQxZ8ls3DYjTDKBU=; b=B93X7SS2DfR7J+vkMyf5u3U+Gc5n1Q8i+1zGuf6EiBUgvqkYqDPNgTmjNVyHuXIIz/ 4T+82lPrVDyyCeg2062xrM6UX2gknPk0CSI5chEIxCkrwKKF/ogFV48LDvc5d0As3no1 SLJ7SjbmhZh3KF+/YMPs7WrFcRSmxBbWK8r259AfDMJo08g+kPv6QwqpVGXb+D+AWVAx rTvO8FGtX3TP34rUxtJiXxpoi/4ixuNOGZWwLgR5wJmSrdJRxFSgifKSYqprApzgZD3Y 9hNuzeM/5X8dIM9pLSNoT7OA52lUEIZ+EZW7aa+4R21F1LahFuP5klJ//FVbVW8wTr38 iWAw== MIME-Version: 1.0 Received: by 10.50.168.106 with SMTP id zv10mr16935312igb.13.1346231475193; Wed, 29 Aug 2012 02:11:15 -0700 (PDT) Received: by 10.64.33.168 with HTTP; Wed, 29 Aug 2012 02:11:15 -0700 (PDT) In-Reply-To: <64049667-49DC-49B7-8838-49BCC62A4107@gmail.com> References: <64049667-49DC-49B7-8838-49BCC62A4107@gmail.com> Date: Wed, 29 Aug 2012 12:11:15 +0300 Message-ID: Subject: Re: Problem about CellRendererText From: Giuseppe Penone To: Ming-ching Chiu Content-Type: multipart/alternative; boundary=e89a8f6430f6dd486b04c863f08a Cc: gtkmm-list@gnome.org X-BeenThere: gtkmm-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: gtkmm general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Aug 2012 09:11:23 -0000 --e89a8f6430f6dd486b04c863f08a Content-Type: text/plain; charset=ISO-8859-1 Hi, I had a similar problem in the note taking application I'm writing www.giuspen.com/cherrytree In that application you can insert the so called tables which are merely tree views with editable cells. The best solution that I found is that after you enter value in a cell, click enter (or down) and automatically the value is saved and the focus moves to the following cell (or first in the next row). If you click up the result is the same but the move is to the former cell. Cherrytree is written in python anyway. What you need to look to is the file modules/tablez.py and the functions are mainly: def on_key_press_table_cell(self, widget, event, path, model, col_num): """Catches Table Cell key presses""" keyname = gtk.gdk.keyval_name(event.keyval) if event.state & gtk.gdk.SHIFT_MASK: pass elif event.state & gtk.gdk.MOD1_MASK: pass elif event.state & gtk.gdk.CONTROL_MASK: pass else: if keyname in ["Return", "Up", "Down"]: if model[path][col_num] != widget.get_text(): model[path][col_num] = widget.get_text() self.dad.update_window_save_needed("nbuf", True) if keyname == "Up": if col_num > 0: next_col_num = col_num - 1 next_path = path else: next_iter = None next_path = model.get_path(model.get_iter(path)) while not next_iter and next_path[0] > 0: node_path_list = list(next_path) node_path_list[0] -= 1 next_path = tuple(node_path_list) next_iter = model.get_iter(next_path) #next_iter = model.iter_next(model.get_iter(path)) if not next_iter: return next_path = model.get_path(next_iter) next_col_num = self.table_columns-1 else: if col_num < self.table_columns-1: next_col_num = col_num + 1 next_path = path else: next_iter = model.iter_next(model.get_iter(path)) if not next_iter: return next_path = model.get_path(next_iter) next_col_num = 0 #print "(path, col_num) = (%s, %s)" % (path, col_num) #print "(next_path, next_col_num) = (%s, %s)" % (next_path, next_col_num) next_column = self.curr_table_anchor.treeview.get_columns()[next_col_num] self.curr_table_anchor.treeview.set_cursor_on_cell(next_path, focus_column=next_column, focus_cell=next_column.get_cell_renderers()[0], start_editing=True) def on_table_cell_editing_started(self, cell, editable, path, model, col_num): """A Table Cell is going to be Edited""" if isinstance(editable, gtk.Entry): editable.connect('key_press_event', self.on_key_press_table_cell, path, model, col_num) def on_table_cell_edited(self, cell, path, new_text, model, col_num): """A Table Cell has been Edited""" if model[path][col_num] != new_text: model[path][col_num] = new_text HTH, regards, Giuseppe. On Tue, Aug 28, 2012 at 11:50 PM, Ming-ching Chiu wrote: > Hi, > Right now in my Tree View I have multiple editable cells in each row. > However, to fill in all the cells, I have to click on one cell, enter the > data, and then either hit return or click somewhere else to move the focus > out of the cell, and then click the next cell which I want to enter data. > If I click on the second cell right after entering data in the first cell > without moving the focus out of it, the focus will move directly to the > second cell and the data I just entered in the first cell is gone. Is there > anyway to solve this problem? Thanks > > Best, > Ming-ching > _______________________________________________ > gtkmm-list mailing list > gtkmm-list@gnome.org > https://mail.gnome.org/mailman/listinfo/gtkmm-list > --e89a8f6430f6dd486b04c863f08a Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: base64 SGksPGJyPkkgaGFkIGEgc2ltaWxhciBwcm9ibGVtIGluIHRoZSBub3RlIHRha2luZyBhcHBsaWNh dGlvbiBJJiMzOTttIHdyaXRpbmcgPGEgaHJlZj0iaHR0cDovL3d3dy5naXVzcGVuLmNvbS9jaGVy cnl0cmVlIj53d3cuZ2l1c3Blbi5jb20vY2hlcnJ5dHJlZTwvYT48YnI+SW4gdGhhdCBhcHBsaWNh dGlvbiB5b3UgY2FuIGluc2VydCB0aGUgc28gY2FsbGVkIHRhYmxlcyB3aGljaCBhcmUgbWVyZWx5 IHRyZWUgdmlld3Mgd2l0aCBlZGl0YWJsZSBjZWxscy48YnI+ClRoZSBiZXN0IHNvbHV0aW9uIHRo YXQgSSBmb3VuZCBpcyB0aGF0IGFmdGVyIHlvdSBlbnRlciB2YWx1ZSBpbiBhIGNlbGwsIGNsaWNr IGVudGVyIChvciBkb3duKSBhbmQgYXV0b21hdGljYWxseSB0aGU8YnI+dmFsdWUgaXMgc2F2ZWQg YW5kIHRoZSBmb2N1cyBtb3ZlcyB0byB0aGUgZm9sbG93aW5nIGNlbGwgKG9yIGZpcnN0IGluIHRo ZSBuZXh0IHJvdykuPGJyPklmIHlvdSBjbGljayB1cCB0aGUgcmVzdWx0IGlzIHRoZSBzYW1lIGJ1 dCB0aGUgbW92ZSBpcyB0byB0aGUgZm9ybWVyIGNlbGwuPGJyPgpDaGVycnl0cmVlIGlzIHdyaXR0 ZW4gaW4gcHl0aG9uIGFueXdheS48YnI+V2hhdCB5b3UgbmVlZCB0byBsb29rIHRvIGlzIHRoZSBm aWxlIG1vZHVsZXMvdGFibGV6LnB5IGFuZCB0aGUgZnVuY3Rpb25zIGFyZSBtYWlubHk6PGJyPjxi cj6goKAgZGVmIG9uX2tleV9wcmVzc190YWJsZV9jZWxsKHNlbGYsIHdpZGdldCwgZXZlbnQsIHBh dGgsIG1vZGVsLCBjb2xfbnVtKTo8YnI+oKCgoKCgoCAmcXVvdDsmcXVvdDsmcXVvdDtDYXRjaGVz IFRhYmxlIENlbGwga2V5IHByZXNzZXMmcXVvdDsmcXVvdDsmcXVvdDs8YnI+CqCgoKCgoKAga2V5 bmFtZSA9IGd0ay5nZGsua2V5dmFsX25hbWUoZXZlbnQua2V5dmFsKTxicj6goKCgoKCgIGlmIGV2 ZW50LnN0YXRlICZhbXA7IGd0ay5nZGsuU0hJRlRfTUFTSzo8YnI+oKCgoKCgoKCgoKAgcGFzczxi cj6goKCgoKCgIGVsaWYgZXZlbnQuc3RhdGUgJmFtcDsgZ3RrLmdkay5NT0QxX01BU0s6PGJyPqCg oKCgoKCgoKCgIHBhc3M8YnI+oKCgoKCgoCBlbGlmIGV2ZW50LnN0YXRlICZhbXA7IGd0ay5nZGsu Q09OVFJPTF9NQVNLOjxicj4KoKCgoKCgoKCgoKAgcGFzczxicj6goKCgoKCgIGVsc2U6PGJyPqCg oKCgoKCgoKCgIGlmIGtleW5hbWUgaW4gWyZxdW90O1JldHVybiZxdW90OywgJnF1b3Q7VXAmcXVv dDssICZxdW90O0Rvd24mcXVvdDtdOjxicj6goKCgoKCgoKCgoKCgoKAgaWYgbW9kZWxbcGF0aF1b Y29sX251bV0gIT0gd2lkZ2V0LmdldF90ZXh0KCk6PGJyPqCgoKCgoKCgoKCgoKCgoKCgoKAgbW9k ZWxbcGF0aF1bY29sX251bV0gPSB3aWRnZXQuZ2V0X3RleHQoKTxicj4KoKCgoKCgoKCgoKCgoKCg oKCgoCBzZWxmLmRhZC51cGRhdGVfd2luZG93X3NhdmVfbmVlZGVkKCZxdW90O25idWYmcXVvdDss IFRydWUpPGJyPqCgoKCgoKCgoKCgoKCgoCBpZiBrZXluYW1lID09ICZxdW90O1VwJnF1b3Q7Ojxi cj6goKCgoKCgoKCgoKCgoKCgoKCgIGlmIGNvbF9udW0gJmd0OyAwOjxicj6goKCgoKCgoKCgoKCg oKCgoKCgoKCgoCBuZXh0X2NvbF9udW0gPSBjb2xfbnVtIC0gMTxicj4KoKCgoKCgoKCgoKCgoKCg oKCgoKCgoKAgbmV4dF9wYXRoID0gcGF0aDxicj6goKCgoKCgoKCgoKCgoKCgoKCgIGVsc2U6PGJy PqCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgIG5leHRfaXRlciA9IE5vbmU8YnI+oKCgoKCgoKCgoKCg oKCgoKCgoKCgoKAgbmV4dF9wYXRoID2gIG1vZGVsLmdldF9wYXRoKG1vZGVsLmdldF9pdGVyKHBh dGgpKTxicj6goKCgoKCgoKCgoKCgoKCgoKCgoKCgoCB3aGlsZSBub3QgbmV4dF9pdGVyIGFuZCBu ZXh0X3BhdGhbMF0gJmd0OyAwOjxicj4KoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgIG5vZGVf cGF0aF9saXN0ID0gbGlzdChuZXh0X3BhdGgpPGJyPqCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCg oCBub2RlX3BhdGhfbGlzdFswXSAtPSAxPGJyPqCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoCBu ZXh0X3BhdGggPSB0dXBsZShub2RlX3BhdGhfbGlzdCk8YnI+oKCgoKCgoKCgoKCgoKCgoKCgoKCg oKCgoKCgIG5leHRfaXRlciA9IG1vZGVsLmdldF9pdGVyKG5leHRfcGF0aCk8YnI+CqCgoKCgoKCg oKCgoKCgoKCgoKCgoKCgICNuZXh0X2l0ZXIgPSBtb2RlbC5pdGVyX25leHQobW9kZWwuZ2V0X2l0 ZXIocGF0aCkpPGJyPqCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgIGlmIG5vdCBuZXh0X2l0ZXI6IHJl dHVybjxicj6goKCgoKCgoKCgoKCgoKCgoKCgoKCgoCBuZXh0X3BhdGggPSBtb2RlbC5nZXRfcGF0 aChuZXh0X2l0ZXIpPGJyPqCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgIG5leHRfY29sX251bSA9IHNl bGYudGFibGVfY29sdW1ucy0xPGJyPgqgoKCgoKCgoKCgoKCgoKAgZWxzZTo8YnI+oKCgoKCgoKCg oKCgoKCgoKCgoCBpZiBjb2xfbnVtICZsdDsgc2VsZi50YWJsZV9jb2x1bW5zLTE6PGJyPqCgoKCg oKCgoKCgoKCgoKCgoKCgoKCgIG5leHRfY29sX251bSA9IGNvbF9udW0gKyAxPGJyPqCgoKCgoKCg oKCgoKCgoKCgoKCgoKCgIG5leHRfcGF0aCA9IHBhdGg8YnI+oKCgoKCgoKCgoKCgoKCgoKCgoCBl bHNlOjxicj6goKCgoKCgoKCgoKCgoKCgoKCgoKCgoCBuZXh0X2l0ZXIgPSBtb2RlbC5pdGVyX25l eHQobW9kZWwuZ2V0X2l0ZXIocGF0aCkpPGJyPgqgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoCBpZiBu b3QgbmV4dF9pdGVyOiByZXR1cm48YnI+oKCgoKCgoKCgoKCgoKCgoKCgoKCgoKAgbmV4dF9wYXRo ID0gbW9kZWwuZ2V0X3BhdGgobmV4dF9pdGVyKTxicj6goKCgoKCgoKCgoKCgoKCgoKCgoKCgoCBu ZXh0X2NvbF9udW0gPSAwPGJyPqCgoKCgoKCgoKCgoKCgoCAjcHJpbnQgJnF1b3Q7KHBhdGgsIGNv bF9udW0pID0gKCVzLCAlcykmcXVvdDsgJSAocGF0aCwgY29sX251bSk8YnI+CqCgoKCgoKCgoKCg oKCgoCAjcHJpbnQgJnF1b3Q7KG5leHRfcGF0aCwgbmV4dF9jb2xfbnVtKSA9ICglcywgJXMpJnF1 b3Q7ICUgKG5leHRfcGF0aCwgbmV4dF9jb2xfbnVtKTxicj6goKCgoKCgoKCgoKCgoKAgbmV4dF9j b2x1bW4gPSBzZWxmLmN1cnJfdGFibGVfYW5jaG9yLnRyZWV2aWV3LmdldF9jb2x1bW5zKClbbmV4 dF9jb2xfbnVtXTxicj6goKCgoKCgoKCgoKCgoKAgc2VsZi5jdXJyX3RhYmxlX2FuY2hvci50cmVl dmlldy5zZXRfY3Vyc29yX29uX2NlbGwobmV4dF9wYXRoLDxicj4KoKCgoKCgoKCgoKCgoKCgoKCg oKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgIGZvY3VzX2Nv bHVtbj1uZXh0X2NvbHVtbiw8YnI+oKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCg oKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgIGZvY3VzX2NlbGw9bmV4dF9jb2x1bW4uZ2V0 X2NlbGxfcmVuZGVyZXJzKClbMF0sPGJyPqCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCg oKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoCBzdGFydF9lZGl0aW5nPVRydWUpPGJy Pgo8YnI+oKCgIGRlZiBvbl90YWJsZV9jZWxsX2VkaXRpbmdfc3RhcnRlZChzZWxmLCBjZWxsLCBl ZGl0YWJsZSwgcGF0aCwgbW9kZWwsIGNvbF9udW0pOjxicj6goKCgoKCgICZxdW90OyZxdW90OyZx dW90O0EgVGFibGUgQ2VsbCBpcyBnb2luZyB0byBiZSBFZGl0ZWQmcXVvdDsmcXVvdDsmcXVvdDs8 YnI+oKCgoKCgoCBpZiBpc2luc3RhbmNlKGVkaXRhYmxlLCBndGsuRW50cnkpOjxicj6goKCgoKCg oKCgoCBlZGl0YWJsZS5jb25uZWN0KCYjMzk7a2V5X3ByZXNzX2V2ZW50JiMzOTssIHNlbGYub25f a2V5X3ByZXNzX3RhYmxlX2NlbGwsIHBhdGgsIG1vZGVsLCBjb2xfbnVtKTxicj4KPGJyPqCgoCBk ZWYgb25fdGFibGVfY2VsbF9lZGl0ZWQoc2VsZiwgY2VsbCwgcGF0aCwgbmV3X3RleHQsIG1vZGVs LCBjb2xfbnVtKTo8YnI+oKCgoKCgoCAmcXVvdDsmcXVvdDsmcXVvdDtBIFRhYmxlIENlbGwgaGFz IGJlZW4gRWRpdGVkJnF1b3Q7JnF1b3Q7JnF1b3Q7PGJyPqCgoKCgoKAgaWYgbW9kZWxbcGF0aF1b Y29sX251bV0gIT0gbmV3X3RleHQ6PGJyPqCgoKCgoKCgoKCgIG1vZGVsW3BhdGhdW2NvbF9udW1d ID0gbmV3X3RleHQ8YnI+Cjxicj5IVEgsIHJlZ2FyZHMsPGJyPkdpdXNlcHBlLjxicj48YnI+PGJy Pjxicj48ZGl2IGNsYXNzPSJnbWFpbF9xdW90ZSI+T24gVHVlLCBBdWcgMjgsIDIwMTIgYXQgMTE6 NTAgUE0sIE1pbmctY2hpbmcgQ2hpdSA8c3BhbiBkaXI9Imx0ciI+Jmx0OzxhIGhyZWY9Im1haWx0 bzpwZXJjbGVAZ21haWwuY29tIiB0YXJnZXQ9Il9ibGFuayI+cGVyY2xlQGdtYWlsLmNvbTwvYT4m Z3Q7PC9zcGFuPiB3cm90ZTo8YnI+CjxibG9ja3F1b3RlIGNsYXNzPSJnbWFpbF9xdW90ZSIgc3R5 bGU9Im1hcmdpbjowIDAgMCAuOGV4O2JvcmRlci1sZWZ0OjFweCAjY2NjIHNvbGlkO3BhZGRpbmct bGVmdDoxZXgiPkhpLDxicj4KUmlnaHQgbm93IGluIG15IFRyZWUgVmlldyBJIGhhdmUgbXVsdGlw bGUgZWRpdGFibGUgY2VsbHMgaW4gZWFjaCByb3cuIEhvd2V2ZXIsIHRvIGZpbGwgaW4gYWxsIHRo ZSBjZWxscywgSSBoYXZlIHRvIGNsaWNrIG9uIG9uZSBjZWxsLCBlbnRlciB0aGUgZGF0YSwgYW5k IHRoZW4gZWl0aGVyIGhpdCByZXR1cm4gb3IgY2xpY2sgc29tZXdoZXJlIGVsc2UgdG8gbW92ZSB0 aGUgZm9jdXMgb3V0IG9mIHRoZSBjZWxsLCBhbmQgdGhlbiBjbGljayB0aGUgbmV4dCBjZWxsIHdo aWNoIEkgd2FudCB0byBlbnRlciBkYXRhLiBJZiBJIGNsaWNrIG9uIHRoZSBzZWNvbmQgY2VsbCBy aWdodCBhZnRlciBlbnRlcmluZyBkYXRhIGluIHRoZSBmaXJzdCBjZWxsIHdpdGhvdXQgbW92aW5n IHRoZSBmb2N1cyBvdXQgb2YgaXQsIHRoZSBmb2N1cyB3aWxsIG1vdmUgZGlyZWN0bHkgdG8gdGhl IHNlY29uZCBjZWxsIGFuZCB0aGUgZGF0YSBJIGp1c3QgZW50ZXJlZCBpbiB0aGUgZmlyc3QgY2Vs bCBpcyBnb25lLiBJcyB0aGVyZSBhbnl3YXkgdG8gc29sdmUgdGhpcyBwcm9ibGVtPyCgVGhhbmtz PGJyPgoKPGJyPgpCZXN0LDxicj4KTWluZy1jaGluZzxicj4KX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX188YnI+Cmd0a21tLWxpc3QgbWFpbGluZyBsaXN0PGJy Pgo8YSBocmVmPSJtYWlsdG86Z3RrbW0tbGlzdEBnbm9tZS5vcmciPmd0a21tLWxpc3RAZ25vbWUu b3JnPC9hPjxicj4KPGEgaHJlZj0iaHR0cHM6Ly9tYWlsLmdub21lLm9yZy9tYWlsbWFuL2xpc3Rp bmZvL2d0a21tLWxpc3QiIHRhcmdldD0iX2JsYW5rIj5odHRwczovL21haWwuZ25vbWUub3JnL21h aWxtYW4vbGlzdGluZm8vZ3RrbW0tbGlzdDwvYT48YnI+CjwvYmxvY2txdW90ZT48L2Rpdj48YnI+ Cg== --e89a8f6430f6dd486b04c863f08a-- From rafal@hirsz.co Thu Aug 30 21:13:55 2012 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 menubar.gnome.org (Postfix) with ESMTP id 81164750432 for ; Thu, 30 Aug 2012 21:13:55 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.445 X-Spam-Level: X-Spam-Status: No, score=-2.445 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, TW_GT=0.077, TW_TK=0.077] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id SoyJw-k4D9-o for ; Thu, 30 Aug 2012 21:13:53 +0000 (UTC) Received: from mail-wg0-f46.google.com (mail-wg0-f46.google.com [74.125.82.46]) by menubar.gnome.org (Postfix) with ESMTP id E8F5B7502E9 for ; Thu, 30 Aug 2012 21:13:52 +0000 (UTC) Received: by wgi16 with SMTP id 16so1238471wgi.27 for ; Thu, 30 Aug 2012 14:13:50 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=from:content-type:subject:date:message-id:to:mime-version:x-mailer :x-gm-message-state; bh=BosgrRYFN/Wm8/9FmmMhrkDFEgdsSx0g3urPXTYBDmk=; b=LZdSy0rTLAb7kvS0tA6uaudPdOyqcEUc1hLnJZNQqMnBm3XT3V50g/13ligAFAkRFc GvFS+WFBxkU2r7p2zjvikyzsNvvUtD7myVMNkJ01WyrLiKRDKJ+97qzZXmzXn+uw5rA8 s63sje3a071v8ZoeT3yp2/EkEUNeoX6WWAy6KcrZVEsQTfJWE/ev66dvCPgbyRA/oLtp FND0h4gbY+lCdtNqG66KDjQFZhtbY/21dxXDK1MsHjuljrwxDOxph/bpLSUz0MGrHxcx KLcLkO6Q3gPtcln6tipbpstGBONRgfIG6UdcvAjtj9MQeuwWAi8Yuw6/+MZTebUDIsAT 4f1A== Received: by 10.180.82.164 with SMTP id j4mr2878098wiy.18.1346361230752; Thu, 30 Aug 2012 14:13:50 -0700 (PDT) Received: from [192.168.1.9] (178-37-47-91.adsl.inetia.pl. [178.37.47.91]) by mx.google.com with ESMTPS id do5sm3957267wib.10.2012.08.30.14.13.47 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 30 Aug 2012 14:13:49 -0700 (PDT) From: =?iso-8859-2?Q?Rafa=B3_Hirsz?= Content-Type: multipart/alternative; boundary="Apple-Mail=_BBAD4EB5-0E8B-49A1-9C3C-C0C0FBB5898B" Subject: Problem with CellRendererSpin and/or mapping Gtk::Adjustments Date: Thu, 30 Aug 2012 23:13:45 +0200 Message-Id: <152FC5C2-673D-4EB6-8979-6659F7165547@hirsz.co> To: gtkmm-list@gnome.org Mime-Version: 1.0 (Apple Message framework v1278) X-Mailer: Apple Mail (2.1278) X-Gm-Message-State: ALoCoQlGVknZ4m5hBTKDYUujHFBwRJceOtJFrWUbdIbRMTpajsYTQEXEqwC0M5xstuhPK2kgH2Iy X-BeenThere: gtkmm-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: gtkmm general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Aug 2012 21:13:55 -0000 --Apple-Mail=_BBAD4EB5-0E8B-49A1-9C3C-C0C0FBB5898B Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=iso-8859-2 Hi, I wanted to use CellRendererSpins in my TreeView, but it wasn't properly = functioning. I'm using gtkmm 2.24. The code was roughly: Gtk::Adjustment parameterAdjustment(0, = std::numeric_limits::min(), std::numeric_limits::max(), = 1e-10, 1e-5); Gtk::CellRendererSpin parameterRenderer; Gtk::TreeViewColumn parameterColumn; parameterColumn.set_title("Parameters"); parameterColumn.pack_start(parameterRenderer); parameterRenderer.property_adjustment() =3D ¶meterAdjustment; parameterRenderer.property_editable() =3D true; parameterRenderer.property_digits() =3D 18; Using the above code, I could edit positive numbers without problems. However, every negative number, when edited, was reset to 0. I tried to fix this problem by creating a column for separate = Gtk::Adjustments in my TreeModel, but simply adding a = Gtk::TreeModelColumn doesn't compile. I know that the simple answer for my last problem would be to just use = gtkmm 3.0, but this isn't possible for me. If you could help me setup the Adjustments right, I would be very = grateful. --=20 Best regards, Rafa=B3 Hirsz= --Apple-Mail=_BBAD4EB5-0E8B-49A1-9C3C-C0C0FBB5898B Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=iso-8859-2 Gtk::Adjustment parameterAdjustment(0, = std::numeric_limits<float>::min(), = std::numeric_limits<float>::max(), 1e-10, = 1e-5);