Re: Gdk-WARNING **: gdkwindow-win32.c:1834: SetWindowLongPtr failed: Invalid window handle.

2018-05-17 Thread Nicola Fontana
Il Wed, 16 May 2018 02:40:44 + songqing shan scrisse: > Hello, > > > I am learning GTK and developing a small application, which uses gtktextview > widget. > > In my application, I compile it well. When running it, clicking the texview > and "Gdk-WARNING **:

Re: IDE to develop app with GTK3 on windows using MSYS2

2018-05-07 Thread Nicola Fontana
Il Mon, 7 May 2018 09:30:13 +0200 arkkimede scrisse: > ... > Now I would migrate on WIndows 10 by means of MSYS2. > > There is an IDE (better if open source) that I can use instean to follow to > use vi? > ... Hi, it seems to me a step backward: nothing can beat a

Re: GtkRevealer glitches the text view drawing

2018-05-04 Thread Nicola Fontana
Il Fri, 4 May 2018 14:19:42 +0300 Marius Gedminas scrisse: > ... > I've checked https://gitlab.gnome.org/GNOME/gtk/issues briefly but > couldn't find an existing bug, so perhaps nobody has reported it > upstream. Hi, I think this bus is #710888 [1] that is already fixed in

Re: Dimensions in pixels of a draw Area to obtain a plot on a A4 paper

2018-04-20 Thread Nicola Fontana
Il Sat, 21 Apr 2018 04:01:21 +0200 arkkimede scrisse: > HI! > I've realized an App with GTK3 and the library CAIRO to plot results of > measurements. > I use the function "cairo_surface_write_to_png" to obtain a png file that I > put on a paper of format A4 (with usual

Re: simple question

2018-02-19 Thread Nicola Fontana
Il Mon, 19 Feb 2018 09:24:20 +0100 Wojciech Puchar <w.puc...@digitalsystems.pl> scrisse: > On 2018.02.19 08:09, Nicola Fontana wrote: > > Il Sat, 17 Feb 2018 21:32:19 +0100 (CET) Wojciech Puchar > > <woj...@puchar.net> scrisse: > > ... > > If you wa

Re: simple question

2018-02-18 Thread Nicola Fontana
Il Sat, 17 Feb 2018 21:32:19 +0100 (CET) Wojciech Puchar scrisse: > i want in my program to change background color of the gtk_button to red > sometimes as a signal to the user. > > it works fine with default theme but not with some other themes like > E17gtk. > > how to

Re: Jump from PyGTK to C GTK

2017-11-07 Thread Nicola Fontana
Il Tue, 7 Nov 2017 13:52:01 +0100 Nils Söderman scrisse: > Hello, i have been using glade to build a GUI, doing an app to fill the > entry-boxes with data. OK so far. But when i wanted to color the boxes > with help of PyGTK according to their content and did not succeed

Re: Show dialog after hide another

