Re: GModule

2007-01-29 Thread Christian Neumair
program when a plugin unloads I need to > be > able to de-reference any pointers to its functions. I cannot however > seem to > figure out how to see what module that function resides in. Thanks. > -- Christian Neumair <[EMAIL PROTECTED]> ___

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

2006-08-01 Thread Christian Neumair
ch.de/ubuntu/view.png. Without 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: Key-value file parser, howto get all groups and create loop from them

2006-08-01 Thread Christian Neumair
ts, hash tables and the like with python, and concentrate 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
m the "DATEN" group? If so, you should use g_print ("%s", g_key_file_get_string(crypto_keys, "DATEN", "mountpoint", NULL)); Maybe I'm taken wrong but I think the GKeyFile API and documentation is quite strong and obvious. If you disagree, please tell us what 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: use a picture and a label as gtk_notebook_tab_label

2006-07-22 Thread Christian Neumair
notebook_append_page(mainbook, vbox1, samba_hbox); > > [/code] > > so what am I doing wrong, i also tried 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 <[E

Re: float params of a gobject

2006-07-10 Thread Christian Neumair
eld in a gfloat, use -G_MAX_FLOAT." 0.0 is not considered positive in this case, I think it works like: G_MINFLOAT is the smalles floating number f that satisfies f > 0. Since icons may only have a positive width, 1.0 might be a good default value. [1] http://developer.gnome.org/doc/API/2.0/glib

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

2006-06-01 Thread Christian Neumair
= g_locale_to_utf8 (tmp_text, -1, NULL, NULL, &error); > if (error != NULL) > { > g_warning ("%s. File not red", error->message); > return 0; > } > } > else > { > text = tmp_text; > } > return 1;

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

2006-04-21 Thread Christian Neumair
to the allocated u long long int pointer because if I use > GUINT_TO_POINTER with G_TYPE_UINT it works. Do you have any idea about > the crash ? Shouldn't you use GPOINTER_TO_UINT(fields->data)? I'm also curious why you use i, i.e. a running variable. How does your list stor

Re: Random Number of Buttons

2006-04-20 Thread Christian Neumair
ould they contain? -- 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: Insert image in Scrolled window

2006-03-30 Thread Christian Neumair
ScrolledWindow? > > 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

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 Neu

Re: mapping keys to functions

2006-03-02 Thread Christian Neumair
have to query 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 GObjec

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,

Re: clearing gtkliststore and gtktreestore

2006-02-22 Thread Christian Neumair
TR_COLUMN, g_strdup (mystr), -1); Please don't dup the data 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

Re: Application structuring with threads & network I/O - suggestions?

2006-02-22 Thread Christian Neumair
ut having seen code. My suspicion is that you just proved that C is error prone. -- 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
inter arithmetic with UTF-8 encoded strings. For the sake of readability, I'd rather use the following code: char **str; /* str[0]: basename str[1]: extension */ str = g_strsplit (filename, ".", 2); g_strfreev(str) -- Christian Neumair <[EMAIL PROTECTED]> ___

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

2006-02-22 Thread Christian Neumair
one column together with other cell renderes. Maybe you could come up with a little 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: Using: g_key_file_load_from_file() in homedir

2006-02-22 Thread Christian Neumair
mond.settings", NULL); /* GKeyFileCode ... */ g_free (path); -- 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: Using: gtk_button_set_image() gives small empty buttons

2006-02-22 Thread Christian Neumair
e)" widget on its > own, 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_wid

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 want

RE: gdk_display_set_double_click_time: has no effect

2006-01-21 Thread Christian Neumair
uble_click_time 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]> ___

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 g

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 afte

Re: Problems with gconf

2006-01-06 Thread Christian Neumair
code, else we won't be able 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: Clear a text combo box

2006-01-06 Thread Christian Neumair
he model using 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://ma

Re: Gtk support for threading

2006-01-05 Thread Christian Neumair
Is GTK is fully 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]> ___

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

2006-01-05 Thread Christian Neumair
ny help in this regard would be gr8 You can assign 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 f

Re: Fwd: Catch signal

