Re: How do you write common codes for GObject?

2017-09-04 Thread Andrea Zagli via gtk-list
use new macros if you don't need back compatibility Il giorno lun 04 set 2017 16:03:55 CEST, Kouhei Sutou ha scritto: Hi, We need to write common codes for GObject like the followings: #define GTK_TYPE_WIDGET (gtk_widget_get_type ()) #define GTK_WIDGET(widget) (G_TYPE_CH

gtk-doc and gobject-introspection without gobject?

2017-06-11 Thread Andrea Zagli via gtk-list
can gtk-doc and gobject-introspection be used for a library that don't have gobjects? i have a library that is only a set of utility functions (that use glib/gtk/etc): can i use gtk-doc and/or gobject-introspection? thanks in advance ___ gtk-list

gtk-doc no main xml generated

2017-06-07 Thread Andrea Zagli via gtk-list
i followed the tutorial to enable my library to build gtk-doc https://developer.gnome.org/gtk-doc-manual/unstable/ but when i run the first make, gtk-doc doesn't generate the main xml file (DOC_MAIN_SGML_FILE) (as the tutorial says it should do https://developer.gnome.org/gtk-doc-manual/unst

gdatetime values out of range

2017-05-05 Thread Andrea Zagli via gtk-list
is it normal that if i pass values out of range to function g_date_time_new_local it returns a valida date? glib 2.50.3 debian sid try this code: it returns 2017-03-02, instead i expected NULL #include int main (int argc, char *argv[]) { GDateTime *gdt; gchar *str;

Re: strange mouse scroll behavior

2015-07-25 Thread Andrea Zagli
Il giorno sab 18 lug 2015 10:01:59 CEST, Andrea Zagli ha scritto: from a few days, on debian sid, i have a strange mouse wheel scroll behavior it seems that is a problem of "gnome/gtk" applications, because it happens on epiphany but not on iceweasel, or in nautilus and in gedit

strange mouse scroll behavior

2015-07-18 Thread Andrea Zagli
from a few days, on debian sid, i have a strange mouse wheel scroll behavior it seems that is a problem of "gnome/gtk" applications, because it happens on epiphany but not on iceweasel, or in nautilus and in gedit but not in emacs i try to explain: if a widget, with scroll bars, got the foc

gnotification under win32

2015-05-08 Thread Andrea Zagli
gnotification works under win? i get a segfault on g_application_send_notification (GLib-GObject-CRITICAL **: g_object_new: assertion 'G_TYPE_IS_OBJECT (object_type)' failed) or i did't uderstand how use it? i tried with this code (i also tried without gtkapplication, but only with gappl

gnode and introspection

2014-11-23 Thread Andrea Zagli
i have a library (the same as thet thread before) that have a method that returns a gnode but when it is introspected by g-ir-scanner i got Warning: Confi: confi_get_tree: return value: Invalid non-constant return of bare structure or union; register as boxed type or (skip) how must i anno

[MAYBE SOLVED] Re: introspection

2014-11-22 Thread Andrea Zagli
Il giorno ven 21 nov 2014 22:43:44 CET, Daniel Espinosa ha scritto: For internal I means, you are using in C code in your programs; but not in scripts written in, for example, in python. If you plan to call methods in libconfi from scripts or Vala, you'll need annotations or wrapping to provide

Re: introspection

2014-11-21 Thread Andrea Zagli
Il giorno ven 21 nov 2014 14:13:33 CET, Daniel Espinosa ha scritto: I've forgot you are using GI not Vala bindings, then no meta information could be used. You should use GI Anottations. Your library is internal or to be used by scripts written, for example, in phython? what do you mean with "

Re: introspection

2014-11-20 Thread Andrea Zagli
Il giorno gio 20 nov 2014 22:06:15 CET, Daniel Espinosa ha scritto: I found in your GIR file, it don't detect (for example) confi_new() as a function of Confi object and it is not introspectable. Also, all functions are "free" no related to any GObject. Then you haven't provided enough informatio

Re: introspection

2014-11-20 Thread Andrea Zagli
n and objects name collisions. but is it mandatory to make introspection works? El 19/11/2014 05:13, "Andrea Zagli" escribió: [...] ___ gtk-list mailing list gtk-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-list

introspection

2014-11-19 Thread Andrea Zagli
i made a very little library === #ifndef __LIBCONFI_H__ #define __LIBCONFI_H__ #include #include #include G_BEGIN_DECLS #define TYPE_CONFI (confi_get_type ()) #define CONFI(obj)

convert gtktable to gtkgrid