2017-09-07 Thread Nicola Fontana
Il Wed, 6 Sep 2017 16:08:07 + Rúben Rodrigues scrisse: > ... > void on_button_Util_Firmware_Update_clicked(GtkButton *button, gpointer > user_data) > { >     GtkLabel    *gLabel_Result; >     FILE        *fp; >     gchar        pcTmp[BUFSIZ]; > >     // Fecha a

Re: "click" event on a GtkSpinEntry

2017-08-22 Thread Nicola Fontana
Il Tue, 22 Aug 2017 15:10:44 -0400 cecas...@aol.com scrisse: > ... > There is a good read about the spin button at > > https://blog.gtk.org/author/ebassi/ > > with Tim Bader on April 25, 2017. I don't know if you have seen that. Hi Eric, no, I did not see that... it would have saved me some

"click" event on a GtkSpinEntry

2017-08-21 Thread Nicola Fontana
Hi all, I want to catch a click/button-press event *only* on the entry part of a GtkSpinButton. Put in other words I want to filter out events happening on the up and down buttons of a spin entry. I tried several strategies until actually finding a working approach. The implementation though is

Re: undefined reference to gtk label set xalign

2017-06-17 Thread Nicola Fontana
Il Fri, 16 Jun 2017 08:58:41 + Rúben Rodrigues scrisse: > Hi guys, > > Someone could help with this? > https://stackoverflow.com/questions/44547398/undefined-reference-to-gtk-label-set-xalign Hi, you are linking against GTK+ 3.14.5 and gtk_label_set_xalign has been

Re: Combobox focus event

2017-04-07 Thread Nicola Fontana
Il Fri, 7 Apr 2017 13:52:57 -0400 Eric Cashon via gtk-app-devel-list scrisse: > Thomas, > > Your original question looked easy. Connect the "focus-in-event" to the combo > box and everything will work fine. > ... Hi, GtkComboBox is a GtkContainer, so I would

Re: Input event reduction

2017-03-30 Thread Nicola Fontana
Il Thu, 30 Mar 2017 09:38:41 +0200 Stefan Salewski <m...@ssalewski.de> scrisse: > On Wed, 2017-03-29 at 23:26 +0200, Nicola Fontana wrote: > >  > > > > idle functions do *not* run in the background so if you don't > > release the CPU you will experience what

Re: Input event reduction

2017-03-29 Thread Nicola Fontana
Il Wed, 29 Mar 2017 21:27:48 +0200 Stefan Salewski scrisse: > ... > > Problem is the idle function added with > > https://developer.gnome.org/glib/stable/glib-The-Main-Event-Loop.html#g-idle-add > > I have the strong feeling, that the provided function is not running >

Re: Best practise inheritance

2017-03-21 Thread Nicola Fontana
Il Tue, 21 Mar 2017 17:55:31 + Tristan Van Berkom scrisse: > ... >   o I believe the lookups with G_TYPE_INSTANCE_GET_PRIVATE() are just >     as cheap as the pointer dereference (as it will be implemented >     using simple pointer arithmetic). Hi

Re: Cross platform developmentG

2017-03-20 Thread Nicola Fontana
Il Mon, 20 Mar 2017 03:30:54 +0100 Dirk Gottschalk via gtk-app-devel-list scrisse: > ... > I'll take a look at this. The question was which DLLs are nedded. Hi, in my cross-compiled installer script [1] I've the following list: File

Re: Accessors vs Properties

2017-01-05 Thread Nicola Fontana
Hi, Il Tue, 3 Jan 2017 22:46:13 +0100 Tobias Knopp scrisse: > ... > - Is any accessor backuped with a property and vice versa? Only the second part stands, i.e. any property should have its own accessors. There is some exception though, e.g. GtkContainer:child, but that is

Re: Accessors vs Properties

2017-01-05 Thread Nicola Fontana
Il Thu, 05 Jan 2017 07:27:10 + Gergely Polonkai scrisse: > Hello, > > I don't know about others, but in my own code, my_obj_set_property() does > nothing else just calls the setter functions (and the same for getters). It > makes much more sense, and I saw it in a lot

Re: The Big Gtk limitations: a reliable GUI builder

2016-11-30 Thread Nicola Fontana
Il Wed, 30 Nov 2016 14:35:59 +0100 Pozz Pozz <pozzu...@gmail.com> scrisse: > 2016-11-30 9:09 GMT+01:00 Nicola Fontana <n...@entidi.it>: > > > ... > > If your workflow heavily rely on a GUI > > builder, you have 4 options: (1) use glade as is, (2) prepare to

Re: The Big Gtk limitations: a reliable GUI builder

2016-11-30 Thread Nicola Fontana
Il Wed, 30 Nov 2016 11:08:13 +1100 Daniel Kasak scrisse: > ... > My normal workflow is to lay things out *roughly* in glade, then > actually run the app and see what it looks like. > ... This is my workflow too, apart the fact that after the first draft I prefer to edit

Re: SpinButton: how to avoid calling signal handler when set_value()

2016-11-02 Thread Nicola Fontana
Il Wed, 2 Nov 2016 14:40:58 +0100 Pozz Pozz <pozzu...@gmail.com> scrisse: > 2016-11-02 11:24 GMT+01:00 Nicola Fontana <n...@entidi.it>: > > ... > > > > you don't necessarily need the handler id. In C (I don't use > > python) you could write the following:

