Re: Key-value file parser, howto get all groups and create loop from them

2006-08-01 Thread Christian Neumair
particular problem you encountered. -- Christian Neumair [EMAIL PROTECTED] ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: Key-value file parser, howto get all groups and create loop from them

2006-08-01 Thread Christian Neumair
on the semantics instead of having to care about memory that has to be freed. -- Christian Neumair [EMAIL PROTECTED] ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: Key-value file parser, howto get all groups and create loop from them

2006-08-01 Thread Christian Neumair
seeing your code, we can't really help you. -- Christian Neumair [EMAIL PROTECTED] ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: use a picture and a label as gtk_notebook_tab_label

2006-07-22 Thread Christian Neumair
gtk_container_add() with the same(none) result. Try calling gtk_widget_show() on the label and the image, or gtk_widget_show_all() on the hbox. -- Christian Neumair [EMAIL PROTECTED] ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http

Re: float params of a gobject

2006-07-10 Thread Christian Neumair
a positive width, 1.0 might be a good default value. [1] http://developer.gnome.org/doc/API/2.0/glib/glib-Limits-of-Basic-Types.html#G-MINFLOAT:CAPS; -- Christian Neumair [EMAIL PROTECTED] ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org

Re: Failed to open file 'Hp\u0008\u0008': No such file or directory.

2006-06-01 Thread Christian Neumair
not red, error-message); return 0; } } else { text = tmp_text; } return 1; } -- Christian Neumair [EMAIL PROTECTED] ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http

Re: How to detect if a glist-data is a GUINT_TO_POINTER for not freeing it ?

2006-04-21 Thread Christian Neumair
use GPOINTER_TO_UINT(fields-data)? I'm also curious why you use i, i.e. a running variable. How does your list store look? -- Christian Neumair [EMAIL PROTECTED] ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org

Re: Random Number of Buttons

2006-04-20 Thread Christian Neumair
Am Donnerstag, den 20.04.2006, 05:02 -0700 schrieb 3saul: I'm wanting to know the best way to declare a random number of buttons for my gtk app. The number will changed depending on the argument passed to my app. How do you want to arrange them, and what should they contain? -- Christian

Re: Insert image in Scrolled window

