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: g_signal_emit_by_name

2005-08-18 Thread Jan-Marek Glogowski
Hi 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 delete_event_callback(...) { re

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: 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 dia

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 t

Re: GTK_COMBO_BOX_ENTRY activate signal

2005-07-20 Thread Jan-Marek Glogowski
> Now, I'm using the GTK_COMBO_BOX_ENTRY that doesn't have the > "activate" signal, neither let me access the entry inside the combo, > as I used to do with GTK_COMBO. > > Someone know how to do it? GTK_ENTRY( gtk_bin_get_child( GTK_BIN( combo_box ) ) ) Jan-Marek _

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

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 o

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_c

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: 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 ada

Re: get sys date

2005-06-03 Thread Jan-Marek Glogowski
Hi >developing gui with glade, c. i want to know the api or > functionality to how to get system date and time, and how to display it > to the particular widget. Look into the GLib API Docs -> Date and Time Functions. HTH Jan-Marek ___ gtk-app

Re: GLib-GObject-CRITICAL debugging

2005-05-20 Thread Jan-Marek Glogowski
Hi Daniel If I want to catch GLib/GTK+ errors I set a breakpoint to g_log. In gdb: break g_log If you use g_log for a lot of own logging, you should be able to set a breakpoint depending on the logging domain. HTH Jan-Marek ___ gtk-app-devel-list mai

Re: UI_Manager & checkMenuItem

2005-01-25 Thread Jan-Marek Glogowski
Hi > Does anyone know if there is a way to add a checkMenuItem in a menu > using ActionGroup and gtkUiManager? Have a look for GtkToggleActionEntry. Jan-Marek ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailma