Re: Introspection data generation error in evince (autotools vs meson)

2018-09-07 Thread Emmanuele Bassi via gtk-app-devel-list
../libview/ev-page-cache.c > ../libview/ev-pixbuf-cache.c > ../libview/ev-print-operation.c > ../libview/ev-stock-icons.c > ../libview/ev-timeline.c > ../libview/ev-transition-animation.c > ../libview/ev-view.c > ../libview/ev-view-accessible.c > ../libview/ev-view-curso

Introspection data generation error in evince (autotools vs meson)

2018-09-06 Thread Iñigo Martínez via gtk-app-devel-list
stock-icons.h ../libview/ev-view.h ../libview/ev-view-presentation.h /home/imartinez/Development/gnome/evince/_build/libview/ev-view-type-builtins.h ``` As you can also see, meson doesn't use libtool to assist in the creation of the introspection data. It also appends some libraries/depende

Re: No protocol specified error

2017-11-04 Thread Lokesh Chakka
Dear Emmanuele, Sorry sir... NO NO NO. A Big NO. I have already spent four years for developing the application I am working. If I have to adopt that approach, I have to spend another one year which I can't afford Any ways, xhost +si:localuser:root solved my problem. Thanks & Regards -- Lokesh

Re: No protocol specified error

2017-11-04 Thread Emmanuele Bassi
On 4 November 2017 at 06:08, Lokesh Chakka wrote: > Dear Felipe, > > I have refereed the link. As the application I am writing needs root > privileges, I must use sudo ./a.out. No other option. Of *course* there are other options for you: this is software development, not surgery. The appropriat

Re: No protocol specified error

2017-11-04 Thread Lokesh Chakka
okay... after some more search I found here xhost si:localuser:root is doing the job. But is there a way to achieve this programatically in C language ? Thanks & Regards -- Lokesh Chakka, Mobile: 9731023458 On Sat, Nov 4, 2017 at 2:53 PM, Lokesh

Re: No protocol specified error

2017-11-04 Thread Lokesh Chakka
Hello, To add, I found gksudo might be helpful. I found issue mentioned here: https://bugs.launchpad.net/ubuntu/+source/ubuntu-themes/+bug/1723422 and work around https://bugs.launchpad.net/ubuntu/+source/sane-backends/+bug/1724078/comments/4 after that, I found the following issue: https://ubun

Re: No protocol specified error

2017-11-03 Thread Lokesh Chakka
Dear Felipe, I have refereed the link. As the application I am writing needs root privileges, I must use sudo ./a.out. No other option. Dear Bruggemann, I have gone through zenmap as suggested by you. But it is not going to work as zenmap itself is failing to launch. ===

Re: No protocol specified error

2017-10-22 Thread Felipe Borges
whatever man On Sat, Oct 21, 2017 at 2:25 AM, David Margerison wrote: > On 20 October 2017 at 22:33, Felipe Borges wrote: >> >> Running GUI applications as root is hardly discouraged. > > The English language can be surprising, so I write this short note to help > avoid confusion. > > 400 years

Re: No protocol specified error

2017-10-21 Thread David Margerison
On 20 October 2017 at 22:33, Felipe Borges wrote: > > Running GUI applications as root is hardly discouraged. The English language can be surprising, so I write this short note to help avoid confusion. 400 years ago, your sentence above would be correct. But the meaning of the word "hardly" has

Re: No protocol specified error

2017-10-20 Thread Felipe Borges
w, "destroy", G_CALLBACK(gtk_main_quit), >> > NULL); >> > gtk_main(); >> > return 0; >> > } >> > >> > I compiled it using gcc simple.c `pkg-config --cflags gtk+-3.0 --libs` >> > if I do ./a.out, GUI is showing up. &g

Re: No protocol specified error

2017-10-20 Thread Lokesh Chakka
window = gtk_window_new(GTK_WINDOW_TOPLEVEL); > > gtk_widget_show(window); > > g_signal_connect(window, "destroy", G_CALLBACK(gtk_main_quit), NULL); > > gtk_main(); > > return 0; > > } > > > > I compiled it using gcc simple.c `pkg-config --cfl

Re: No protocol specified error

2017-10-20 Thread Felipe Borges
EL); > gtk_widget_show(window); > g_signal_connect(window, "destroy", G_CALLBACK(gtk_main_quit), NULL); > gtk_main(); > return 0; > } > > I compiled it using gcc simple.c `pkg-config --cflags gtk+-3.0 --libs` > if I do ./a.out, GUI is showing

No protocol specified error