Re: SpinButton: how to avoid calling signal handler when set_value()

2016-11-02 Thread Nicola Fontana
Il Wed, 2 Nov 2016 10:23:44 +0100 Pozz Pozz scrisse: > ... > How do you implement the generic function _my_set_value()? It should have > two parameters: spinbutton and value. signal_handler_block() function needs > the handler_id associated that I don't have. > Maybe during

Re: SpinButton: how to avoid calling signal handler when set_value()

2016-11-02 Thread Nicola Fontana
Il Wed, 2 Nov 2016 00:09:29 +0100 pozzugno scrisse: > ... > A simple and clear sequence of instructions: > >_set_value() >_set_value() >.. > > will be transformed in a complex, long and cryptic sequence of > instructions: > >_block() >_set_value() >

Re: Adding and removing widgets at runtime

2016-09-12 Thread Nicola Fontana
Il Mon, 12 Sep 2016 13:37:04 -0300 "Daniel." scrisse: > Well, if I wasn't clear before my layout is totally questionable. I > more generic question would be: > > How you guys aproaches when the problem is showing applications > behavior on screen? Hi, I don't see any

Re: argv revisited

2016-05-09 Thread Nicola Fontana
Il Mon, 9 May 2016 09:35:06 -0500 Edscott Wilson scrisse: > ... > Many thanks to all those who have responded. With all the advice I'm now > going to try cross compiling 64 bit GTK application for windows using all > the tools available in ArchLinux and the AUR

Re: Simple glib compilation problem: DSO missing from command line

2015-03-27 Thread Nicola Fontana
Il Fri, 27 Mar 2015 11:31:59 +0100 Bruno Cauet brunoca...@gmail.com scrisse: Hi, I'm having trouble compiling stuff with glib. Here it is: $ LANG=C gcc -I /usr/include/glib-2.0 -I /usr/lib/glib-2.0/include -L /usr/lib -l gio-2.0 segfault.c /usr/bin/ld: /usr/lib/libgio-2.0.so: undefined

Re:

2015-02-07 Thread Nicola Fontana
Il Fri, 06 Feb 2015 16:24:39 -0600 zeta kmsi...@gmail.com scrisse: I am new on the community, I am a bachelor student at BUAP, I love gome since I meet it, and know I want to contribute in something, I was writing an application with gtk and when I want to create some cool charts I see that

Re: Best practice query: Entry field user's done editing handling?

2013-12-24 Thread Nicola Fontana
Il Mon, 23 Dec 2013 22:19:28 -0800 A. Walton awal...@gnome.org scrisse: Frankly I don't see what's wrong with making it instant apply from the description. Connect to the GtkEditable::changed signal, throw in a short timeout that gets reset any time someone changes the field. If they have

Re: widget to represent dial/speedometer kind of object

2013-12-10 Thread Nicola Fontana
Il Tue, 10 Dec 2013 17:30:42 +0800 (SGT) Mahesh Chaudhari mahesh.chaudh...@ymail.com scrisse: Hi list , is there any widget available to represent meter/dial/speedometer kind of object, needle of which rotates dynamically with magnitude of input values one widget i found is Gtkdial ,

Re: Output Widgets