2014-09-23 Thread Andrea Zagli
i have many glade files made for gtk2 with gtktable in gtk3 gtktable is deprecated in favour of gtkgrid is there an easy way to convert gtktable to gtkgrid? thanks in advance ___ gtk-list mailing list gtk-list@gnome.org https://mail.gnome.org/mailman/

Re: [SOLVED] Re: gtk3 (3.13.5) under windows with semi transparent window border

2014-08-18 Thread Andrea Zagli
Il giorno dom 17 ago 2014 00:33:09 CEST, narcisse doudieu siewe ha scritto: Hello Andrea, could you explain me how to build Gtk+3.13.5 under windows?  best regards i use packages from msys2 http://msys2.github.io/ http://sourceforge.net/projects/msys2/ _

[SOLVED] Re: gtk3 (3.13.5) under windows with semi transparent window border

2014-08-16 Thread Andrea Zagli
Il giorno gio 07 ago 2014 11:24:26 CEST, Andrea Zagli ha scritto: i'm trying gtk+3 3.13.5 under windows, with msys2 adwaita theme looks very nice under windows; and at this point gtk+ seems very stable also under windows but i got windows with semi transparent border and title what

Re: gtk3 (3.13.5) under windows with semi transparent window border

2014-08-11 Thread Andrea Zagli
Il giorno gio 07 ago 2014 11:27:49 CEST, Ignacio Casal Quinteiro ha scritto: Ciao Andrea, in msys2 we just added the rgba support. Did you just update gtk right now? (it was added a couple of hours ago) About evince, any chance you can provide a pull request adding evince to the msys2 repo? http

Re: gtk3 (3.13.5) under windows with semi transparent window border

2014-08-07 Thread Andrea Zagli
to the msys2 repo? https://github.com/Alexpux/MINGW-packages/ yes i'll try i start with libgxps On Thu, Aug 7, 2014 at 11:24 AM, Andrea Zagli wrote: i'm trying gtk+3 3.13.5 under windows, with msys2 adwaita theme looks very nice under windows; and at this point gtk+ seems very s

gtk3 (3.13.5) under windows with semi transparent window border

2014-08-07 Thread Andrea Zagli
i'm trying gtk+3 3.13.5 under windows, with msys2 adwaita theme looks very nice under windows; and at this point gtk+ seems very stable also under windows but i got windows with semi transparent border and title what could it be? thanks in advance and thanks for your efforts with gtk+ unde

Re: gtk3 win32 customize default theme

2014-07-04 Thread Andrea Zagli
Il giorno mer 07 mag 2014 11:51:47 CEST, LRN ha scritto: On 07.05.2014 13:34, Andrea Zagli wrote: how can i customize the default win32 theme without rebuilt gtk3? The same way you change GTK+-3.x theme on other platforms. Edit %LOCALAPPDATA%/gtk-3.0/gtk.css and if i want to change it for

Re: [SOLVED] gtk3 win32 customize default theme

2014-05-12 Thread Andrea Zagli
Il giorno mer 07 mag 2014 11:51:47 CEST, LRN ha scritto: On 07.05.2014 13:34, Andrea Zagli wrote: how can i customize the default win32 theme without rebuilt gtk3? The same way you change GTK+-3.x theme on other platforms. Edit %LOCALAPPDATA%/gtk-3.0/gtk.css ok it works thanks a lot

gtk3 win32 customize default theme

2014-05-07 Thread Andrea Zagli
how can i customize the default win32 theme without rebuilt gtk3? particularly i want to enable alternate rules in gtktreeview thanks in advance ___ gtk-list mailing list gtk-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-list

Re: g_time_zone under windows

2014-04-11 Thread Andrea Zagli
Il giorno gio 10 apr 2014 17:58:33 CEST, Andrea Zagli ha scritto: [...] i'm using glib 2.32.1; ASAP i'll try most recent version with glib 2.36.1 it works ___ gtk-list mailing list gtk-list@gnome.org https://mail.gnome.org/mailman/li

g_time_zone under windows

2014-04-10 Thread Andrea Zagli
i didn't understand how g_time_zone works under windows if i call g_date_time_new_now_local i get greenwich time (for me 1 hour behind, and today 2 hours because in daylight saving) try this little test GTimeZone *tz; tz = g_time_zone_new (NULL); g_printf ("g_date_time_new_now %s\n", g_dat

retrieve gtkcellrenderer attribute

2013-10-01 Thread Andrea Zagli
as the object how can i retrieve a gtkcellrenderer attribute? setted with gtk_tree_view_column_new_with_attribute thanks in advance ___ gtk-list mailing list gtk-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-list

Re: g_app_info_launch_default_for_uri doesn't work?