2017-10-20 Thread Lokesh Chakka
gtk_main(); return 0; } I compiled it using gcc simple.c `pkg-config --cflags gtk+-3.0 --libs` if I do ./a.out, GUI is showing up. but if I do "sudo ./a.out", I am seeing the following error : $ sudo ./a.out No protocol specified U

Re: Preferred height/width error message

2017-07-24 Thread Osmo Salomaa
ing the implied gtk_widget_get_preferred_width/height(). The only thing I have learned is that the amount of those error messages depends on the amount of rows in the tree view. If I have one row, I get one error message, if a thousand rows, maybe twenty error messages. Other than that it's mystery. I

Re: Preferred height/width error message

2017-07-24 Thread Mike Martin
Anyone? On 23 July 2017 at 18:30, Stefan Salewski wrote: > On Sun, 2017-07-23 at 17:46 +0100, Mike Martin wrote: > > Gtk version 3.22 > > I see a similar message for evince pdf viewer whenever I use it since > some months. But I have no idea for the reason unfortunately > > (evince:5623): Gtk-WA

Re: Preferred height/width error message

2017-07-23 Thread Stefan Salewski
On Sun, 2017-07-23 at 17:46 +0100, Mike Martin wrote: > Gtk version 3.22 I see a similar message for evince pdf viewer whenever I use it since some months. But I have no idea for the reason unfortunately (evince:5623): Gtk-WARNING **: Allocating size to EvSidebar 0x12dd6c0 without calling gtk_wid

Preferred height/width error message

2017-07-23 Thread Mike Martin
I am trying to eliminate this warning ie: (membership_gui.pl:4729): Gtk-WARNING **: Allocating size to GtkWindow 0x44d4260 without calling gtk_widget_get_preferred_width/height(). How does the code know the size to allocate? (membership_gui.pl:4729): Gtk-WARNING **: Allocating size to GtkWindow 0

Creating custom widget linker error

2017-06-23 Thread Rúben Rodrigues
Hi, I'm trying to create a custom widget like in this example: http://djcj.org/gtk/ The example works, but when i try to make something similar i get a linker error, and don't understand why! Error: make all Building target: ConsolaGrafica Invoking: Cross GCC Linker arm-linux-gnu

librsvg returns error = "Unrecognized image file format"

2017-05-31 Thread Al Harper
_pixbuf_loader_new_with_mime_type (mime_type, error); and gdk_pixbuf_loader_new_with_mime_type (const char *mime_type, GError **error) The routine gdk_pixbuf_loader_new_with_mime_type is failing because it is unable to determine the image type at the URL. It's returning error "Unrecognized imag

Gtk+3.22 compile app error

