Re: Combobox Focus Challenge!!!

2005-09-01 Thread Jan-Marek Glogowski
Hi Maybe someone should extend the API docs or add a FAQ: gtk_widget_grab_focus( GTK_BIN(combo)-child ); Jan-Marek ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: Getting workspace number?

2005-08-18 Thread Jan-Marek Glogowski
Hi I would like to write a command line application that outputs the current workspace (under GNOME, I had someting in WindowMaker, but this does not work in GNOME). I have tried the following: ... All workspace stuff depends on the window manager, so I guess for GNOME you have to check the

Re: Cannot hide dialog until signal handler exits

2005-08-18 Thread Jan-Marek Glogowski
Hi The signal handler for a button in my main window launches a file chooser dialog, then processes the selected files. I try to hide the dialog during processing with 'gtk_widget_hide (dialog);' but this does not take effect until the signal handler exits. Is there a way to hide the dialog

Re: [GtkMenu] Callback problem with popups submenus

2005-08-18 Thread Jan-Marek Glogowski
Hi Emmanuel For me it works as expected. I just added a gtk_main(), a gtk_init(...) and a print()-callback and it works (on Debian Sarge gtk+ 2.6.4) For gtk_menu_popup I used ..., 0, gtk_get_current_event_time()); Maybe something else is wrong in your code? Jan-Marek

Re: g_signal_emit_by_name

2005-08-18 Thread Jan-Marek Glogowski
Hi snip a lot of code You're misunderstanding the _emit_ functions. They are supposed to be used inside GObjects to run their attached signal handlers. So a soluting would be: gboolean your_old_code(...) { return FALSE; // destroy return TRUE; // do not destroy } gboolean

Re: 100 Different Colors

2005-06-24 Thread Jan-Marek Glogowski
FYI - I just came up with the this example to illustrate a way to change the colors in a loop - it doesn't represent the solution! Algo is still: r = max, g = 0, b = 0 r = max , g = max, b = 0 r = 0, g = max, b = 0 r = 0, g = max, b = max r = 0, g = 0, b = max r = max, g = 0, b = max back to step

Re: GtkTreeView issues (porting from GtkCList)

2005-06-24 Thread Jan-Marek Glogowski
Please start a new thread next time. 1) There is a way to set the root of the tree? Maybe gtk_tree_store_append( store, new_row, NULL ); 2) There is a way to select when a node will be a leaf or a node? ? There are no leafs - a leaf is a node without children: gtk_tree_model_iter_has_child

Re: 100 Different Colors

2005-06-24 Thread Jan-Marek Glogowski
Thanks Jan-Marek and everyone else who replied. The suggestions have been really helpful. I'm making some progress. But I didn't know I had to deal with hue/saturation/intensity stuff for this. I searched but couldn't find any documentation for gtk_hsv_to_rgb()?? One website (pretty old

Re: GtkTreeView issues (porting from GtkCList)

2005-06-24 Thread Jan-Marek Glogowski
Ok ok! However it doesn't work on my situation. What I am trying to do is something similar a bookmark. Then it has a root folder: Bookmark (that cotain all the folders and url's); and it has the url's (that are the 'leafs'). One requirement is I may move the folders and url's. So I need a

Re: 100 Different Colors

2005-06-21 Thread Jan-Marek Glogowski
Hi I need to create 100 little squares and each of them has to be a different color. They can't just be a random color: they have to follow the colors of the standard color spectrum/palette. For example, the first one is dark blue, then lighter blue, ... , green, ... , red. Std. color

Re: GtkTreeView issues (porting from GtkCList)

2005-06-14 Thread Jan-Marek Glogowski
Hi Yury Yury Aliaev wrote: 2) When pressing the left mouse button and moving the cursor vertically the selection in GtkCList follow the cursor. In GtkTreeView -- not. How can I obtain in GtkTreeView the same behavior as in GtkCList? Not the same problem, but you may be able to adapt my