Re: Spontaneous background colors in treeview
Andrew Cowie wrote: On Wed, 2007-10-10 at 19:45 -0600, Jeffrey Barish wrote: I believe that the manual is wrong when it says that an arrow appears. One most certainly does appear when you click on the header to sort. Do you have gtk_tree_view_column_set_headers_visible() set to true? That's where the arrow shows up. *(assuming you have a proper Linux distro that maintains GNOME properly and that you are using a sane and maintained theme) AfC San Francisco Sure (it is set in Glade) -- and the headers are visible. But no arrows. This is on Ubuntu 7.04 with the default theme. On another platform, I see arrows but no shading -- exactly the reverse of what I get on Ubuntu. I am satisfied with just the shading on Ubuntu, although I am curious about the discrepancy with your observations. -- Jeffrey Barish ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Re: Logo (was Re: GTK+ Website Review)
Alberto Ruiz wrote: 2007/10/10, Mathias Hasselmann [EMAIL PROTECTED]: Am Mittwoch, den 10.10.2007, 11:08 +0100 schrieb Alberto Ruiz: The light in the middle of the cube (in the center corner) doesn't help to make contrast with the white letters. Tango suggests to use the upper left corner as a light source and I think it would work better. Ok, modified the icon: - gtk-logo1.svg: Just cleaned up the glyphs. - gtk-logo2.svg: The same, but black glyphs. - gtk-logo3.svg: Moved the light source to the upper left corner. - gtk-logo4.svg: Same again, but bright glyphs. I prefer #2 then #1, I don't like #3 or #4 much. I think that we won't find a way to decide if the logo is going to be good or not, since we´re basically stating personal opinions. Why don't we forward this challenge to the gnome-art team guys? Maybe they can came up with a solution that can please us all. That won't happen. You won't find something everyone likes. The best solution is for some people highly involved in the project to just pick one. -- Regards, Martyn ___ gtk-devel-list mailing list gtk-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-devel-list
install gtk in windows 2000
Hi All, I am working on a project to design a gui using gtk in linux . Now i want to do in in window plat form .So please tell me the how to install the all libraries and how to compile the code which I already made in linux and run to see the out put .I do not know any thing in window for gtk .Please tell me in detail .I have to do it very soon so please help me . Thanks in advance . Regards Amit Kumar Bag - Save all your chat conversations. Find them online.___ gtk-list mailing list gtk-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-list
How to disable reading of ~/.config/gtk-2.0 ?
Hi, I am trying to create some automated tests for a GTK app. Naturally I'd like these tests to behave in the same way whoever runs them. Hence I'd like to configure GTK not to read any personal configuration files. I think I've hunted down most of them but it still seems to read the file ~/.config/gtk-2.0/gtkfilechooser. Is there any way to disable the reading of this file (or point it at a standard centralised version instead)? I googled around for an environment variable but didn't find one. Regards, Geoff ___ gtk-list mailing list gtk-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-list
Bug in GtkScrolledWindow or Metacity?
Hi, folks. I've figured out a weird behavior with fullscreen windows used together with GtkScrolledWindow. I've filled a bug: http://bugzilla.gnome.org/show_bug.cgi?id=485472 Could you guys please test the attachment there and confirm if it's a bug in gtk or metacity? I'm asking this because my tests in compiz worked fine. Thanks, -- Jonh Wendell [EMAIL PROTECTED] (MSN / Google Talk) Linux User #114432 https://launchpad.net/~wendell ___ gtk-list mailing list gtk-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-list
Re: install gtk in windows 2000
On Thu, Oct 11, 2007 at 12:19:08PM +0100, amit bag wrote: Hi All, I am working on a project to design a gui using gtk in linux . Now i want to do in in window plat form .So please tell me the how to install the all libraries and how to compile the code which I already made in linux and run to see the out put .I do not know any thing in window for gtk .Please tell me in detail .I have to do it very soon so please help me . Thanks in advance . Did you concider the documentation?! The API? http://www.gtk.org/documentation.html Regards Amit Kumar Bag Mike ___ gtk-list mailing list gtk-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-list
Re: How to disable reading of ~/.config/gtk-2.0 ?
On Thu, Oct 11, 2007 at 01:22:53PM +0200, Geoff Bache wrote: Hi, Hi Geoff, I am trying to create some automated tests for a GTK app. Naturally I'd like these tests to behave in the same way whoever runs them. Hence I'd like to configure GTK not to read any personal configuration files. I think I've hunted down most of them but it still seems to read the file ~/.config/gtk-2.0/gtkfilechooser. Is there any way to disable the reading of this file (or point it at a standard centralised version instead)? I googled around for an environment variable but didn't find one. Export the XDG_CONFIG_HOME environment variable to somewhere else than ~/.config and there you go. http://standards.freedesktop.org/basedir-spec/latest/ Regards, Geoff HTH, Mike ___ gtk-list mailing list gtk-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-list
Re: How to disable reading of ~/.config/gtk-2.0 ?
Export the XDG_CONFIG_HOME environment variable to somewhere else than ~/.config and there you go. Thanks Mike, seems to work fine. Obviously I should have been googling for $HOME/.config instead of ~/.config ... Geoff ___ gtk-list mailing list gtk-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-list
Re: install gtk in windows 2000
I am working on a project to design a gui using gtk in linux . Now i want to do in in window plat form .So please tell me the how to install the all libraries and how to compile the code which I already made in linux and run to see the out put Have you done any kind of development on Windows before? Have you done that in Visual Studio only, or have you done it Unix-like with Makefiles etc? Have you used the Microsoft compiler and other tools on Windows, or gcc? Which of these approaches do you want to use to build your application on Windows? Would cross-compiling from Linux be an option?' Do you in general prefer to do things in small steps so that you understand the details of what is going on, or to use all-in-one approaches that hide the boring details? Without knowing more about what exactly you want to do it's hard to help you. But in general, if you have never done any kind of programming on Windows before, thinking that you will be able to jump straight in and build your GTK+ application for Windows quickly just like that (and then even be able to package it sensibly for distribution to customers, perhaps) is a fallacy. If you haven't considered any kind of portability concerns, even building your application on another POSIX platform might not be straightforward... Did you concider the documentation?! The API? If I read his mail correctly he already has written, or is writing, the application, so presumably knowing the GTK+ API is not the problem. --tml ___ gtk-list mailing list gtk-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-list
gobject inheritance for GtkWindow
Hi, I'm learning GTK+ C API and I would want use _my own_ widget for default window, created by inheritance from GtkWindow (like I do usually with gtkmm). But it does not work. My code is: / window.h / /* ..macro and includes as specified in gobject reference manual.. */ typedef struct _MyWindow MyWindow; typedef struct _MyWindowClass MyWindowClass; struct _MyWindow { GtkWidget* window; GtkWidget* button; }; struct _MyWindowClass { GtkWindowClass parent_class; }; /* ... */ / window.c / #include window.h #include gtk/gtkbutton.h #include gtk/gtkmain.h /* ..prototypes.. */ GType mywindow_get_type(void) { static GType type = 0; if(!type) { static const GTypeInfo info = { sizeof(MyWindowClass), NULL, NULL, (GClassInitFunc) mywindow_class_init, NULL, NULL, sizeof(MyWindow), 0, (GInstanceInitFunc) mywindow_init }; type = g_type_register_static(GTK_TYPE_WINDOW, MyWindow, info, 0); } return type; } static void mywindow_class_init(MyWindowClass* klass) { GtkObjectClass* object_class; GtkWidgetClass* widget_class; object_class = (GtkObjectClass*) klass; widget_class = (GtkWidgetClass*) klass; /* well, actually I do not understand this step */ } static void mywindow_init(MyWindow* self) { g_signal_connect(G_OBJECT(self), delete-event, G_CALLBACK(destroy), NULL); self-button = gtk_button_new_with_label(close); g_signal_connect(G_OBJECT(self-button), clicked, G_CALLBACK(destroy), NULL); gtk_container_add(GTK_CONTAINER(self), self-button); gtk_widget_show(self-button); } GtkWidget* mywindow_new(void) { return GTK_WIDGET( g_object_new(MYWINDOW_TYPE, NULL) ); } /* ..other stuff.. */ It compiles without error nor warning, but at run-time I get: (foo:18259): GLib-GObject-WARNING **: specified instance size for type `MyWindow' is smaller than the parent type's `GtkWindow' instance size (foo:18259): GLib-GObject-CRITICAL **: g_object_new: assertion `G_TYPE_IS_OBJECT (object_type)' failed (foo:18259): Gtk-CRITICAL **: gtk_widget_show: assertion `GTK_IS_WIDGET (widget)' failed How it should be done? Any little tip or even suggested docs/code to read is appreciated. Thanks in advance, s. ___ gtk-list mailing list gtk-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-list
Re: gobject inheritance for GtkWindow
El jue, 11-10-2007 a las 15:05 +0200, Sergio Perticone escribió: struct _MyWindow { GtkWidget* window; GtkWidget* button; }; Typically, you wouldn't want to use a pointer to the parent class in the class definition. Something like struct _MyWindow { GtkWidget window; GtkWidget* button; }; should make it. Claudio -- Claudio Saavedra [EMAIL PROTECTED] ___ gtk-list mailing list gtk-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-list
Re: gobject inheritance for GtkWindow
On Thu, 2007-10-11 at 09:19 -0400, Claudio Saavedra wrote: El jue, 11-10-2007 a las 15:05 +0200, Sergio Perticone escribió: struct _MyWindow { GtkWidget* window; GtkWidget* button; }; Typically, you wouldn't want to use a pointer to the parent class in the class definition. Something like struct _MyWindow { GtkWidget window; GtkWidget* button; }; should make it. Claudio Oh true. sizeof(*my_widget) was obviously smaller than sizeof(GtkWindow)... it was a pointer! I replace GtkWidget* window with GtkWindow window in struct _MyWindow{} and it works! Thanks a lot, s. ___ gtk-list mailing list gtk-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-list
Re: How to disable reading of ~/.config/gtk-2.0 ?
On 10/11/07, Geoff Bache [EMAIL PROTECTED] wrote: Hi, I am trying to create some automated tests for a GTK app. Naturally I'd like these tests to behave in the same way whoever runs them. Hence I'd like to configure GTK not to read any personal configuration files. I think I've hunted down most of them but it still seems to read the file ~/.config/gtk-2.0/gtkfilechooser. Is there any way to disable the reading of this file (or point it at a standard centralised version instead)? I googled around for an environment variable but didn't find one. I am sorry for being (slightly, I believe) off topic, but: Can you point me to some docs telling me what this config file (for gtkfilechooser) does ? Thanks, Alexandre Moreira. Regards, Geoff ___ gtk-list mailing list gtk-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-list ___ gtk-list mailing list gtk-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-list
Re: How to disable reading of ~/.config/gtk-2.0 ?
On Thu, 2007-10-11 at 12:07 -0300, Alexandre Moreira wrote: On 10/11/07, Geoff Bache [EMAIL PROTECTED] wrote: Hi, I am trying to create some automated tests for a GTK app. Naturally I'd like these tests to behave in the same way whoever runs them. Hence I'd like to configure GTK not to read any personal configuration files. I think I've hunted down most of them but it still seems to read the file ~/.config/gtk-2.0/gtkfilechooser. Is there any way to disable the reading of this file (or point it at a standard centralised version instead)? I googled around for an environment variable but didn't find one. ~/.config is a typical location for XDG_DATA_HOME I believe (so setting that env var should change the base location of user specific gtk+ config files). I am sorry for being (slightly, I believe) off topic, but: Can you point me to some docs telling me what this config file (for gtkfilechooser) does ? that looks pretty simple, look mine says: gtkfilechooser location mode=path-bar/ show_hidden value=true/ expand_folders value=false/ /gtkfilechooser looks like some user specific preferences of how the filechooser was when last closed (and should be when next reopened...) Cheers, -Tristan ___ gtk-list mailing list gtk-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-list
Re: How to disable reading of ~/.config/gtk-2.0 ?
On 10/11/07, Tristan Van Berkom [EMAIL PROTECTED] wrote: On Thu, 2007-10-11 at 12:07 -0300, Alexandre Moreira wrote: On 10/11/07, Geoff Bache [EMAIL PROTECTED] wrote: Hi, I am trying to create some automated tests for a GTK app. Naturally I'd like these tests to behave in the same way whoever runs them. Hence I'd like to configure GTK not to read any personal configuration files. I think I've hunted down most of them but it still seems to read the file ~/.config/gtk-2.0/gtkfilechooser. Is there any way to disable the reading of this file (or point it at a standard centralised version instead)? I googled around for an environment variable but didn't find one. ~/.config is a typical location for XDG_DATA_HOME I believe (so setting that env var should change the base location of user specific gtk+ config files). I am sorry for being (slightly, I believe) off topic, but: Can you point me to some docs telling me what this config file (for gtkfilechooser) does ? that looks pretty simple, look mine says: gtkfilechooser location mode=path-bar/ show_hidden value=true/ expand_folders value=false/ /gtkfilechooser Well, my question was horribly formulated. Sorry :). What I wanted to know was if there was a place with more information than those simple stuff. What kind of options a gtkfilechooser can have, stuff like that. But I've been googling and I believe it is pretty much all that it has :) Thanks, Alexandre Moreira looks like some user specific preferences of how the filechooser was when last closed (and should be when next reopened...) Cheers, -Tristan ___ gtk-list mailing list gtk-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-list
Re: software engineer / consultant
This position has been filled. Thanks to all who responded. John Boncek wrote: A leading international company is seeking to hire a software engineer / consultant to provide programming services related to GTK porting and font issues in an embedded Linux application. We are porting a graphical application that makes extensive use of the font capabilities of GTK to produce screen displays in over thirty Roman and non-Roman languages. Therefore, we are in need of programming expertise to complete the process of porting a recent build of GTK to our environment. We are in particular need of expertise related to font configuration issues, Pango, IMEs and the differences between pangox.aliases and the newer fontconfig system. We would prefer assistance on-site in our St. Louis headquarters for approximately one week. This time may be followed by up to two additional weeks off-site to complete the project. -- View this message in context: http://www.nabble.com/software-engineer---consultant-tf4483296.html#a13163946 Sent from the Gtk+ - General mailing list archive at Nabble.com. ___ gtk-list mailing list gtk-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-list
Text Input with Windows Tablet Panel
On Windows tablet PC's, there's this thing called the floating TIP (Tablet Input Panel) that runs all the time. When a text field gets focus, it shows a little button that, when pressed opens, the tablet input panel. Here you can hand write text or use an on screen keyboard to enter text into the text field. It's not that surprising that when running GTK+ apps on a tablet pc (Windows), you don't get this nice floating TIP integration. Instead, one has to load the TIP off of a toolbar located on the start bar, which is a pain as that keyboard doesn't float over the app, but rather resizes apps and hogs screen realestate. The reason for this is that GTK+ text fields aren't real Windows text field widgets and the Windows floating TIP isn't smart enough to divine that. Java Swing applications suffer the same problem as do any other windowing toolkits that don't implement their components via native peers. (I wrote a bit on this with respect to Java here: http://www.eeaston.com/using-my-umpc/enabling-tablet-pc-tip-for-swing-java-apps-1) I know virtually nothing about GTK+/gnome, and my searches on this topic haven't really revealed much. Has there been any consideration for how to get the floating TIP working in GTK+ for windows? I've experimented with setting the GDK_USE_WINTAB environmet var, but I'm either doing something wrong, or it really is not intended to address the floating TIP issue. Any ideas? Thanks, Evan ___ gtk-list mailing list gtk-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-list
Re: GtkScrolledWindow in full screen
On Tue, 9 Oct 2007, Jonh Wendell [EMAIL PROTECTED] wrote : The widget size is exactly the screen size, say, 1280x800. When i put my window full screen, i still see the scrollbars, but they are not necessary, because the widget is the only widget visible on screen, and its size is the same as the screen size. Is that really true? I think not. If I have a GTK window containing only one widget of size 1280x800, the window is still 1284x804 because the window manager has added a border-frame around it. So when maximized on a 1280x800 screen the widget is only allocated 1276x796 and the scrollbars are required. -- Rob Pearce http://www.bdt-home.demon.co.uk The contents of this | Windows NT crashed. message are purely | I am the Blue Screen of Death. my opinion. Don't| No one hears your screams. believe a word. | ___ gtk-list mailing list gtk-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-list
Re: How to disable reading of ~/.config/gtk-2.0 ?
On Thu, 2007-10-11 at 13:16 -0300, Alexandre Moreira wrote: I am sorry for being (slightly, I believe) off topic, but: Can you point me to some docs telling me what this config file (for gtkfilechooser) does ? that looks pretty simple, look mine says: gtkfilechooser location mode=path-bar/ show_hidden value=true/ expand_folders value=false/ /gtkfilechooser Well, my question was horribly formulated. Sorry :). What I wanted to know was if there was a place with more information than those simple stuff. What kind of options a gtkfilechooser can have, stuff like that. But I've been googling and I believe it is pretty much all that it has :) It's an internal implementation detail, so your documentation is the source - look at gtk/gtkfilechoosersettings.c. However, it looks like it's been changed from XML to a GKeyFile named gtkfilechooser.ini - see http://bugzilla.gnome.org/show_bug.cgi?id=399592 Still the same three settings, though, and in the same location: [Filechooser Settings] LocationMode=filename-entry ShowHidden=false ExpandFolders=true Ed ___ gtk-list mailing list gtk-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-list
Re: Text Input with Windows Tablet Panel
On 11/10/2007, Evan Easton [EMAIL PROTECTED] wrote: Has there been any consideration for how to get the floating TIP working in GTK+ for windows? I doubt it, at least I haven't heard about this issue earlier. Tablet PCs aren't exactly common either. A somewhat related issue is support for accessibility on Windows. Those technologies also don't work with the GTK+ widgets. Accessibility issues are made more complex by some drastic changes in the technologies/APIs in Vista. On the other hand I got the impression when I last browsed the web about these issues that not all assistive technology vendors are that eager to embrace the new accessibility APIs in Vista. I've experimented with setting the GDK_USE_WINTAB environmet var, but I'm either doing something wrong, or it really is not intended to address the floating TIP issue. That is related to the Wintab API used with drawing tablets (Wacoms etc), not Tablet PCs. --tml ___ gtk-list mailing list gtk-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-list
Re: Filtering Recent Documents
On Thu, 2007-10-11 at 23:41 +0200, Teemu Ikonen wrote: I also have another problem: A recent files -submenu created with GtkRecentAction does not emit the activate signal at all. If I replace the RecentAction in my code with a normal Action, the activate signal gets emitted. Is this a bug, or am I just using the API in a wrong way? since the GtkRecentAction provides a menu item with a submenu, and you can't click those, the ::activate signal is only useful for the toolbar items the recent action also provides. the correct way to catch an activation on the items of the submenu (in both the menu and toolbar items) is to use the ::item-activated signal of the GtkRecentChooser interface that GtkRecentAction implements. ciao, Emmanuele. -- Emmanuele Bassi, W: http://www.emmanuelebassi.net B: http://log.emmanuelebassi.net ___ gtk-list mailing list gtk-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-list
Re: GtkScrolledWindow in full screen
Em Qui, 2007-10-11 às 21:54 +0100, Robert Pearce escreveu: On Tue, 9 Oct 2007, Jonh Wendell [EMAIL PROTECTED] wrote : The widget size is exactly the screen size, say, 1280x800. When i put my window full screen, i still see the scrollbars, but they are not necessary, because the widget is the only widget visible on screen, and its size is the same as the screen size. Is that really true? I think not. If I have a GTK window containing only one widget of size 1280x800, the window is still 1284x804 because the window manager has added a border-frame around it. So when maximized on a 1280x800 screen the widget is only allocated 1276x796 and the scrollbars are required. I said *fullscreen*, not maximized -- Jonh Wendell [EMAIL PROTECTED] (MSN / Google Talk) Linux User #114432 https://launchpad.net/~wendell ___ gtk-list mailing list gtk-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-list