Re: Doubt

2017-04-21 Thread Emmanuele Bassi
On 20 April 2017 at 11:03, Rúben Rodrigues wrote: > Hi guys, > > i have a problem with callback functions. I have a struct in parameter but > always give null values. Here is an example: > > > struct pxToggleData{ > LineChartSeries *series; > LineChart *chart; >

Doubt

2017-04-21 Thread Rúben Rodrigues
Hi guys, i have a problem with callback functions. I have a struct in parameter but always give null values. Here is an example: struct pxToggleData{ LineChartSeries *series; LineChart *chart; GtkWidget *canvas; }; xTempToggle.canvas = canvas; xTempToggle.chart = chart;

Doubt regarding GListModel

2017-02-25 Thread Pranav Ganorkar
Hi, I am a developer working on GNOME Logs and I wanted to ask a doubt regarding GListModel <https://developer.gnome.org/gio/stable/GListModel.html>. I am working on this gnome-logs bug: https://bugzilla.gnome. org/show_bug.cgi?id=767995 Moving the sorting functionality to the mode

Doubt about signal emission

2014-01-24 Thread Saurabh Patel
How can I emit activate signal for GLib.Action ? For Glib.Acion or GLib.SimpleAction it is showing The name 'emit_signal_by_name' does not exist in context of GLib.Action. ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org

RES: mutex doubt

2011-12-08 Thread Marcelo Elias Del Valle - SYSMAP SOLUTIONS - Claro MA-SP -
: tristan.van.ber...@gmail.com [mailto:tristan.van.ber...@gmail.com] Em nome de Tristan Van Berkom Enviada em: quinta-feira, 8 de dezembro de 2011 03:36 Para: Marcelo Elias Del Valle - SYSMAP SOLUTIONS - Claro MA-SP - Cc: Emmanuele Bassi; gtk-app-devel-list@gnome.org Assunto: Re: mutex doubt 2011/12/8

RES: mutex doubt

2011-12-07 Thread Marcelo Elias Del Valle - SYSMAP SOLUTIONS - Claro MA-SP -
Hello, -Mensagem original- De: tristan.van.ber...@gmail.com [mailto:tristan.van.ber...@gmail.com] Em nome de Tristan Van Berkom Assunto: Re: mutex doubt Out of curiosity, what is glib startup ? Do you mean as a part of g_type_init() ? Yes, exactly Or, can glib programs

RES: mutex doubt

2011-12-07 Thread Marcelo Elias Del Valle - SYSMAP SOLUTIONS - Claro MA-SP -
On 6 December 2011 18:14, Tristan Van Berkom t...@gnome.org wrote: Or, can glib programs which don't make use of GObject use threads at all ? sure. Out of curiosity, do you recommend me to use GObject to any glib program? Or only for those I need to integrate with other languages? Thanks for

RES: mutex doubt

2011-12-07 Thread Marcelo Elias Del Valle - SYSMAP SOLUTIONS - Claro MA-SP -
2011 14:36 Para: Tristan Van Berkom; jcup...@gmail.com Cc: gtk-app-devel-list@gnome.org Assunto: RES: mutex doubt Hello, -Mensagem original- De: tristan.van.ber...@gmail.com [mailto:tristan.van.ber...@gmail.com] Em nome de Tristan Van Berkom Assunto: Re: mutex doubt Out of curiosity

Re: mutex doubt

2011-12-07 Thread Tristan Van Berkom
2011/12/8 Marcelo Elias Del Valle - SYSMAP SOLUTIONS - Claro MA-SP - marcelo.va...@claro.com.br: On 6 December 2011 18:14, Tristan Van Berkom t...@gnome.org wrote: Or, can glib programs which don't make use of GObject use threads at all ? sure. Out of curiosity, do you recommend me to use

mutex doubt

2011-12-06 Thread Marcelo Elias Del Valle - SYSMAP SOLUTIONS - Claro MA-SP -
Hello, Do I need to call g_thread_init() manually before calling g_mutex_new (), in a glib only application? Or is it auto called by default when I call g_type_init() and therefore I don't need to do it? Regards, Valle. Esta mensagem, incluindo seus eventuais anexos, pode conter

Re: mutex doubt

2011-12-06 Thread Emmanuele Bassi
hi; On 6 December 2011 18:14, Tristan Van Berkom t...@gnome.org wrote: Or, can glib programs which don't make use of GObject use threads at all ? sure. Must _those_ programs still call g_thread_init() before using threads ? before GLib 2.31, yes; after, no. It seems that the pthread

Re: newbie doubt with gtktutorial

2008-01-20 Thread Tor Lillqvist
using the backticks( ` ) works in cygwin shell (but not in DOS) There is no (MS-)DOS involved at all in Windows XP. Saying DOS when you mean Command Prompt or cmd.exe is pointless and silly. But yes, you are right of course, backticks work only in a Unix-style shell. when i try to run it it

newbie doubt with gtktutorial

2008-01-19 Thread dev new
hi i am trying out the gtk tutorial with gcc (cygwin on winXP) and wanted to run the first example in gtktutorial (to show blank window)..i copied the code and compiled it with gcc base.c -o base `pkg-config --cflags --libs gtk+-2.0` using the backticks( ` ) works in cygwin shell (but not in DOS)

Re: newbie doubt with gtktutorial

2008-01-19 Thread Jim George
On Jan 20, 2008 12:35 AM, dev new [EMAIL PROTECTED] wrote: hi i am trying out the gtk tutorial with gcc (cygwin on winXP) and wanted to run the first example in gtktutorial (to show blank window)..i copied the code and compiled it with gcc base.c -o base `pkg-config --cflags --libs gtk+-2.0`

Re: Doubt about free or dont free

2005-07-26 Thread Stefan Kost
Hi again, Gus Koppel wrote: While the case of returned const gchar *s is rather simple, the real problem to me is that the API docs are quite less explicit when it comes to more complex objects than just string constants. For instance, whether and how reference counts of objects related to

Re: Doubt about free or dont free

2005-07-26 Thread Tristan Van Berkom
Greg Breland wrote: [...] What really needs to happen(and I believe is in the works) is that the GTK manual needs user comments or wiki goodness. This would solve almost everything except that each function might have too much information before too long. :) While we're on a rant about API