2013-10-09 Thread Nicola Fontana
Il Mon, 7 Oct 2013 20:19:36 +0800 (SGT) Mahesh Chaudhari mahesh.chaudh...@ymail.com scrisse: Output widget in the sense , user is informed (e.g. by changing widget's color) about some system events not user provides input (e.g button press, mouse clicks) in short I wanted to represent an

Re: Updating GUI during long operation

2013-04-26 Thread Nicola Fontana
Il Fri, 26 Apr 2013 02:24:01 -0700 Kip Warner k...@thevertigo.com scrisse: On Thu, 2013-04-25 at 22:18 -0700, Simon Feltman wrote: Similarly, use Gdk.threads_add_idle instead of GObject.idle_add for scheduling GUI updates from worker threads. The necessity of these is still somewhat

Re: Cross-compilation of glib2 on win32/win64: glibconfig.h

2012-10-14 Thread Nicola Fontana
Il Sat, 13 Oct 2012 19:47:32 +0200 Nicola Fontana n...@entidi.it scrisse: Hi all, I'm cross-compiling the GTK+ toolchain with mingw-w64 to win32 and win64 platforms. Cairo fails in the cairo-gobject component in win64 mode and I strongly *suspect* this is due to a wrong glibconfig.h

Cross-compilation of glib2 on win32/win64: glibconfig.h

2012-10-13 Thread Nicola Fontana
Hi all, I'm cross-compiling the GTK+ toolchain with mingw-w64 to win32 and win64 platforms. Cairo fails in the cairo-gobject component in win64 mode and I strongly *suspect* this is due to a wrong glibconfig.h (infact it is the same as the one installed for win32, and I think this cannot be

Re: GtkFileChooserButton::file-set

2012-10-04 Thread Nicola Fontana
Il Thu, 4 Oct 2012 02:00:39 +0200 Rafał Mużyło galtge...@gmail.com scrisse: On Thu, Oct 04, 2012 at 12:33:24AM +0200, Nicola Fontana wrote: Il Wed, 3 Oct 2012 23:28:23 +0200 Rafał Mużyło galtge...@gmail.com scrisse: but the change on cancel was recently fixed in bug . in regard

GtkFileChooserButton::file-set

2012-10-03 Thread Nicola Fontana
I need to catch when the file has changed in a GtkFileChooserButton. I thought connecting to file-set was enough but this signal is not emitted when the user cancels (although bug 555351 does not agree [1]). Here is the proof: #include gtk/gtk.h int main(int argc, char **argv) { GtkWidget

Re: GtkFileChooserButton::file-set

2012-10-03 Thread Nicola Fontana
Il Wed, 3 Oct 2012 23:28:23 +0200 Rafał Mużyło galtge...@gmail.com scrisse: On Wed, Oct 03, 2012 at 10:23:12PM +0200, Nicola Fontana wrote: I need to catch when the file has changed in a GtkFileChooserButton. I thought connecting to file-set was enough but this signal is not emitted when

Re: gtkrbtree core dump

2012-09-30 Thread Nicola Fontana
Il Sun, 30 Sep 2012 06:37:12 -1000 (HST) Roger Davis r...@soest.hawaii.edu scrisse: Has anyone else ever seen this (I found only a couple not especially helpful references on the web), and/or does anyone know what is calling _gtk_rbtree_insert_after()? It isn't me, at least not directly, and

Re: gtkrbtree core dump

2012-09-30 Thread Nicola Fontana
Il Sun, 30 Sep 2012 08:48:20 -1000 (HST) Roger Davis r...@soest.hawaii.edu scrisse: I was wondering about that, but unfortunately my code does not explicitly use any GtkTree* objects! Is there any way to search the documentation efficiently to determine which object types are inheriting from

Re: Not understanding the g_type_from_name() behaviour

2012-05-13 Thread Nicola Fontana
Il giorno Sun, 13 May 2012 10:37:16 +0200 Marc Balmer m...@msys.ch ha scritto: I have a (hopefully) basic question. g_type_from_name() does not behave as I would it expect to behave: When I call it with e.g. GtkButton, I get GTK_TYPE_BUTTON. But when I call it with GtkFrame, it returns 0

Re: GtkCellRendererState comparison

2012-04-20 Thread Nicola Fontana
Il giorno Fri, 20 Apr 2012 09:53:33 +0430 Bijan Binaee bijanb...@gmail.com ha scritto: hi once i compile my code i got following a warning how can I fix it? gtksourcefoldcellrenderer.c:331:14: warning: comparison between 'GtkCellRendererState' and 'enum anonymous' [-Wenum-compare] here

Re: memory lead while using Glib regexp

2012-03-06 Thread Nicola Fontana
Il giorno Fri, 2 Mar 2012 11:00:46 +0800 (CST) Xi Yang jianding...@163.com ha scritto: Hi, everyone! I use Glib's regular expression in a cycle, and find a rapid memory consumption increase. Did I forget to release anything? Thanks a lot! A working example would be better. Anyway,

Re: [Win32] Hidden window cannot be shown more than once

2011-06-17 Thread Nicola Fontana
Il giorno Fri, 17 Jun 2011 11:56:12 -0500 Michael Cronenworth m...@cchtml.com ha scritto: Michael Cronenworth on 06/17/2011 11:46 AM wrote: My callbacks were of return type void. Changing them to gboolean and returning TRUE makes the window appear upon the second call. It seems in Win32 the

Re: [Win32] Hidden window cannot be shown more than once

2011-06-17 Thread Nicola Fontana
Il giorno Fri, 17 Jun 2011 13:09:07 -0500 Michael Cronenworth m...@cchtml.com ha scritto: Nicola Fontana on 06/17/2011 12:29 PM wrote: AFAICT there is no such difference between platforms: the documentation explicitely requires a gboolean [1]. I think your program was working on Linux only

Re: How to get a widget from its parent of parent(...) by name?

2010-06-09 Thread Nicola Fontana
Il giorno Wed, 9 Jun 2010 14:54:07 +0200 Tadej Borovšak tadeb...@gmail.com ha scritto: Hello. Thank you, I'm sorry for that I didn't explain the problem clearer. What I meant is that there is no similar function of 'glade_get_widget_tree(widget)'. At the context where should call

Re: Default values for spin buttons in Glade

2010-04-24 Thread Nicola Fontana
Il giorno Sat, 24 Apr 2010 06:26:03 + dfg dfg abx...@msn.com ha scritto: Can someone tell me how to set up a default value for a spin button in Glade? The adjustment generated by glade has the following properties: property name=value.../property property name=lower.../property property

Re: Question about modal dialog in gtk application

2010-04-14 Thread Nicola Fontana
Il giorno Wed, 14 Apr 2010 14:27:21 -0700 silverburgh silverburgh.me...@gmail.com ha scritto: Can you please help me what happens if I use 'gtk_set_transient_for to mark it modal to only one window' under the hood. Normally (as far as what I know), there is 1 gtk main thread listen for all

Re: g_test_trap_fork() fails on g_return_...

2010-02-24 Thread Nicola Fontana
Il giorno Mon, 8 Feb 2010 23:17:52 +0100 Nicola Fontana n...@entidi.it ha scritto: #include glib.h #include stdlib.h static void dummy(void) { g_return_if_reached(); } static void test_trap_fork(void) { if (g_test_trap_fork(0, G_TEST_TRAP_SILENCE_STDERR)) { dummy

g_test_trap_fork() fails on g_return_...

2010-02-08 Thread Nicola Fontana
Hi all, I'd like to sanitize my library by passing invalid values to GObject properties. I built a test case with g_test_trap_fork() to trap eventual segmentation faults, so far without success. I tracked down the problem to this case: #include glib.h #include stdlib.h static void dummy(void)

Re: Should gtk_widget_draw be un-depreicated?

2009-12-05 Thread Nicola Fontana
Il giorno Fri, 04 Dec 2009 15:01:25 -0600 Harry Coin hc...@quietfountain.com ha scritto: The only answer I can think of to retain the ability to time most accurately, starting the moment that the image has been drawn is to use gtk_widget_draw right after setting the pixbuf. If

Re: Crash processing g_object_new arguments

2009-11-09 Thread Nicola Fontana
Il giorno Mon, 09 Nov 2009 03:24:04 -0500 Braden McDaniel bra...@endoframe.com ha scritto: Clearly the Address ... out of bounds looks fishy; but I'm just not seeing what could be a problem there; and I'm wondering if gdb isn't just messing with me. The call site for

Re: trauma spliting source into multiple files and applying autotools

2009-07-22 Thread Nicola Fontana
Il giorno Wed, 22 Jul 2009 17:20:06 +1000 Mick mickh...@bigpond.net.au ha scritto: src/Makefile.am -- bin_PROGRAMS = nuchimp nuchimp_SOURCES = \ callback.c callback.h \ main.c main.h AM_CPPFLAGS = $(GTK_CFLAGS)

Re: An 'oldie' question... GtkCList anyone?

2009-01-27 Thread Nicola Fontana
On Tue, 27 Jan 2009 12:38:09 -0200 John Coppens j...@jcoppens.com wrote: char *bff, str[4]; bff = strdup(abc|def|ghi|etc); Just to show bff has to freed later splitline(bff, str); This puts pointers into str to each of the substrings (at the start and

Re: An 'oldie' question... GtkCList anyone?

2009-01-27 Thread Nicola Fontana
On Tue, 27 Jan 2009 19:08:30 -0200 John Coppens j...@jcoppens.com wrote: On Tue, 27 Jan 2009 17:02:32 +0100 Nicola Fontana n...@entidi.it wrote: gtk_clist_append appends only 1 row, so that shouldn't be the problem. The elements in the str[] array correspond to cells, the number is defined

Re: Question about Callback

2009-01-11 Thread Nicola Fontana
On Sun, 11 Jan 2009 12:42:41 +0100 Rudolfo Pinewood rudolfo.pinew...@googlemail.com wrote: I have several togglebuttons, that are all registered to call one specific function (ApplyFlags). In this function I actually don't know which button was activated. My attempt was giving each

Re: Gio memory management

2008-10-14 Thread Nicola Fontana
On Tue, 14 Oct 2008 17:41:13 +0200 Damien Caliste [EMAIL PROTECTED] wrote: Hello, Le 14/10/2008, nico [EMAIL PROTECTED] a écrit : And here is the source code of the program: http://yojik.shtooka.net/gio.c I didn't run nor check extensively the program but maybe there is a memory leak

Re: Gio memory management

2008-10-14 Thread Nicola Fontana
On Tue, 14 Oct 2008 18:03:05 +0200 nico [EMAIL PROTECTED] wrote: Thank you Nicola, And you're also g_freeing a GFileInfo, which is a GObject. Try to use g_object_unref() instead. Ciao When I use g_object_unref() instead of g_free(file_info); I've got this error :

Re: gtkmm and autoconf

2008-10-03 Thread Nicola Fontana
On Fri, 03 Oct 2008 11:00:35 +0200 Murray Cumming [EMAIL PROTECTED] wrote: or this might be better: AM_CPPFLAGS = $(MYAPP_CFLAGS) onwindow_LDADD = $(MYAPP_LIBS) I don't know the technical difference (I always seen preprocessing and compilation in the same step), but is not AM_CXXFLAGS a

Re: gtk_icon_theme_load_icon very slow

2008-10-01 Thread Nicola Fontana
On Wed, 01 Oct 2008 13:51:39 +0200 Adolfo González Blázquez [EMAIL PROTECTED] wrote: The problem is that gtk_icon_theme_load_icon takes about two seconds to load icons from themes which are not standard [2]. I mean, if the user use a theme with 256x256 icons, the load of 5 icons

Re: Finding a widget in a Glade interface

2008-08-03 Thread Nicola Fontana
On Sun, 03 Aug 2008 19:10:37 + dhk [EMAIL PROTECTED] wrote: Is gtk_container_get_children() suppose to return a list of all children including children of children down to the last leaf or just the immediate children? I only seem to get the immediate children. Will

Re: Finding a widget in a Glade interface

2008-07-31 Thread Nicola Fontana
On Thu, 31 Jul 2008 11:07:34 + dhk [EMAIL PROTECTED] wrote: Jim George wrote: I wasn't a fan of keeping the GladeXml object around due to the resources it used. Even though it's not as efficient as storing pointer, I wish I could just traverse up and down the the object tree for my

Re: Histogram and other statistical graphs

2008-04-23 Thread Nicola Fontana
On Wed, 23 Apr 2008 12:29:27 +0200 Roberto Mantovani - AL [EMAIL PROTECTED] wrote: I need to write a program that displays some statistical values so I would know if there are libraries fot GTK+ to draw histograms and other statistical rapresentations. There is also goffice, the graph library

Signal propagation with g_signal_emit_valist()

2007-09-25 Thread Nicola Fontana
Hi all, I've the following function: void propagate_valist (GSList *children, guint signal_id, GQuark detail, va_list var_args) { GSList *child = children; while (child) { if (G_IS_OBJECT (child-data))