Re: Tutorial for writing widgets in Gtk3

2018-07-29 Thread Nicola Fontana
Il Sun, 29 Jul 2018 18:19:25 +0100 Göran Hasse scrisse: > I have have those applications. But they just use stock widgets. > > I don't find an example creating a new widget from scratch... > > Eg how to write your own widget. I have my widget in the tarfile and this is > what > I want to be

Re: Tutorial for writing widgets in Gtk3

2018-07-29 Thread Nicola Fontana
Il Thu, 26 Jul 2018 08:42:26 +0100 Göran Hasse scrisse: > Hello! > > I try to write a custom widget in Gtk3. I study the source for other widgets > but I find no totorial > for how to write a widget in Gtk3. (There was for Gtk2 - but they are not of > any use anymore...). Hi, in case you

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: Bug in gobject-introspection

2018-05-07 Thread Nicola Fontana
Il Sun, 6 May 2018 09:47:05 -0300 Colomban Wendling <lists@herbesfolles.org> scrisse: > Le 06/05/2018 à 09:05, Nicola Fontana a écrit : > > Il Sat, 07 Apr 2018 06:25:52 +0200 Arun Gurung <aru...@anubis-ca.com> > > scrisse: > > > >> Hi, > >

Re: Bug in gobject-introspection

2018-05-06 Thread Nicola Fontana
Il Sat, 07 Apr 2018 06:25:52 +0200 Arun Gurung scrisse: > Hi, > > I have gobject-introspection-1.50.0-1.el7.x86_64 and gobject- > introspection-devel-1.50.0-1.el7.x86_64. I tried to use a program like > "menulibre" and "devedeng" and the developers say there is a bug in >

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: Pango Fc Shaper gives incorrect geometry information

2017-09-13 Thread Nicola Fontana
Il Thu, 04 Sep 2014 16:34:29 +0100 Simon Cozens scrisse: > ... > For instance, the code below on OS X (using the pango-basic-coretext module) > returns the correct answer, 7.070312. On Linux, it reports the width of a > 12pt > Gentium "z" as 7.00pts. The width of

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: GTK's interfaces and language bindings

2017-07-20 Thread Nicola Fontana
Il Tue, 18 Jul 2017 22:00:52 +0200 Stefan Salewski scrisse: > ... > So the second parameter is of type GtkStyleProvider, which is an > interface. GtkCssProvider provides that interface, so we can pass a > variable of that type. GTK_STYLE_PROVIDER() is basically only a cast, a

Re: GObject introspection and cairo?

2017-07-15 Thread Nicola Fontana
Il Sat, 15 Jul 2017 13:47:22 +0200 Stefan Salewski <m...@ssalewski.de> scrisse: > On Tue, 2017-05-09 at 17:05 +0200, Nicola Fontana wrote: > > ... > > > > https://bugzilla.gnome.org/show_bug.cgi?id=743364 > > > > No idea how long does it ta

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: Cross-compiling GTK+, missing icons

2017-05-29 Thread Nicola Fontana
Il Mon, 29 May 2017 12:09:49 +0200 Gerardo Ballabio scrisse: > > if with "style" you mean the GTK+ theme then yes, you need to > > include it separately. > > > > I'm used to cross-compile for Windows on Linux and lately (since > > 3.14.0 IIRC) the adwaita theme

Re: Cross-compiling GTK+, missing icons

2017-05-28 Thread Nicola Fontana
Il Sun, 28 May 2017 18:27:46 +0200 Vilem Otte scrisse: > ... > I'm not even sure you can include whole style for Gtk+ 3.x inside the > library (although I might be wrong here!). > ... Hi Vilem, if with "style" you mean the GTK+ theme then yes, you need to include it

Re: GObject introspection and cairo?

2017-05-09 Thread Nicola Fontana
Il Tue, 09 May 2017 16:39:10 +0200 Stefan Salewski scrisse: > I am currently working again on the gobject introspection based > bindings for Nim language (https://github.com/StefanSalewski/nim-gi). > > And I wonder why there is only minimal support for cairo -- >

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: gobject

2016-10-12 Thread Nicola Fontana
Il Thu, 13 Oct 2016 01:41:03 +1100 Timothy Ward scrisse: > Is there a good tutorial or reference material on gtk gobject "c" > coding. > > 1) Explaining in detail the whole process from what should be in > header files and source files, structure declarations, boiler plate >

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: Parent receiving child's button press event