2017-04-22 Thread Rúben Rodrigues
Hi guys, I'm working with raspbian and the version installed by apt-get install is older, so i download and compile 3.22 version and installed. Now when i'm trying to compile my application i get this error: - undefined reference to `pango_fc_font_map_config_changed'. The newe

Re: on screen keyboard error with gtk_main_do_event

2017-03-18 Thread Rúben Rodrigues
Someone could help me? Thanks On 16-03-2017 16:54, Ruben ROdrigues wrote: > HI guys, > > I have a on-screen keyboard that was made for gtk2. Now in gtk3 i get > this errors: > > Gdk-CRITICAL **: gdk_window_get_user_data: assertion 'GDK_IS_WINDOW > (window)' failed > > Gdk-CRITICAL **: gdk_wind

on screen keyboard error with gtk_main_do_event

2017-03-16 Thread Rúben Rodrigues
HI guys, I have a on-screen keyboard that was made for gtk2. Now in gtk3 i get this errors: Gdk-CRITICAL **: gdk_window_get_user_data: assertion 'GDK_IS_WINDOW (window)' failed Gdk-CRITICAL **: gdk_window_get_display: assertion 'GDK_IS_WINDOW (window)' failed Gdk-WARNING **: Event with typ

Re: what should I do if I got "Stream has outstanding operation" error.

2017-03-01 Thread KC
2017-03-02 2:29 GMT+08:00 KC : > Hi, > > I use g_output_stream_printf() to send command to a server > and use g_data_input_stream_read_line() to read data back. > > Sometime I got error message "Stream has outstanding operation". > What should I do if I detect th

what should I do if I got "Stream has outstanding operation" error.

2017-03-01 Thread KC
Hi, I use g_output_stream_printf() to send command to a server and use g_data_input_stream_read_line() to read data back. Sometime I got error message "Stream has outstanding operation". What should I do if I detect this error ? Do I need to flush() the IO stream after g_output_str

Re: Error unknown type name ‘GtkSearchEntry’

2017-02-27 Thread Emmanuele Bassi
;> >> I *strongly* encourage you to port your code to GTK+ 3.x, though. >> >> Ciao, >> Emmanuele. >> >>> Às 13:09 de 27/02/2017, Colomban Wendling escreveu: >>>> Le 27/02/2017 à 10:51, Rúben Rodrigues a écrit : >>>>> Hi guys, >&g

Re: Error unknown type name ‘GtkSearchEntry’

2017-02-27 Thread Rúben Rodrigues
s done 6 years ago. > > I *strongly* encourage you to port your code to GTK+ 3.x, though. > > Ciao, > Emmanuele. > >> Às 13:09 de 27/02/2017, Colomban Wendling escreveu: >>> Le 27/02/2017 à 10:51, Rúben Rodrigues a écrit : >>>> Hi guys, >>>&

Re: Error unknown type name ‘GtkSearchEntry’

2017-02-27 Thread Emmanuele Bassi
code to GTK+ 3.x, though. Ciao, Emmanuele. > Às 13:09 de 27/02/2017, Colomban Wendling escreveu: >> Le 27/02/2017 à 10:51, Rúben Rodrigues a écrit : >>> Hi guys, >>> >>> Someone who knows this error? >>> >>> DescriptionResource

Re: Error unknown type name ‘GtkSearchEntry’

2017-02-27 Thread Rúben Rodrigues
Yes, gtk 2.. So, i can't use libwheather with gtk-2.0? Thanks Às 13:09 de 27/02/2017, Colomban Wendling escreveu: > Le 27/02/2017 à 10:51, Rúben Rodrigues a écrit : >> Hi guys, >> >> Someone who knows this error? >> >> DescriptionResourcePath

Re: Error unknown type name ‘GtkSearchEntry’

2017-02-27 Thread Colomban Wendling
Le 27/02/2017 à 10:51, Rúben Rodrigues a écrit : > Hi guys, > > Someone who knows this error? > > DescriptionResourcePathLocationType > unknown type name ‘GtkSearchEntry’ConsolaGraficaline 39, > external location: Too old GTK? GtkSearchEntry

Error unknown type name ‘GtkSearchEntry’

2017-02-27 Thread Rúben Rodrigues
Hi guys, Someone who knows this error? DescriptionResourcePathLocationType unknown type name ‘GtkSearchEntry’ConsolaGraficaline 39, external location: /opt/x-tools/rootfs/rpi/usr/include/libgweather-3.0/libgweather/location-entry.h C/C++ Problem Thanks --- Este

Re: how shoul I solve error "The Procedure entry Point deflateSetHeader could not be located in the Dynamic link: ...\gtk3.6.4\bin\libgio-2.0-0.dll"

2017-01-12 Thread Gabriele Greco
> > > > "The Procedure entry Point deflateSetHeader could not be located in the > Dynamic link: > ...\gtk3.6.4\bin\libgio-2.0-0.dll". > > You miss libz dll, I find useful to build win32 environment to use "depends.exe" (http://www.dependencywalker.com/) to find similar problems. Please note that y

how shoul I solve error "The Procedure entry Point deflateSetHeader could not be located in the Dynamic link: ...\gtk3.6.4\bin\libgio-2.0-0.dll"

2017-01-12 Thread Mahnaz afsharpour
e "Library Directories": ../gtk3.6.4/lib In Tab "Linker"->"Input" ->"Additional Dependencies": I wrote all of ".lib" filename. in system environment variable I added path of gtk and gtk/bin. But When I want to run a simple application pr

RE: Unexpected error during malloc

2014-08-17 Thread Joël Krähemann
Seems to be debian specific and as uncommenting some lines in main function it runs as expected. best regards Joël ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Unexpected error during malloc

2014-08-16 Thread Joël Krähemann
Hi, what could cause the following error: GLib (gthread-posix.c): Unexpected error from C library during 'malloc': Resource temporarily unavailable. Aborting. Abgebrochen please take a look at http://sf.net/p/ags You have to checkout from subversion in order to get error message. Th

Re: Error

2013-12-30 Thread Stefan Sauer
hi, I don't see anything gtk-doc specific here. You probably want to ask on the gtk-devel list. In order to fix one of the issues install Xvfb as the error suggests, Stefan On 09/01/2013 09:39 PM, Weiller Ronfini wrote: > weiller@debian:~/Downloads/gtk+-3.8.4$ make check > Making

***MEMORY-ERROR***

2013-11-25 Thread Joël Krähemann
exited] [Thread 0x7fffd1ffc700 (LWP 14902) exited] [Thread 0x7fffc2ffd700 (LWP 14907) exited] [Thread 0x7fffd17fb700 (LWP 14903) exited] ***MEMORY-ERROR***: ags[14888]: GSlice: assertion failed: sinfo->n_allocated > 0 Program received signal SIGABRT, Aborted. [Switching to Thread 0x7f

Getting X error on reordering columns in TreeView

2013-10-21 Thread Jeffrey Barish
in() app = ReorderableColumns() app.run() As soon as I try to drag a column, the program crashes with: The program 'reordercols.py' received an X Window System error. This probably reflects a bug in the program. The error was 'BadMatch (invalid parameter attributes)'. (Details: ser

Error

2013-09-02 Thread Weiller Ronfini
oads/gtk+-3.8.4/gdk' Testsuite summary for gtk+ 3.8.4 ==== # TOTAL: 1 # PASS:  1 # SKIP:  0 # XFAIL: 0 # FAIL:  0 # XPASS: 0 # ERROR: 0 ==

Gdk-CRITICAL error with GtkStatusIcon tooltip

2012-11-29 Thread Piotr Sipika
Hi All, I'm having some issues with a GtkStatusIcon, specifically, displaying its tooltip. I create the icon fine and set its tooltip text using gtk_status_icon_set_tooltip_text(). I make the icon visible using gtk_status_icon_set_visible(icon, TRUE) and it shows on the system tray. When I put th

Re: ghelp error

2012-10-27 Thread Arnel A. Borja
On Friday, 26 October, 2012 07:19 PM, Rudra Banerjee wrote: Dear friends, I know probably it has nothing to do with gtk, but I am trying to write the documentation of my gtk-related project. I am using the gnome-doc-utils method http://developer.gnome.org/gnome-doc-make/unstable/migrating.html.

ghelp error

2012-10-26 Thread Rudra Banerjee
Dear friends, I know probably it has nothing to do with gtk, but I am trying to write the documentation of my gtk-related project. I am using the gnome-doc-utils method http://developer.gnome.org/gnome-doc-make/unstable/migrating.html.en My app-manual.xml in help/C/ is just a copy of what is give

Re: Unusual GTK error message

2012-07-21 Thread David Buchan
Thanks! From: Emmanuele Bassi To: David Buchan Cc: gtk-app-devel-list list Sent: Saturday, July 21, 2012 7:43 AM Subject: Re: Unusual GTK error message Hi; This was a bug that was recently fixed in gtk+: https://bugzilla.gnome.org/show_bug.cgi?id

Re: Unusual GTK error message

2012-07-21 Thread Emmanuele Bassi
Hi; This was a bug that was recently fixed in gtk+: https://bugzilla.gnome.org/show_bug.cgi?id=671817 The fix will be in the next stable release of gtk+. A workaround is to create the .local/share directory: mkdir -p .local/share Ciao, Emmanuele. On Friday, 20 July 2012, David Buchan wrot

Re: Unusual GTK error message

2012-07-21 Thread David Buchan
Frank wrote: "You don't have a .local directory in /root" Should I? From: Frank Cox To: gtk-app-devel-list@gnome.org Cc: David Buchan Sent: Saturday, July 21, 2012 1:10 AM Subject: Re: Unusual GTK error message On Fri, 20 Jul 2012 18:3

Re: Unusual GTK error message

2012-07-20 Thread Frank Cox
On Fri, 20 Jul 2012 18:37:01 -0700 (PDT) David Buchan wrote: > Any ideas? A google search comes up completely dry (!! when did that happen > last? weird) as does a Yahoo search. Dead end, it would seem. I'm certainly > not at all keen to muck around in /root/. You don't have a .local directory in

PS: Unusual GTK error message

2012-07-20 Thread David Buchan
Additional info: The first two errors appear when I press the "Open" button in the file chooser dialog. The third error appears when I close my program completely. Dave ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome

Unusual GTK error message

2012-07-20 Thread David Buchan
Background info: My program uses a file chooser dialog. I compiled it for the first time today on a 64-bit machine with Ubuntu 12.04 64-bit with gtk-3-dev. My program is run as root. I've been using it extensively on 32-bit machine with libtgtk2.0-dev and Ubuntu 10.04 with no errors. When I use

Re: error in compile gtk3 in OSX

2012-01-02 Thread Luis Lopez
Apple's gcc doesn't seems to have the -x option that is passed from g-ir-scan. As a workaround, I use "make V=1" to see what is executed and I copy-paste the full command excluding the "-x". After doing this I can run make again with no errors. 2011/12/6 xiaobo

error pop-up square?

2011-12-25 Thread Gary Kline
been working on my project entire day. almost ready to break for awhile, but before i do, i need to ask if regular, plain gtk has a popup square with [[OK]] or return/enter graphic. i have examples but they don't seen to build don my off-the-shelf linux. yesterday i installed a slew of 'guile'

Re: error in compile gtk3 in OSX

2011-12-06 Thread Stefan Sauer
On 12/06/2011 11:32 AM, xiaobo wrote: > 在 2011-12-6 下午6:00 時, Stefan Sauer 寫到: > >> On 12/06/2011 02:47 AM, xiaobo wrote: >>> Hi, All >>> >>> I got a error when I compile gtk3 in OSX . >>> This is log. >>> >>> . >>&g

Re: error in compile gtk3 in OSX

2011-12-06 Thread xiaobo
在 2011-12-6 下午6:00 時, Stefan Sauer 寫到: > On 12/06/2011 02:47 AM, xiaobo wrote: >> Hi, All >> >> I got a error when I compile gtk3 in OSX . >> This is log. >> >> . >> . >> CCLD libgtk-3.la >> CC queryimmodules.o

Re: error in compile gtk3 in OSX

2011-12-06 Thread Stefan Sauer
On 12/06/2011 02:47 AM, xiaobo wrote: > Hi, All > > I got a error when I compile gtk3 in OSX . > This is log. > > . > . > CCLD libgtk-3.la > CC queryimmodules.o > CCLD gtk-query-immodules-3.0 > GISCAN Gtk-3.0.gir > Usage: g-i

error in compile gtk3 in OSX

2011-12-05 Thread xiaobo
Hi, All I got a error when I compile gtk3 in OSX . This is log. . . CCLD libgtk-3.la CC queryimmodules.o CCLD gtk-query-immodules-3.0 GISCAN Gtk-3.0.gir Usage: g-ir-scanner [options] sources g-ir-scanner: error: no such option: -x make[4]: *** [Gtk-3.0.gir] Error

Re: gtk_tree_view_column_set_cell_data_func gives GTK-CRITICAL error

2011-11-30 Thread James Steward
On 30/11/11 20:04, Tadej Borovšak wrote: Hi. 2011/11/30 James Steward: col = gtk_tree_view_insert_column_with_attributes ( GTK_TREE_VIEW (view), -1, "Title", renderer, "text", i, "strikethrough", j,

Re: gtk_tree_view_column_set_cell_data_func gives GTK-CRITICAL error

2011-11-30 Thread Tadej Borovšak
Hi. 2011/11/30 James Steward : > col = gtk_tree_view_insert_column_with_attributes ( >                GTK_TREE_VIEW (view), >                -1, >                "Title", >                renderer, >                "text", i, >                "strikethrough", j, >                "background", k, >

gtk_tree_view_column_set_cell_data_func gives GTK-CRITICAL error

2011-11-29 Thread James Steward
yout)' failed Can anyone spot what I've done wrong? There's no compiler warnings, just this runtime error. -- James. ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

gtk+-2.12.12 on DirectFB-1.4.9, gtk-demo error

2011-07-20 Thread Kim, Jungrae
I cross complied gtk+-2.12.12 on DirectFb-1.4.9. cross compile process is zlib-1.2.5 -> libpng-1.2.46 -> freetype-2.4.5 -> fontconfig-2.8.0 -> kergoth-tslib-e17263e -> DirectFB-1.4.9 -> DirectFB examples -> glib-2.28.6 -> atk-1.30.0 -> pixman-0.22.2 -> cairo-1.10.2 -> pango-1.28.4 -> gtk+-2.12.

Re: GTK Error handling..

2010-11-24 Thread Jaroslav Šmíd
uot;popup" window. That part is complete, but considering the error handling, I'm reconsidering how I'm doing this.It looks like I'll probably create a new process to deal with the "popup". ___ gtk-app-de

Re: GTK Error handling..

2010-11-24 Thread Champ Clark III [Softwink]
for all the responses. The only information that needs to be passed is from the "monitor loop" (the alert information) to the "thread" that creates the "popup" window. That part is complete, but considering the error handling, I'm reconsidering how I&#x

Re: GTK Error handling..

2010-11-24 Thread Dov Grobgeld
s, because WindowsAPI takes care of this. GTK on > X-based systems does not, even if that is not too much work (just catch X > server error, discard all X id's for every top level windows, pixmaps, ..., > and then when it gets reconnected, create them again and in the meanwhile > use

Re: GTK Error handling..

2010-11-24 Thread Jaroslav Šmíd
applications still works, because WindowsAPI takes care of this. GTK on X-based systems does not, even if that is not too much work (just catch X server error, discard all X id's for every top level windows, pixmaps, ..., and then when it gets reconnected, create them again and in the mean

GTK Error handling..

2010-11-23 Thread Champ Clark III [Softwink]
Hello all! I have a multi-threaded application written in C that I'm a bit stumped on. It's not the 'multithreaded' portion of the code I'm having issues with. That seems to be functional. It's the GTK error and warning handling.

Re: gtk filechooser dialog error

2010-10-01 Thread James Morris
and >> save_dialog() which return a gchar * pointer to the filename. >> >> But what is hapennig is that am able  Open/Save  first time wihout any >> problem  but  if I try to open filechooser dialog window  again it is not >> providing me  the filechooser dialog w

Re: gtk filechooser dialog error

2010-09-30 Thread Nagaraja
filechooser dialog window again it is not providing me the filechooser dialog window any more. More over when I try to open second time it is giving the below error. Can any one here suggest me how do I implement( Desing gtk GUI) gtk app for File Operation. your valuable suggest and help is

gtk filechooser dialog error

2010-09-29 Thread Nagaraja
giving the below error. Can any one here suggest me how do I implement( Desing gtk GUI) gtk app for File Operation. your valuable suggest and help is greatly appriciated. Thanks in advance. Nagaraja. Enter the file save (recorder:3747): Gtk-CRITICAL **: gtk_widget_grab_default: assertion

Re: GCancellable Error Code

2010-04-13 Thread A. Walton
On Mon, Apr 12, 2010 at 4:00 PM, Nader Morshed wrote: > Hey, I'm wondering if anyone knows what/where I can find the error code name > for an asynchronous operation being canceled? http://library.gnome.org/devel/gio/stable/gio-GIOError.html Namely G_IO_ERROR_CANCELLED. -A. Wa

GCancellable Error Code

2010-04-12 Thread Nader Morshed
Hey, I'm wondering if anyone knows what/where I can find the error code name for an asynchronous operation being canceled? I've looked through the docs/headers but was unable to find the information. This would just be used for something like the following, where the user is only noti

gdk_event_send_client_message causing fatal IO error "resource temporarily unavailable"

2010-03-24 Thread Matthew Allen
return gdk_event_send_client_message(Ev, Hnd); } This seems to work ok, but shortly afterwards I get: myapp: Fatal IO error 11 (Resource temporarily unavailable) on X server :0.0. Which is obviously not what I want... am I getting the wrong GdkNativeWindow? Btw I'm running under ubuntu, not sure wh

Re: gtk_builder_add_from_file error handling

2010-01-13 Thread David Nečas
umentation should be > redundant when it may cause errors the fact it is not. > > This is the case of GError and for > instance gtk_ui_manager_add_ui_from_file/string > and gtk_builder_add_from_file/string. I'm sorry but this is nonsense. 1) The problem was not whether you had

Re: gtk_builder_add_from_file error handling

2010-01-13 Thread Emmanuele Bassi
e API reference and to high-level documentation. the fact that a non-NULL GError must be freed using the corresponding GError free function is documented in great detail and that documentation linked by every function in a gtk-doc-generated API reference and part of the behavior of the framework. the A

Re: gtk_builder_add_from_file error handling

2010-01-13 Thread Gabriele Greco
> > > The proper handling of GErrors is described in great detail in the > GError documentation. > > I don't think it is reasonable to explain this in the documentation of > every function that uses GError to report errors as there are almost 80 > of them just in Gtk+ (and over 400 in GLib, and man

Re: gtk_builder_add_from_file error handling

2010-01-13 Thread David Nečas
On Wed, Jan 13, 2010 at 04:48:29PM +0100, Gabriele Greco wrote: > ... I've found there are a lot > of other sources in the net where a GError is freed with g_free, I think > improving the documentation of the functions that use a GError as input > parameter may help programmers do not write wrong c

Re: gtk_builder_add_from_file error handling

2010-01-13 Thread Gabriele Greco
> GError *err = NULL; > > if (!gtk_builder_add_from_file(builder_, "myfile.xml", &err)) { > >if (err) { > > g_free(err); // commenting this solves the crash but other gtk apis > > I don't know gtkmm, but at least in C GErrors are freed with > g_error_free(err). > You are obviously right.

Re: gtk_builder_add_from_file error handling

2010-01-13 Thread Florian Müllner
; g_free(err); // commenting this solves the crash but other gtk apis > // and examples I've found always free error handling > pointers I don't know gtkmm, but at least in C GErrors are freed with g_error_free(err). ___

gtk_builder_add_from_file error handling

2010-01-13 Thread Gabriele Greco
Sorry last message was sent by accident pushing an hotkey while editing... This should be the complete version of my question: I just found that with a builder file with a syntax error my app crashed with: *** glibc detected *** ./packager: double free or corruption (out): 0x09aa33d0 *** I

gtk_builder_add_from_file error handling

2010-01-13 Thread Gabriele Greco
I just found that with a builder file with a syntax error my app crashed with: *** glibc detected *** ./packager: double free or corruption (out): 0x09aa33d0 *** I think I'm using gtkbuilder error handling in the right way and documentation does not suggest my how to use it: GError *err =

RE: Random memory allocation error

2009-12-26 Thread Shawn Bakhtiar
rceforge.net > Subject: Re: Random memory allocation error > > > On Sat, 26 Dec 2009, Shawn Bakhtiar wrote: > > > At what appears to be random locations in a program which runs > > thought 24000 components, and breaking out the formulas in to > > there raw mat

Re: Random memory allocation error

2009-12-26 Thread Allin Cottrell
On Sat, 26 Dec 2009, Shawn Bakhtiar wrote: > At what appears to be random locations in a program which runs > thought 24000 components, and breaking out the formulas in to > there raw material components (formulations table of about > 200,000 formulation lines, I see this e

Random memory allocation error

2009-12-26 Thread Shawn Bakhtiar
At what appears to be random locations in a program which runs thought 24000 components, and breaking out the formulas in to there raw material components (formulations table of about 200,000 formulation lines, I see this error message: malloc: *** error for object 0xe41074: incorrect

GDB error

2009-12-04 Thread Martin Dolezal
I tried in command line with same results (OpenSUSE 64bit). As soon as debugger reach gtk_init() I get error "Cannot find new threads: generic error" I can add detailed output of my gdb if needed. Thanks! ___ gtk-app-devel-list mailing lis

Re: g_object_get_data Programmer error

2009-11-03 Thread Florian Müllner
El mar, 03-11-2009 a las 07:39 -0800, Steve Harrington escribió: > I am trying to use g_object_get_data() to retrieve the GtkWidget * of an > object. Seems simple enough but The attached code doesn't work. I must > have missed something simple but darned if I can see it. Indeed - g_object_get_

g_object_get_data Programmer error

2009-11-03 Thread Steve Harrington
n\" widget not found" ); gtk_dialog_run( GTK_DIALOG(dialog) ); gtk_widget_destroy( dialog ); } } int main( int argc, char *argv[] ) { GError *error=NULL; gtk_init( &argc, &argv ); builder = gtk_builder_new( ); if( gtk_builder_add_from_file( builder, &

RE: GTK runtime error

2009-10-05 Thread Dutta, Abhijit
Thanks Ardhan, I will follow your advice. ~Abhijit > -Original Message- > From: Ardhan Madras [mailto:aj...@knac.com] > Sent: Thursday, October 01, 2009 9:10 PM > To: Dutta, Abhijit > Cc: gtk-app-devel-list@gnome.org > Subject: Re: GTK runtime error > > Hi Dutta

Re: GTK runtime error

2009-10-01 Thread Ardhan Madras
- Ardhan --- abhijit.du...@logica.com wrote: From: "Dutta, Abhijit" To: Subject: GTK runtime error Date: Thu, 1 Oct 2009 16:00:18 +0530 Hi, I am new to GTK. I have downloaded the GTK ver 2.16.6 and compiled it in FC9. While running helloworld (sample from gtk.org) I a

GTK runtime error

2009-10-01 Thread Dutta, Abhijit
Hi, I am new to GTK. I have downloaded the GTK ver 2.16.6 and compiled it in FC9. While running helloworld (sample from gtk.org) I am getting the following error: [...@localhost ~]$ ./helloworld (helloworld:23339): GLib-GObject-CRITICAL **: g_object_get_qdata: assertion `G_IS_OBJECT

