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]>
___
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
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
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
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
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
= 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;
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
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
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
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
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
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
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,
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
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
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]>
___
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
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
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
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
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]>
___
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
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
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
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
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]>
___
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
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]
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
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
*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
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
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
> &
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
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
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
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 <
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
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
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-
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
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,
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
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
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-
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]>
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
);
>
> 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
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
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
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
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
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
> 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]>
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]>
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
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 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
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
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
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
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
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!
64 matches
Mail list logo