Re: GNOME images not displaying

2010-06-13 Thread Tadej Borovšak
Hello. Looks like I need to write a blog post or something about icon handling in GTK+, since this topic has been quite (un)popular both on mailing lists and IRC ;-) To make things short, "gnome-stock-trash" is not a stock icon, it's a named icon that comes from user selected theme and in order t

Re: VC9 build

2010-06-13 Thread John Emmas
Hello again Tor and thanks for your help so far. This morning, I've returned to building libglib (using Visual C++) after working on something else for a few days. With regard to 3rd party dependencies I've been following the advice on this web page, which lists some libraries that are probably

Re: VC9 build

2010-06-13 Thread Tor Lillqvist
> This morning, everything worked fine until the build got to the gio branch - > which failed, due to unistd.h and sys/wait.h not being present. There was a problem in the VS project files in 224.1, some source file that should be built only on Unix was included by mistak. Simply drop the source

Re: VC9 build

2010-06-13 Thread John Emmas
On 13 Jun 2010, at 12:45, Tor Lillqvist wrote: > > There was a problem in the VS project files in 224.1, some source file > that should be built only on Unix was included by mistak. Simply drop > the source file(s) that don't compile and see if that helps. > Thanks Tor, I'll try that and let y

How to destroy GFile objects?

2010-06-13 Thread Tomasz Jankowski
Hello! What should I do with GFile objects (GFile *) ? What are they, regular GObject objects which I can destroy using g_object_unref() or maybe they're managed internally by GIO? ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://m

Re: How to destroy GFile objects?

2010-06-13 Thread Emmanuele Bassi
On Sun, 2010-06-13 at 20:27 +0200, Tomasz Jankowski wrote: > What should I do with GFile objects (GFile *) ? What are they, regular > GObject objects which I can destroy using g_object_unref() or maybe they're > managed internally by GIO? use g_object_unref(), like any other object. ciao, Emman

Re: How to destroy GFile objects?

2010-06-13 Thread Florian Müllner
El dom, 13-06-2010 a las 20:27 +0200, Tomasz Jankowski escribió: > What should I do with GFile objects (GFile *) ? What are they, regular > GObject objects which I can destroy using g_object_unref() or maybe they're > managed internally by GIO? GFile is an interface which is implemented by various

gtk_window_fullscreen problem

2010-06-13 Thread Alexander Kuleshov
Hello, I need in full screen window functional in my gtk+ application. I try to use gtk_window_fullscreen(GtkWindow* Window): I have function: static void full_screen(MainWin *mw) { gtk_window_fullscreen((GtkWindow*)mw); } When i try to call this function i see error: Gtk-CRITICAL **: gtk_wi

Re: gtk_window_fullscreen problem

2010-06-13 Thread Tadej Borovšak
Hello. > Where MainWin: > typedef struct _MainWin MainWin; > > typedef struct _MainWin > { >    GtkWindow parent; >    GtkWidget* scroll; >    GtkWidget* box; >    GtkWidget *toolbar; >    gboolean full_screen; > }; Looking at this piece of code, I would say that you're creating custom widget, de

Re: gtk_window_fullscreen problem

2010-06-13 Thread Tadej Borovšak
Hi. Try to keep mailing list in loop too. I'm redirecting this back again. 2010/6/14 Alexander Kuleshov : > Yes. > > typedef struct _MainWin MainWin; > typedef struct _MainWinClass MainWinClass; > > #define LOAD_BUFFER_SIZE 65536 > > #define MAIN_WIN_TYPE            (main_win_get_type ()) > #defi

Re: gtk_window_fullscreen problem

2010-06-13 Thread Alexander Kuleshov
Yes. typedef struct _MainWin MainWin; typedef struct _MainWinClass MainWinClass; #define LOAD_BUFFER_SIZE 65536 #define MAIN_WIN_TYPE            (main_win_get_type ()) #define MAIN_WIN(obj)            (G_TYPE_CHECK_INSTANCE_CAST ((obj), MAIN_WIN_TYPE, MainWin)) #define MAIN_WIN_CLASS(kla