Re: Error in gthread.h?

2009-09-30 Thread John Coppens
On Wed, 30 Sep 2009 17:11:19 -0700 "Brian J. Tarricone" wrote: > > So, I'm supposing the install of the compat libraries overwrote the > > includes of the 64 bit version. > > > > If I re-install the (newer) 64 bit version of glib, will the 32 bit > > version remain functional, or do I have to m

Re: Error in gthread.h?

2009-09-30 Thread Brian J. Tarricone
On 09/30/2009 04:57 PM, John Coppens wrote: > On Wed, 30 Sep 2009 16:38:10 -0700 > "Brian J. Tarricone" wrote: > >> That's odd. Are you sure you don't have mixed versions of glib >> installed somehow? > > I was convinced that I hadn't, because I installed both from Slackware > 13.0 (32 and 64bi

Re: Error in gthread.h?

2009-09-30 Thread John Coppens
On Wed, 30 Sep 2009 16:38:10 -0700 "Brian J. Tarricone" wrote: > That's odd. Are you sure you don't have mixed versions of glib > installed somehow? I was convinced that I hadn't, because I installed both from Slackware 13.0 (32 and 64bit). But now I remember compiling Inkscape SVN, and that ne

Re: Error in gthread.h?

2009-09-30 Thread Brian J. Tarricone
have googleearth running, but they may have broken compilation in 64 > bit mode. Shouldn't be a problem. The stuff in /usr/include should be platform independent. The platform specific header file ends up in $(libdir)/glib-2.0/include (presumably you have different lib64/lib32 directories