2016-08-31 Thread Nicola Fontana
Il Tue, 30 Aug 2016 17:48:34 -0700 Jim Heald scrisse: > Thank you so much! It's literally these return True things that keep > throwing me off. > > Do you have a suggestion of somewhere I can read about all of these > conventions? > ... They are not conventions, they

Re: Drag and drop widgets

2016-08-29 Thread Nicola Fontana
Il Sun, 28 Aug 2016 16:23:49 -0700 Jim Heald scrisse: > So the only problem with this is the Gdl doesn't seem to be implemented in > Python unfortunately. Any other ideas? I do not use python but, from the configure.in of GDL [1], it seems GObject introspection support

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: GTK3 on Darwin

2016-05-08 Thread Nicola Fontana
Il Sun, 8 May 2016 10:28:43 +0100 Andrea Giammarchi scrisse: > If I understand correctly you're saying I shouldn't even file a bug if the > issue is not on Linux, right? Can you point me at any place where this > could be discussed? I'm sure having the ability to

Re: GTK graphics library + scientific framework

2016-03-23 Thread Nicola Fontana
Il Tue, 22 Mar 2016 18:20:44 +0100 Félix Piédallu scrisse: > Hi there ! > I'm currently using LabView in my lab to get data from instruments and > print 1D/2D/3D plots. > (http://pix.toile-libre.org/?img=1458659028.png is a good example) > I'd love to rewrite this

Re: Run a GTK application without desktop environment

2016-03-19 Thread Nicola Fontana
Il Thu, 17 Mar 2016 22:00:03 -0700 "Jasper St. Pierre" scrisse: > I highly recommend against this. A window manager should be around to > manage windows, since a lot of functionality to applications is > provided by the WM. Having it missing could cause strange bugs. > >

Re: Needed information about GTK+

2016-02-20 Thread Nicola Fontana
Il Sat, 20 Feb 2016 02:50:31 -0200 Diogo Campos scrisse: > Hi, > > I'm building a Free Software crowdfunding campaign, and GTK+ is one of the > candidates to be benefited. Hi, I think gtk-devel-list would be a better place for your questions: CCing to it. > This

Re: Needed information about GTK+

2016-02-20 Thread Nicola Fontana
Il Sat, 20 Feb 2016 02:50:31 -0200 Diogo Campos scrisse: > Hi, > > I'm building a Free Software crowdfunding campaign, and GTK+ is one of the > candidates to be benefited. Hi, I think gtk-devel-list would be a better place for your questions: CCing to it. > This

Re: Events in custom widgets

2016-01-14 Thread Nicola Fontana
Il Thu, 14 Jan 2016 08:41:46 +0100 Jozef Molnar scrisse: > Dear subscribers, > > I want to create a custom widget derived from either GtkDrawingArea or > GtkLayout (still do not know, which is better for my purpose - I need some > advice). > Nevertheless, if I derive

Re: Outdated win32 bundle

2015-06-19 Thread Nicola Fontana
Il Fri, 19 Jun 2015 00:24:31 +0100 Emmanuele Bassi eba...@gmail.com scrisse: as Daniel pointed out, cross-compiling the introspection data is currently not possible Hi Emmanuele, with the current code base it is not possible but I managed to crossbuild gobject-introspection months ago with

Re: Outdated win32 bundle

2015-06-19 Thread Nicola Fontana
Il Fri, 19 Jun 2015 00:24:31 +0100 Emmanuele Bassi eba...@gmail.com scrisse: as Daniel pointed out, cross-compiling the introspection data is currently not possible Hi Emmanuele, with the current code base it is not possible but I managed to crossbuild gobject-introspection months ago with

Re: Outdated win32 bundle

2015-06-19 Thread Nicola Fontana
Il Fri, 19 Jun 2015 10:04:43 +0100 Emmanuele Bassi eba...@gmail.com scrisse: https://bugzilla.gnome.org/show_bug.cgi?id=658126#c25 I also have an installer with Lua bindings (based on gi) that seems to work, at least on wine. The approach is far from straight but I was honestly

Re: Outdated win32 bundle