2006-03-30 Thread Christian Neumair
? I tried to insert images using gtk_fixed_put(), but it didnt work.. So please give me some suggestions If you just want an image in a scrolled window, you can use gtk_scrolled_window_add_with_viewport (win, image); where image is a widget of type GtkImage. -- Christian Neumair [EMAIL

Re: Question about gtk_file_selection_new

2006-03-19 Thread Christian Neumair
Am Sonntag, den 19.03.2006, 11:44 +0100 schrieb [EMAIL PROTECTED]: is there a way to make file selection dialog box created with gtk_file_selection_new also display hidden files?? gtk_file_chooser_set_show_hidden. I wonder why you need this, though. -- Christian Neumair [EMAIL PROTECTED

Re: mapping keys to functions

2006-03-02 Thread Christian Neumair
the state member in the GdkEventKey struct. -- Christian Neumair [EMAIL PROTECTED] ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: clipboards under win32

2006-02-24 Thread Christian Neumair
Am Samstag, den 25.02.2006, 09:30 +1100 schrieb Nick Watts: (application.exe:612): GLib-GObject-CRITICAL **: gtype.c:2254: initialization asser tion failed, use g_type_init() prior to this function Are you sure that you called gtk_init (argc, argv); before using GObject? -- Christian

Re: Using: gtk_button_set_image() gives small empty buttons

2006-02-22 Thread Christian Neumair
, and it does contain my image (I've tried both line-art and grey-scale images), but when gtk_button_set_image()-ing the image to my button I get a silly little button probably about 5x5 pixels in size with no image within!? gtk_widget_show_all (button); /* might help. */ -- Christian Neumair [EMAIL

Re: Using: g_key_file_load_from_file() in homedir

2006-02-22 Thread Christian Neumair
directory... I couldn't exactly recall the function... it could be g_...get_homedir() char *path; path = g_build_filename (g_get_home_dir (), .DiamondBOX/Diamond.settings, NULL); /* GKeyFileCode ... */ g_free (path); -- Christian Neumair [EMAIL

Re: Not receiving input w/ multiple renderers in a TreeViewColumn

2006-02-22 Thread Christian Neumair
C testcase and file a bug report? -- Christian Neumair [EMAIL PROTECTED] ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: dealing with utf8 filenames

2006-02-22 Thread Christian Neumair
: char **str; /* str[0]: basename str[1]: extension */ str = g_strsplit (filename, ., 2); g_strfreev(str) -- Christian Neumair [EMAIL PROTECTED] ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo

Re: clearing gtkliststore and gtktreestore

2006-02-22 Thread Christian Neumair
yourself, GTK+ will do this for you based on the column type by calling the appropriate duplication routines. If you want to insert complex data, either use GObjects (these will be unrefed when they're removed from the model), or use plain structs and subclass G_TYPE_BOXED. -- Christian Neumair [EMAIL

Re: dealing with utf8 filenames

2006-02-22 Thread Christian Neumair
Am Mittwoch, den 22.02.2006, 08:17 -0800 schrieb Alan M. Evans: On Wed, 2006-02-22 at 07:59, Christian Neumair wrote: Am Mittwoch, den 22.02.2006, 07:09 -0800 schrieb Alan M. Evans: On Tue, 2006-02-21 at 16:25, Tor Lillqvist wrote: Also, I don't think the string returned from

Re: scientific widgets developing

2006-01-24 Thread Christian Neumair
Alexandre wrote: Hi, i'm begining to write technical widgets for gtk, like termometer, compass, dials.. I want to know if is there something done in this area.. and someone interested. This kind of specialized widget library is always appreciated, since it can be heavily reused! You may

RE: gdk_display_set_double_click_time: has no effect

2006-01-21 Thread Christian Neumair
to work? Please refer to [1]. You'll have to modify your gtk-double-click-time GtkSetting. [1] http://mail.gnome.org/archives/gtk-devel-list/2004-September/msg00061.html -- Christian Neumair [EMAIL PROTECTED] ___ gtk-app-devel-list mailing list gtk-app-devel

Re: colors in treeview

2006-01-19 Thread Christian Neumair
Karel Honzl wrote: Is it possible to create treeview in which I can set color (text color) of certain row? I want to hightlight some rows. You may want to take a look at the way GtkCellRenderers [1] work. Before rendering a particular row, your tree view sets the attributes registered with

Re: Blocking a signal with unknown handler id?

2006-01-18 Thread Christian Neumair
Daniel Pekelharing wrote: Hi all, Anyone know how one would go about blocking a signal on a widget where you don't know the signal handler id? I have some check menu items which I set depending on various program modes... I need to block the activate signal before I set it and unblock it

Re: Clear a text combo box

2006-01-06 Thread Christian Neumair
gtk_combo_box_get_model and either use gtk_list_store_clear, or gtk_tree_model_iter_n_children and gtk_combo_box_remove_text. -- Christian Neumair [EMAIL PROTECTED] ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo

Re: Problems with gconf

2006-01-06 Thread Christian Neumair
to help you. -- Christian Neumair [EMAIL PROTECTED] ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: How invoke a menu and menu items on key press

2006-01-05 Thread Christian Neumair
a mnemonic to an arbitrary menu item by using gtk_menu_item_new_with_mnemonic and passing _Foo instead of Foo as item label. The letter after '_' will be used as mnemonic. If you use GtkActions (recommended), the label field of your GtkActionEntry should be set to _Foo. -- Christian Neumair [EMAIL

Re: Gtk support for threading

2006-01-05 Thread Christian Neumair
supporting threading? I am using GTK version 2.2.4. Thanks is advance... Please refer to http://developer.gnome.org/doc/API/2.0/gdk/gdk-Threads.html -- Christian Neumair [EMAIL PROTECTED] ___ gtk-app-devel-list mailing list gtk

Re: Fwd: Catch signal

2006-01-04 Thread Christian Neumair
the delete event has been sent to the application A. Is this possible? -- Christian Neumair [EMAIL PROTECTED] ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: Change the behaviour of a button

2005-12-27 Thread Christian Neumair
buttons into one box (hbox or vbox), use the suggested show/hide code and use a GtkSizeGroup which ensures that both always have the same size. -- Christian Neumair [EMAIL PROTECTED] ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http

Re: Scaling in one direction

2005-10-01 Thread Christian Neumair
Am Samstag, den 01.10.2005, 09:40 +0930 schrieb Lachlan Gunn: Hi, I'm making an application that has a vbox that I want to only resize horizontally gtk_widget_set_size_request (-1, desired_vertical_size_in_px); -- Christian Neumair [EMAIL PROTECTED

Re: Memory question

2005-09-29 Thread Christian Neumair
during the program execution on exit. Leaks just mean that the memory is lost during program execution, which can be equally bad if the application runs for a long time and you leak memory very often, since the allocated but lost memory is not available for other programs. -- Christian Neumair

Re: Memory question

2005-09-29 Thread Christian Neumair
ShowGtkMessageDialog (GTK_WINDOW (MainWindow), GTK_DIALOG_MODAL, GTK_MESSAGE_ERROR, GTK_BUTTONS_OK, g_strerror (errno)); without leaking anything. -- Christian Neumair [EMAIL PROTECTED] ___ gtk-app

Re: Memory question

2005-09-29 Thread Christian Neumair
Am Donnerstag, den 29.09.2005, 12:42 +0200 schrieb Christian Neumair: 1 foo (const void *bar); and 2 foo (void **bar); Should have a void retval. Sorry for the confusion. -- Christian Neumair [EMAIL PROTECTED] ___ gtk-app-devel-list mailing list

Re: GtkTreeView Search Popup

2005-09-29 Thread Christian Neumair
-- Christian Neumair [EMAIL PROTECTED] ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: show the bottom of a table in a scrollable window

2005-09-23 Thread Christian Neumair
Jane Bryan-Jones schrieb: if the user adds a line I want to automatically show the last line (the one he’s just added) http://developer.gnome.org/doc/API/2.0/gtk/GtkTreeView.html#gtk-tree-view-set-cursor ___ gtk-app-devel-list mailing list

Re: [Gtk#] TreeView.

2005-09-22 Thread Christian Neumair
, hover_path) != NULL)) { /* do whatever you want with the new hover path */ } [1] http://bugzilla.gnome.org/attachment.cgi?id=49082action=view -- Christian Neumair [EMAIL PROTECTED] ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org

Re: gtk_window_set_default does not work (for me)

2005-09-19 Thread Christian Neumair
handler of the GtkEntry, or use gtk_window_set_default (win, ok_widget) instead of gtk_dialog_set_default_response. On 9/13/05, Christian Neumair [EMAIL PROTECTED] wrote: Am Montag, den 12.09.2005, 18:11 +0530 schrieb Deekshit Mantampady: Hi all, I have a window where I want to make the OK

Re: building gtk+ application on windows

2005-09-18 Thread Christian Neumair
/win32/downloads.html -- Christian Neumair [EMAIL PROTECTED] ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: notebook issue ?

2005-09-18 Thread Christian Neumair
/archives/gtk-devel-list/2005-September/msg00102.html -- Christian Neumair [EMAIL PROTECTED] ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: How to check if a font has a given character?

2005-09-16 Thread Christian Neumair
Am Donnerstag, den 15.09.2005, 17:06 -0300 schrieb Eduardo M KALINOWSKI: Christian Neumair wrote: Am Donnerstag, den 15.09.2005, 16:26 -0300 schrieb Eduardo M KALINOWSKI: I want to check if the font I'm using (in a GtkTextView, if that matters) contains some characters

Re: Gtk+, UTF-8 and translations

2005-09-15 Thread Christian Neumair
with msgmerge which removes all multibyte characters from msgstr tags in my original .po file. I think msgfmt = 0.10.35 doesn't handle multibyte characters correctly. You should upgrade to a recent gettext version. -- Christian Neumair [EMAIL PROTECTED

Re: How to check if a font has a given character?

2005-09-15 Thread Christian Neumair
() apparently does exactly what I want, however I couldn't discover how to get a PangoFcFont *. You should take a look at PangoCoverage, which can be requested using pango_font_get_coverage (). -- Christian Neumair [EMAIL PROTECTED] ___ gtk-app-devel-list

Re: Tool tip with out Mouse ?

2005-09-13 Thread Christian Neumair
using: g_signal_emit_by_name (foo_widget, show-help, GTK_WIDGET_HELP_TOOLTIP); On 9/12/05, Christian Neumair [EMAIL PROTECTED] wrote: Am Montag, den 12.09.2005, 16:39 +0530 schrieb sadhees kumar: hi friends, In my application, i am not using

Semi-transparent GdkWindows?

2005-09-11 Thread Christian Neumair
gdk_window_fill (0x). So my sad and hopefully wrong conclusion is that GdkWindows and the underlying Windows don't seem to have a full alpha channel. Can cairo help me here? Do we need a new, more powerful, X extension? Thanks for your replies in advance! -- Christian Neumair [EMAIL

Re: Semi-transparent GdkWindows?

2005-09-11 Thread Christian Neumair
Matthias Clasen schrieb: On Sun, 2005-09-11 at 12:49 +0200, Christian Neumair wrote: Help appreciated! You need to use an RGBA visual for your window, see gdk_screen_get_rgba_visual(). Thanks! Even then, the window will not be transparent unless a compositing manager is running