Re: Error in gthread.h?

2009-09-30 Thread John Coppens
bug. Hard to say. Mmmm... I hadn't realized that this might have something to do with the compatibility libraries I installed a week ago. They installed well, and I have googleearth running, but they may have broken compilation in 64 bit mode. I also received the following: /usr/include/glib-2.0/g

Error in gthread.h?

2009-09-30 Thread John Coppens
Hello people. After a month of switching to 64 bits, I'm still recompiling old software. Most of this goes really very smoothly, but today I hit a snag for which I can't seem to find a solution. I get this error during compilation of my program: /usr/include/glib-2.0/glib/gthread.h: I

Re: Treeview CRITICAL Error

2009-04-30 Thread dhk
he problem. The application window has a notebook with a handful of tabs, each with different tree views on them. The program seems to run fine. However, when the second tab is selected, no matter what the previous tab was, the following three error lines get printed about three times. I us

Re: Treeview CRITICAL Error

2009-04-27 Thread Carlos Pereira
ion window has a notebook with a handful of tabs, each with different tree views on them. The program seems to run fine. However, when the second tab is selected, no matter what the previous tab was, the following three error lines get printed about three times. I use a lot of notebooks and

Treeview CRITICAL Error

2009-04-25 Thread dhk
but so far this has just been an annoyance. Third - the problem. The application window has a notebook with a handful of tabs, each with different tree views on them. The program seems to run fine. However, when the second tab is selected, no matter what the previous tab was, the follow