2015-06-19 Thread Nicola Fontana
Il Fri, 19 Jun 2015 10:04:43 +0100 Emmanuele Bassi eba...@gmail.com scrisse: https://bugzilla.gnome.org/show_bug.cgi?id=658126#c25 I also have an installer with Lua bindings (based on gi) that seems to work, at least on wine. The approach is far from straight but I was honestly

Re: GTK-doc appears to be missing a struct when generating documentation

2015-04-11 Thread Nicola Fontana
Il Fri, 10 Apr 2015 09:15:31 +1200 Koz Ross koz.r...@runbox.com scrisse: I've been trying to get GTK-doc to make documentation for my file, which can be viewed at https://notabug.org/koz.ross/libudp/src/master/headers/udp.h Basically, for some reason, the udp_results_s struct (line 70 or so

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: GHashTable strange behavior

2015-03-06 Thread Nicola Fontana
Il Wed, 4 Mar 2015 20:44:04 +0200 Stathis Gkotsis stathisgot...@hotmail.com scrisse: Hi all, I am facing some strange behavior with GHashTable. When I use g_hash_table_insert to insert the same key twice, it does not return FALSE, but TRUE: Hi, in your example you are not inserting the

Re: Is Unicode character set a problem when compiling GTK sources?

2015-02-18 Thread Nicola Fontana
Il Tue, 17 Feb 2015 19:09:58 + John Emmas j...@creativepost.co.uk scrisse: [...] Windows Unicode uses precisely 2 bytes to represent each character. But UTF-8 can use anywhere between 1 byte and 4 bytes [...] Just a side note: Windows uses UTF-16 encoding which is not fixed-length

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: GObject introspection for cairo

2015-01-23 Thread Nicola Fontana
Il Thu, 22 Jan 2015 09:50:00 -0800 Jasper St. Pierre jstpie...@mecheye.net scrisse: Cairo-GObject provides access to enums, but it won't automatically get you great cairo bindings. It might actually get you 90% of the way there, though, and I'd be interested seeing how far you can run with

GObject introspection for cairo

2015-01-22 Thread Nicola Fontana
Hi all, I need introspection access to a type actually not exported in cairo-1.0.gir, and in fact that gir file exports only a fraction of the types available. The patches [1] and [2] addresses this issue: any chance to get them merged before the next release? Ciao. -- Nicola [1]

Re: GObject introspection for cairo

2015-01-22 Thread Nicola Fontana
Il Thu, 22 Jan 2015 16:28:19 + Emmanuele Bassi eba...@gmail.com scrisse: if you have patches, please attach them on Bugzilla. Patches attached to bug #743364: https://bugzilla.gnome.org/show_bug.cgi?id=743364 Ciao. -- Nicola ___ gtk-devel-list

Re: GObject introspection for cairo

2015-01-22 Thread Nicola Fontana
Il Thu, 22 Jan 2015 16:28:19 + Emmanuele Bassi eba...@gmail.com scrisse: Cairo is not a GObject library, so introspection is fairly useless. Hi Emmanuele, the cairo source tree includes cairo-gobject [1] that already wraps enums and structs in GObject style. I just browsed the code and

Re: use gio with serialport