2012-12-03 Thread Andrea Zagli
Il giorno lun 03 dic 2012 13:05:45 CET, Andrea Zagli ha scritto: [...] UPDATE: under gnu/linux it works perfectly (glib 2.32.4) ___ gtk-list mailing list gtk-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-list

g_app_info_launch_default_for_uri doesn't work?

2012-12-03 Thread Andrea Zagli
i'm trying to use the function as object, but if i ask http://address> it returns that there isn't an application registered for this type of file if i ask file:///c:\install.ini it return that the uri isn't supported what am i doing wrong? my environment is: windows vista, mingw/msys, glib 2

Re: gtk3 under windows crash always

2012-05-07 Thread Andrea Zagli
Il giorno lun 07 mag 2012 17:32:21 CEST, Fan Chun-wei ha scritto: Hi Andrea, I think it would be the best for you if you downgrade to Cairo-1.10.2, which you could obtain the Win32 binaries from http://www.gtk.org/download/win32.php. It seems to me when I was trying out Cairo-1.12.x there

gtk3 under windows crash always

2012-05-07 Thread Andrea Zagli
i'm trying to use gtk3-demo under windows vista (i tried also under windows xp pro) but it crash every time i run it for example if i double click con gtk3-demo.exe it crash every time, often with the error "(gt3-demo.exe:time>): glib-error **: gmem.c:230: failed to allocate 208 bytes" if i

Re: error building gtk 2.24.7 under mingw/msys

2011-11-06 Thread Andrea Zagli
Il giorno gio 03 nov 2011 17:44:48 CET, Andrea Zagli ha scritto: Il giorno gio 03 nov 2011 14:10:23 CET, Earnie ha scritto: Andrea Zagli wrote: i would like to build gtk under mingw/msys because i want to debug gtkprintoperation, but i get the following error make[3]: Leaving directory

Re: error building gtk 2.24.7 under mingw/msys

2011-11-03 Thread Andrea Zagli
Il giorno gio 03 nov 2011 14:10:23 CET, Earnie ha scritto: Andrea Zagli wrote: i would like to build gtk under mingw/msys because i want to debug gtkprintoperation, but i get the following error make[3]: Leaving directory `/home/a.zagli/gtk+-2.24.7/gtk' /gtk-update-icon-cache --force --i

error building gtk 2.24.7 under mingw/msys

2011-11-03 Thread Andrea Zagli
i would like to build gtk under mingw/msys because i want to debug gtkprintoperation, but i get the following error make[3]: Leaving directory `/home/a.zagli/gtk+-2.24.7/gtk' /gtk-update-icon-cache --force --ignore-theme-index\ --source builtin_icons stock-icons > gtkbui

GtkTreeViewColumn not translated

2011-10-24 Thread Andrea Zagli
i have a GtkBuilder file made with glade 3.8.1 the problem is that only GtkTreeViewColumn headers are not translated; they are regularly inside *.po and *.gmo what could it be the "bug"? thanks in advance ___ gtk-list mailing list gtk-list@gnome.o

resize a gtkcombobox

2011-10-24 Thread Andrea Zagli
i have a gtkcombobox with a gtktreemodel i initially fill the gtktreemodel with some strings, but while running the application these strings change but the gtkcombobox remains of the width of the longest of these strings and not of the width of the longest currently present in the model

[SOLVED] Re: GtkTreeModelFilter on GtkTreeModelSort

2011-10-01 Thread Andrea Zagli
Il giorno mer 28 set 2011 13:10:23 CEST, Thomas Jollans ha scritto: On 27/09/11 17:52, Andrea Zagli wrote: can i have a GtkTreeView based on GtkTreeModelFilter based on a GtkTreeModelSort? i tried but when i click on a column header i get "invalid cast from `GtkTreeModelFilte

GtkTreeModelFilter on GtkTreeModelSort

2011-09-27 Thread Andrea Zagli
can i have a GtkTreeView based on GtkTreeModelFilter based on a GtkTreeModelSort? i tried but when i click on a column header i get "invalid cast from `GtkTreeModelFilter' to `GtkTreeSortable'" thanks in advance ___ gtk-list mailing list gtk-list

gtkbuilder and a custom widget under windows

2011-05-15 Thread Andrea Zagli
i made a very simple custom widget (a library) that is gtkbin subclass, and it works but... under gnu/linux it works perfectly, but under windows i couldn't load a gtkbuilder xml file that contains the declaration of my widget i made some test: - if i load with g_module the library after g_

change print settings inside begin-print

2010-10-04 Thread Andrea Zagli
as the object (i mean the GtkPrintSettings of the GtkPrintOperation passed to the signal) does it work? i have tried but it doesn't seem to work i want to change, for examples the number of copies, inside the signal and not before calling gtk_print_operation_run because i want to print the

printers list