gdb error

2009-03-29 Thread dhk
When using gdb I get the following error as soon as I hit gtk_init() in may main. (gdb) 60gtk_set_locale (); (gdb) 61gtk_init(&argc, &argv); (gdb) [Thread debugging using libthread_db enabled] Error while reading shared library symbols: Cannot find new threads: gener

Re: drawing area and GPtrArray illogical error

2009-03-22 Thread Soeren Sandmann
frederico schardong writes: > When I click with the mouse on the drawing area the callback > button_pressed is called and the g_print message shows, and when I > move the window the callback expose_event is called and shows its > g_print. The only difference between both g_print is the first word

drawing area and GPtrArray illogical error

2009-03-21 Thread frederico schardong
static gboolean expose_event (GtkWidget *a, GdkEventButton *event, GtkDesenho *desenho) { guint i, x, y, tamH, tamV, x1, y1; GdkPoint points[5]; // Loop through the coordinates, redrawing them onto the drawing area. for (i = 0; i < desenho->parray->len; i = i + 4) { x =

Re: Glib::ustring, error while reading an utf-8 encoded file

2009-01-21 Thread Murray Cumming
On Tue, 2009-01-20 at 14:56 +0100, Bastien Dalla Piazza wrote: > > 1: as-is: "First line: plain text." > 1: through Glib::ustring: "First line: plain text." > 2: as-is: "deuxième ligne: des accents ici et là..." You are lucky that that worked. It's unlikely to work with multi-byte UTF-8 character

Glib::ustring, error while reading an utf-8 encoded file

2009-01-20 Thread Bastien Dalla Piazza
Hi everybody, I don't have experience about charset issues so I tried the following to experiment: (it's in C++ using glibmm and giomm but I guess the problem is not related to that, it's just I don't understand something.) * #include #include #include #incl

running error

2009-01-07 Thread xu jiang
Hi, When running a gtk program, the following error occurs. (g1:1790): GLib-GObject-WARNING **: /build/buildd/glib2.0-2.16.6/gobject/gsignal.c:1669: signal `contacts_add' is invalid for instance `0x80befb0' I will appreciate any hints and suggest

  1   2   3   >