Re: Doubt about free or dont free

2005-07-25 Thread Chris Anderson
I wish the API docs would be added a line for _every_ get- or set- function, which explicitly notes whether and how reference counts of associated objects are changed by that function. I second that motion! Actually, I wish it would be a standard for all GNU-style open source projects. I think

Re: Doubt about free or dont free

2005-07-25 Thread Steve Feehan
On Sat, Jul 23, 2005 at 06:29:17PM +0200, Gus Koppel wrote: I wish the API docs would be added a line for _every_ get- or set- function, which explicitly notes whether and how reference counts of associated objects are changed by that function. Take a look at the following wiki page. If

Re: Doubt about free or dont free

2005-07-25 Thread Stefan Kost
Gus Koppel wrote: While the case of returned const gchar *s is rather simple, the real problem to me is that the API docs are quite less explicit when it comes to more complex objects than just string constants. For instance, whether and how reference counts of objects related to treeviews are

Re: Doubt about free or dont free

2005-07-23 Thread Gus Koppel
Arx Henrique wrote: my doubt is g_free or not g_free the text? When in doubt, read API docs: Tks x) next time i'll read api While the case of returned const gchar *s is rather simple, the real problem to me is that the API docs are quite less explicit when it comes to more complex

Re: Doubt about free or dont free

2005-07-22 Thread David Necas (Yeti)
); gtk_editable_delete_text(GTK_EDITABLE(widget), 0, -1); } my doubt is g_free or not g_free the text? When in doubt, read API docs: This string points to internally allocated storage in the widget and must not be freed, modified or stored. Yeti -- A: Because it messes up

Re: Doubt about free or dont free

2005-07-22 Thread Arx Henrique
; text = gtk_entry_get_text(widget); gui_app_notify_new(text); g_free(text); gtk_editable_delete_text(GTK_EDITABLE(widget), 0, -1); } my doubt is g_free or not g_free the text? When in doubt, read API docs: This string points to internally allocated storage

Re: Doubt about free or dont free

2005-07-22 Thread Germán Poó Caamaño
); g_free(text); gtk_editable_delete_text(GTK_EDITABLE(widget), 0, -1); } my doubt is g_free or not g_free the text? Just check the documentation: http://developer.gnome.org/doc/API/2.2/gtk/GtkEntry.html#gtk-entry-get-text Returns : a pointer to the contents of the widget as a string