2006-01-04 Thread Christian Neumair
t; My question is if there is a way to handle this signal from an external > > application. This is The application B detects when the delete event > > has > > been sent to the application A. > > > > Is this possible? -- Christian Neumair <[EMAIL PROTECTED]

Re: Change the behaviour of a button

2005-12-27 Thread Christian Neumair
get_show()/gtk_widget_hide() functions. I recommend against this since it will break the GUI for people who disable images on buttons. You should rather pack both buttons into one box (hbox or vbox), use the suggested show/hide code and use a GtkSizeGroup which ensures that both always have the sa

Re: A Question about GtkTreeSortable

2005-10-20 Thread Christian Neumair
irst so "a" always sorts before > }else if ( gtk_tree_path_compare(path_first, path_b) == 0 ){ > return 1; // "b" is first so "a" always sorts after > } > > // none of both are first so compare them > > ..... > > gtk_tree_pat

Re: A Question about GtkTreeSortable

2005-10-20 Thread Christian Neumair
*element_a, *element_b; gtk_tree_model_get (model, a, MY_ELEMENT_COLUMN, &element_a, NULL); gtk_tree_model_get (model, b, MY_ELEMENT_COLUMN, &element_b, NULL); if (element_a == element_b) { return 0; } if (element_a == first_element) { return -1; } if (element_b == first_ele

Re: Building interfaces in GTK: apart GLADE ??

2005-10-04 Thread Christian Neumair
Tristan Van Berkom schrieb: If you must have generated code, I dont see whats wrong with the code that glade generates (if its simply unmaintained in glade-2; I'm not aware of that, better ask on [EMAIL PROTECTED]). See Owen Taylor's quoted statement on generated code [1]. All the points he

Re: First column header in GtkTreeView?

2005-10-03 Thread Christian Neumair
Am Montag, den 03.10.2005, 16:30 +0200 schrieb The Saltydog: > On 10/2/05, Christian Neumair <[EMAIL PROTECTED]> wrote: > > Maybe you should create two GtkTreeViews that share one model and pack > > both into scrolled windows with different scroll policies. These two > &

Re: First column header in GtkTreeView?

2005-10-02 Thread Christian Neumair
Am Sonntag, den 02.10.2005, 20:58 +0200 schrieb The Saltydog: > On 10/1/05, The Saltydog <[EMAIL PROTECTED]> wrote: > > On 10/1/05, Christian Neumair <[EMAIL PROTECTED]> wrote: > > > > > > Do you want to arrange that your tree view does no horizontal scrollin

Re: GtkExpander and resizeable dialogs

2005-10-02 Thread Christian Neumair
s. Maybe you can gtk_window_set_resizable the window to FALSE and re-set it to be resizable once it shrunk. -- 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: First column header in GtkTreeView?

2005-10-01 Thread Christian Neumair
ng at all, or that only the second column scrolls? -- 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: 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 <

Re: GtkTreeView Search Popup

2005-09-29 Thread Christian Neumair
ist-view.c?r1=1.216&r2=1.217 -- 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: Memory question

2005-09-29 Thread Christian Neumair
ents which > will produce segfauls. I wasn't aware that the called method has printf flavor. I wonder which API provides ShowGtkMessageDialog. -- 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: 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-

Re: Memory question

2005-09-29 Thread Christian Neumair
at already allocated for bar, while not modifying the latter. eel_str_strip_chr [1] uses this variant. [1] http://cvs.gnome.org/viewcvs/*checkout*/eel/eel/eel-string.c -- 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: Memory question

2005-09-29 Thread Christian Neumair
cause g_strerror returns a const char * (meaning that you may not/can't/don't have to free it, since your app doesn't own the memory), you can simply call ShowGtkMessageDialog (GTK_WINDOW (MainWindow), GTK_DIALOG_MODAL, GTK_MESSAGE_ERROR,

Re: Memory question

2005-09-29 Thread Christian Neumair
s meant to free *all* memory you allocated 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

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

2005-09-23 Thread Christian Neumair
Christian Neumair schrieb: 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 If you're not using a tree view inside the scr

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 gtk-app-

Re: [Gtk#] TreeView.

2005-09-22 Thread Christian Neumair
L && hover_path != NULL) || gtk_tree_path_compare (last_hover_path, hover_path) != NULL)) { /* do whatever you want with the new hover path */ } [1] http://bugzilla.gnome.org/attachment.cgi?id=49082&action=view -- Christian Neumair <[EMAIL PROTECTED]>

Re: gtk_window_set_default does not work (for me)

2005-09-19 Thread Christian Neumair
ot;activate" 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 a

Re: notebook issue ?

2005-09-18 Thread Christian Neumair
); > > hbox_tab = gtk_hbox_new(FALSE, 0); > gtk_box_pack_start (GTK_BOX (hbox_tab), p_close_button > , TRUE, TRUE, 0); > gtk_box_pack_start (GTK_BOX (hbox_tab), p_tab_label , > TRUE, TRUE, 0); gtk_widget_show_all (hbox_tab); > gtk_notebook_append_page ( > GTK_NOTEBOOK(p_note

Re: notebook issue ?

2005-09-18 Thread Christian Neumair
mail.gnome.org/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: Focus on vbox contained widget

2005-09-18 Thread Christian Neumair
ct_by_func (child, my_focus_in_handler, vbox); g_signal_disconnect_by_func (child, my_button_press_handler, vbox); } -- 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: building gtk+ application on windows

2005-09-18 Thread Christian Neumair
tp://www.gimp.org/~tml/gimp/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: GtkCellRendererCombo

2005-09-17 Thread Christian Neumair
TREE_MODEL(ls), NULL); > g_object_unref(ls); > > ls being my GtkListStore. > > but i don't see any sign of text or icons in my treeview :-( The text will be set if you do additionally set the "text-column" property to the text column in the model. Icons a

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 GtkTextVi

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

2005-09-15 Thread Christian Neumair
> pango_fc_font_has_char() 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]>