2014-09-23 Thread Nicola Fontana
Il Tue, 23 Sep 2014 15:48:45 +0800 Matrix zhangch...@cgmobile.com.cn scrisse: the qustion is how read the buf as line by line ? ... and then i use g_buffered_input_stream_set_buffer_size to change the buffer size to 1 byte Hi, if you are looking for a 1 byte termination (as you are when

Re: A bug or a screw up?

2014-05-07 Thread Nicola Fontana
Il Wed, 07 May 2014 09:22:48 -0400 Chris Moller mol...@mollerware.com scrisse: Is there something new I'm missing? It didn't used to work that way. Hi, I just removed what seems wrong to me (cairo_identity_matrix) and it appears to work the way you want. Ciao. -- Nicola

Re: TreeView/ListStore reordering by DND

2014-03-01 Thread Nicola Fontana
Il Sat, 01 Mar 2014 19:35:08 +0100 Stefan Salewski m...@ssalewski.de scrisse: On Sat, 2014-03-01 at 02:08 +0100, Stefan Salewski wrote: [...] Here is my complete C code: http://www.ssalewski.de/tmp/test.c I inserted these lines: void on_row_inserted(GtkTreeModel *tree_model,

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

Web and gtk-doc integration

2013-09-01 Thread Nicola Fontana
Hi all, I am struggling to get decent integration between web and gtk-doc documentation for quite a while now and silverstripe-gtkdoc [1] is the final result. I wanted to implement the integration on the top of a CMS suitable for generic website development. Furthermore I needed to get this

Re: Composite GtkBuilder template

2013-05-09 Thread Nicola Fontana
Il Sun, 7 Apr 2013 23:50:10 -0400 Matthias Clasen matthias.cla...@gmail.com scrisse: Here is a patch that seems to work ok. The build fails during cross-compilation with: ./extract-strings.exe /home/aur/archlinux/fedora-mingw-w64-gtk3/src/gtk+-3.9.0/gtk/gtklockbutton.ui gtklockbutton.ui.h

Re: Composite GtkBuilder template

2013-05-09 Thread Nicola Fontana
Il Thu, 09 May 2013 15:21:11 +0200 Colomban Wendling lists@herbesfolles.org scrisse: PS: Patch attached. Apparently the patch is missing ;) Holidays required... Ciao. -- Nicola 0001-Include-.ui.h-files-in-dist.patch Description: Binary data

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: Some shortcomings in gtestutils

2013-02-21 Thread Nicola Fontana
Il Thu, 21 Feb 2013 12:31:33 + Simon McVittie simon.mcvit...@collabora.co.uk scrisse: On 21/02/13 11:42, Nicola Fontana wrote: * There is no way to do a make check while cross-compiling, by using wine for example. If you're on a Linux distribution whose Wine packaging sets up

Re: Making GtkEntry::scroll-offset read/write?

2013-02-08 Thread Nicola Fontana
Il Fri, 8 Feb 2013 09:38:44 -0500 Matthias Clasen matthias.cla...@gmail.com scrisse: Would be nice to have such a validating entry subclass in GTK+ itself too; if you are willing to consider a move from C++ to C. I've a custom widget that performs regex validation providing visual feedback

Re: setting a dialog to popup instead of toplevel

2013-02-02 Thread Nicola Fontana
Il Sat, 2 Feb 2013 09:37:53 + Chris Morley chrisinnana...@hotmail.com scrisse: I'm working on the linuxcnc project using Pygtk 2.6- The operator screen I am working on is in fullscreen. When we use gtk.FileChooserDialog(), the menu bars show. What do you mean with menu bars? If that is

Re: setting a dialog to popup instead of toplevel

2013-02-02 Thread Nicola Fontana
Il Sat, 2 Feb 2013 10:52:15 + Chris Morley chrisinnana...@hotmail.com scrisse: Are you referring to the comment about the limitations of using popup rather then toplevel (the window manager ignores it) that doesn't seem to be a big disadvantage that I can see at this time. It also

Re: GObject Destruction

2012-12-19 Thread Nicola Fontana
Il Tue, 18 Dec 2012 21:49:13 +0100 David Nečas y...@physics.muni.cz scrisse: I'm not sure whether multiple executions of dipose() can occur in a single-threaded program (see the source if you can understand). But how would break reference cycles when, for instance, a GtkWindow is destroyed in

Re: GObject Destruction

2012-12-18 Thread Nicola Fontana
Il Tue, 18 Dec 2012 04:57:52 +0100 Günther Wutz andr...@gunibert.de scrisse: I have an Class A, which stores two Integer as properties (say x and y) and an Class B which inherits from A and makes a multidimensional array on the heap with size x*y. In my finalize method i want to free the

Re: GObject Destruction

2012-12-18 Thread Nicola Fontana
Il Tue, 18 Dec 2012 19:46:40 +0100 David Nečas y...@physics.muni.cz scrisse: On Tue, Dec 18, 2012 at 07:19:33PM +0100, Nicola Fontana wrote: I always free dynamic stuff (included allocated memory) in dispose(), not in finalize(), protecting it from double calls. There you should have

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: GTKDOC_DEPS in recent gtk-doc.m4

2011-12-01 Thread Nicola Fontana
On Sun, 20 Nov 2011 22:13:34 +0100 Simon Josefsson si...@josefsson.org wrote: Hi! I'm using gtk-doc in for example GNU Libtasn1 and recently upgraded to the latest gtk-doc.m4 from your git repo, which contains this new piece of code: dnl don't check for glib if we build glib if