2010-10-03 Thread Andrea Zagli
is there a way with gtk to get the printers list installed on a system? thanks in advance ___ gtk-list mailing list gtk-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-list

Re: csv (comma separated value) file

2009-08-03 Thread Andrea Zagli
Il giorno lun 03 ago 2009 18:03:43 CEST, Andrea Zagli ha scritto: i didn't find nothing about to manage (read/write) csv files with glib do you know about something that i didn't find? otherwise i might develop it i found that libgda have a csv parser [1] i'll try in the ne

Re: csv (comma separated value) file

2009-08-03 Thread Andrea Zagli
Il giorno lun 03 ago 2009 18:45:28 CEST, Tristan Van Berkom ha scritto: On Mon, Aug 3, 2009 at 12:03 PM, Andrea Zagli wrote: i didn't find nothing about to manage (read/write) csv files with glib do you know about something that i didn't find? Currently its pretty

csv (comma separated value) file

2009-08-03 Thread Andrea Zagli
i didn't find nothing about to manage (read/write) csv files with glib do you know about something that i didn't find? otherwise i might develop it thanks in advance ___ gtk-list mailing list gtk-list@gnome.org http://mail.gnome.org/mailman/listinfo/

Re: [SOLVED] on windows xp gtkrc error if utf8

2009-07-22 Thread Andrea Zagli
Il giorno mer 22 lug 2009 14:07:54 CEST, Tadej Borovšak ha scritto: > if the file is utf8 i received the following error when i run gtk-demo I doubt it being UTF-8 was the core problem here, but simply that the syntax was wrong? MS Windows software tends to put BOM into UTF-8 files, with all t

on windows xp gtkrc error if utf8

2009-07-22 Thread Andrea Zagli
i installed mingw, msys and gtk+ bundle package on a pc with windows xp then i created the gtkrc file to use the windows theme if the file is utf8 i received the following error when i run gtk-demo e:\mingw\etc\gtk-2.0\gtkrc:1: error: unexpected character `\357', expected keyword - e.g. `styl

mouse wheel events

2009-07-15 Thread Andrea Zagli
i have a widget that is a gtkbin; inside there is a gtkscrolledwindow i want to intercept scroll-event from my widget without pass it to the internal gtkscrolledwindow i set widget_class->scroll_event and GDK_BUTTON_PRESS_MASK but the scroll-event goes always to the gtkscrolledwindow and no

Re: Generating and printing a report

2008-08-13 Thread Andrea Zagli
Il giorno dom 10 ago 2008 12:11:37 CEST, "Marco Rocco" ha scritto: Hello, for my application i would generate a report similar to this: http://tinyurl.com/5e3t8b and after i would to print it. How can i do to generate this report (what libraries, what functions, tutorial...etc...) ? look at

Re: Generating and printing a report

2008-08-11 Thread Andrea Zagli
Il giorno dom 10 ago 2008 12:11:37 CEST, "Marco Rocco" ha scritto: Hello, for my application i would generate a report similar to this: http://tinyurl.com/5e3t8b and after i would to print it. How can i do to generate this report (what libraries, what functions, tutorial...etc...) ? look at

Re: Set Allignment of GtkComboBox Columns

2007-07-19 Thread Andrea Zagli
Il giorno ven, 06/07/2007 alle 06.05 -0700, ibrar ahmed ha scritto: > I created combo box with multiple columns, like in first column there > is pixbuf and string and other columns have only data string. But > problem is that columns of combobox are not well alligned. If some > entry have maximum s

Re: How to get alignment in treeview

2007-01-15 Thread Andrea Zagli
Il giorno lun, 15/01/2007 alle 20.06 +0700, Hariyanto ha scritto: > I using gtktreeview with 3 column to display some data. > I set alignment Center in header column with > gtk_tree_view_column_set_alignment(). > And I set alignment data with g_object_set (renderer, "xalign", 1.0, NULL); > > Ho

Re: GtkComboBox style property appears-as-list

2006-10-25 Thread Andrea Zagli
Il giorno dom, 15/10/2006 alle 10.45 +0330, Mohsen Saboorian ha scritto: > 1. Why the property "appears-as-list" of GtkComboBox is read only? A > user may want to have a scroll bar near a large list. I've noticed > that PyGTK has this property changeable: > http://www.pygtk.org/docs/pygtk/class-gtk

widgets repository

2006-02-28 Thread Andrea Zagli
is there somewhere a repository of custom widgets??? ___ gtk-list mailing list gtk-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-list

GtkComboBox

2006-01-14 Thread Andrea Zagli
is there a way to replace gtkcombobox dropdown menu with a gtktreeview? ___ gtk-list mailing list gtk-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-list