Re: gtkscrolledwindow resize atomatic

2005-09-15 Thread Christian Neumair
change), and I'm not able to view all the > gtkplotcanvas.. You probably didn't use gtk_scrolled_window_add_with_viewport. It will ensure that the viewport uses the same adjustements as the surrounding scrolled window. -- Christian Neumair <[EMAIL PROTECTED]>

Re: Gtk+, UTF-8 and translations

2005-09-15 Thread Christian Neumair
merge two .po files 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. -- Chri

Re: Tool tip with out Mouse ?

2005-09-13 Thread Christian Neumair
P); You can probably also manually enforce displaying the tooltip 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, 1

Re: gtk_window_set_default does not work (for me)

2005-09-12 Thread Christian Neumair
re key does not work. You should use gtk_dialog_set_default_response and, if the dialog contains an entry, gtk_entry_set_activates_default. -- Christian Neumair <[EMAIL PROTECTED]> ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org

Re: Tool tip with out Mouse ?

2005-09-12 Thread Christian Neumair
ry ctrl-F1. The private API involved is gtktooltips.h:void _gtk_tooltips_toggle_keyboard_mode (GtkWidget *widget); -- Christian Neumair <[EMAIL PROTECTED]> ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://m

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

Re: Semi-transparent GdkWindows?

2005-09-11 Thread Christian Neumair
Am Sonntag, den 11.09.2005, 10:41 +0200 schrieb Christian Neumair: > Am Sonntag, den 11.09.2005, 10:26 +0200 schrieb Christian Neumair: > > I'm currently trying to implement a semi-transparent drag window for > > Nautilus. I'm trying to do this by creating a window widget

Re: Semi-transparent GdkWindows?

2005-09-11 Thread Christian Neumair
Am Sonntag, den 11.09.2005, 10:26 +0200 schrieb Christian Neumair: > I'm currently trying to implement a semi-transparent drag window for > Nautilus. I'm trying to do this by creating a window widget and > connecting to its "expose-event", and then drawing onto it

Semi-transparent GdkWindows?

2005-09-11 Thread Christian Neumair
way to do something like 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!