Re: GTK+ library access issue?

2011-10-25 Thread Nicola Fontana
Il giorno lun, 24/10/2011 alle 17.59 -0700, David Buchan ha scritto: Interesting. I just tried compiling a simple non-gtk c program: #include stdio.h #include stdlib.h #include math.h int main() { int i; double a =3.14; double c; c = log(a); c = pow(a, i); }

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: Does g_key_file_free() free pointers from g_key_file_get_string()?

2011-06-17 Thread Nicola Fontana
Il giorno Fri, 17 Jun 2011 14:13:32 +0100 Chris Vine ch...@cvine.freeserve.co.uk ha scritto: On Fri, 17 Jun 2011 10:43:24 +0200 Tadej Borovšak tadeb...@gmail.com wrote: Another indicator that returned value should be freed is lack of const modifier on return value. If API docs state:

Re: GTK+ Warning: Can't set a parent on widget which has a parent

2011-06-03 Thread Nicola Fontana
Il giorno Fri, 3 Jun 2011 04:08:22 -0400 Phong Cao phn...@gmail.com ha scritto: Hello everybody, I am trying to write the interface for my music manager using GTK+. The program was compiled successfully. However, when I executed it, the machine returned errors: (dingo_draft:6462):

Re: www.gtk.org now updated but no news!

2011-06-02 Thread Nicola Fontana
Il giorno Thu, 02 Jun 2011 13:14:24 +0100 Martyn Russell mar...@lanedo.com ha scritto: The current failing version is available here: http://www.gtk.org/index-fails.php I tried copying the set up on my test server (curlybeast.net) for the php.ini but I can't reproduce this issue.

Re: Timer start registration breaks the gtk_main()

2011-03-26 Thread Nicola Fontana
Il giorno Sat, 26 Mar 2011 11:38:27 -0700 (GMT-07:00) iko...@earthlink.net ha scritto: Hi, Robert, -Original Message- From: Robert Pearce r...@bdt-home.demon.co.uk Sent: Mar 26, 2011 2:19 AM To: gtk-list@gnome.org Cc: iko...@earthlink.net Subject: Re: Timer start registration

Re: Doubts about creating a new widget

2010-07-12 Thread Nicola Fontana
Il giorno Mon, 12 Jul 2010 14:19:12 +0200 CaStarCo casta...@gmail.com ha scritto: Hello, my name is Andreu and i'm new in this list. I have a doubt about if I should create a new widget or if there is a widget that could supply my needs. I'll describe what I need: I want to make a left

Re: How to get Width and height..

2010-06-16 Thread Nicola Fontana
Il giorno Wed, 16 Jun 2010 15:42:09 +0530 Lohitha R lohith...@globaledgesoft.com ha scritto: Hi all, Is there any way to get the screen resolution(monitor) in gtk..?? If by resolution you mean size in pixels, you could use gdk_screen_get_{width,height}() with the default screen.

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: problem about cross compiling win32 program under linux

2010-06-08 Thread Nicola Fontana
Il giorno Tue, 8 Jun 2010 21:14:59 +0800 Roy Chang acm@gmail.com ha scritto: *I tend to compile win32 gtk program under linux using mingw like this:* i486-mingw32-gcc `pkg-config --libs --cflags gtk+-2.0` -Isoftware/win_gtk_dev/zlib-dev_1.2.4-2_win32/include

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: Pango context in size request

2010-03-24 Thread Nicola Fontana
Il giorno Wed, 24 Mar 2010 19:03:06 + Robert Pearce r...@bdt-home.demon.co.uk ha scritto: Hi group, This is probably a dumb-ass question that I ought to know the answer to, but... I'm building a custom widget which includes some text that needs to be fitted round. To do it right I

Re: Draw on top of a window

2010-03-12 Thread Nicola Fontana
Il giorno Fri, 12 Mar 2010 10:41:04 +0800 Richard Kung richardk...@linpus.com ha scritto: I want to use cairo to draw on top of a window but don't know how to achieve it. [...] g_signal_connect(window, expose-event, G_CALLBACK (on_expose_event), NULL); Using g_signal_connect_after()

  1   2   >