Re: frequently updated pixbuf images disapear after a while

2006-08-27 Thread rupert
On 8/27/06, Peter Firefly Lund <[EMAIL PROTECTED]> wrote: > > On Sun, 27 Aug 2006, rupert wrote: > > > the g_sprintf returns the number of characters, so i should use it like > the > > normal sprintf, > > gchar *mapper_chk_cmd; > > g_sprintf(mapper_chk_cm

Re: frequently updated pixbuf images disapear after a while

2006-08-27 Thread rupert
: > > On Sun, 27 Aug 2006, rupert wrote: > > > mh, i noticed that, but when i the fclose in the line before return TRUE > i > get a segfault. > > You are papering over another fault. Find that and fix it instead. > > It might be that sprintf() creates a string that

Re: frequently updated pixbuf images disapear after a while

2006-08-27 Thread rupert
mh, i noticed that, but when i the fclose in the line before return TRUE i get a segfault. On 8/27/06, David Nečas (Yeti) <[EMAIL PROTECTED]> wrote: > > On Sun, Aug 27, 2006 at 10:37:18AM +0200, rupert wrote: > > > > > > > > >FILE *fp = fopen(mapper_

Re: frequently updated pixbuf images disapear after a while

2006-08-27 Thread rupert
On 8/27/06, Peter Firefly Lund <[EMAIL PROTECTED]> wrote: > > On Sun, 27 Aug 2006, rupert wrote: > > > { > >gchar mapper_chk_cmd[128]; > > > >sprintf(mapper_chk_cmd, MAPPER_PATH, data); > > mapper_chk_cmd = g_sprintf(MAPPER_PATH, data); > &

Re: frequently updated pixbuf images disapear after a while

2006-08-27 Thread rupert
these are the lines I get with bt Program received signal SIGSEGV, Segmentation fault. [Switching to Thread -1224288576 (LWP 6757)] 0xb73e46ad in fclose () from /lib/tls/i686/cmov/libc.so.6 (gdb) bt #0 0xb73e46ad in fclose () from /lib/tls/i686/cmov/libc.so.6 #1 0xb73ec43d in pclose () from /lib

frequently updated pixbuf images disapear after a while

2006-08-26 Thread rupert
with the unref function, without luck. the whole packed project can be downloaded here: http://profile.az-lantech.de/projects/Project_Cryptomaster/files/cryptomaster.tar.gz thx for your support, again ;) rupert ___ 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-14 Thread rupert
gtk_tree_model_get_iter_first(treedata->store,&iter); } I have to give me a timeframe of a day or two before asking question,(this gets a note on the monitor.)... so long On 8/14/06, rupert <[EMAIL PROTECTED]> wrote: > > its getting good, somehow i packed the gtk_tree_

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

2006-08-14 Thread rupert
); gtk_list_store_set(treedata->store, &treedata->iter, MOUNT_COLUMN, treedata->pixbuf_mount, -1); g_object_unref(treedata->pixbuf_mount); return; } */ }while(gtk_tree_model_iter_next(treedata->store, &iter)); } On 8/14/06,

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

2006-08-14 Thread rupert
On 8/14/06, Peter Firefly Lund <[EMAIL PROTECTED]> wrote: > > On Mon, 14 Aug 2006, rupert wrote: > > > void make_list(GtkListStore *store, GtkTreeIter iter, gpointer > > pixbuf_mapper_yes, gpointer pixbuf_mapper_no, gpointer pixbuf_mount_yes, > > gpointer pixbuf_

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

2006-08-14 Thread rupert
On 8/14/06, Peter Firefly Lund <[EMAIL PROTECTED]> wrote: > > On Mon, 14 Aug 2006, rupert wrote: > > Strangely the function seems to stop, because i only get 1 test on the > bash: > (cryptomaster:11056): Gtk-CRITICAL **: gtk_list_store_set: assertion > `iter->stam

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

2006-08-14 Thread rupert
1056): Gtk-CRITICAL **: gtk_list_store_set: assertion `iter->stamp == list_store->stamp' failed I have split my project into different files, if its neccesary i could append an tarball to my mails, if its better for you to see a solution to my problems. greetings On 8/5/06, [EMAIL PROTECT

Re: where to find a specific part of the gnome code?

2006-08-08 Thread rupert
On 8/8/06, Tristan Van Berkom <[EMAIL PROTECTED]> wrote: > > rupert wrote: > > i think its the gnome-volume-manager, i did a grep in /usr on the > message > > text and found only one file(gnome-volume-manager.mo) that contains the > > term > > (Passwort-Phra

Re: where to find a specific part of the gnome code?

2006-08-08 Thread rupert
sources in cvs, but havent found any parts that look like what i need, but i will try further. On 8/7/06, Tristan Van Berkom <[EMAIL PROTECTED]> wrote: > > rupert wrote: > > Im at a point with my application where i exactly need the code for the > > function that runs when you

where to find a specific part of the gnome code?

2006-08-07 Thread rupert
Im at a point with my application where i exactly need the code for the function that runs when you have encrypted disks and start gnome. I mean the password request for the LUKS devices that pops up when gnome is starting on my ubuntu/dapper machine. i looked though the gnome cvs but thats way to

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

2006-08-05 Thread rupert
On 8/3/06, David Nečas (Yeti) <[EMAIL PROTECTED]> wrote: > > On Thu, Aug 03, 2006 at 09:15:56PM +0200, rupert wrote: > > > > One thing beside this that bothers me is that i now kicked the idea of > > having buttons in the table, now I use a list and have only one

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

2006-08-03 Thread rupert
OK, you are right in some points, I started to read all the warnings and try to correct them, some tough work. I really cant find any other place then this to ask questions about GTK, most Forums only have QT people and GTK questions often are unanswered. One thing beside this that bothers me is t

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

2006-08-01 Thread rupert
On 8/1/06, Christian Neumair <[EMAIL PROTECTED]> wrote: > > Am Dienstag, den 01.08.2006, 19:12 +0200 schrieb rupert: > > Im so far with my code that i want to create a table where each group > > gets a row that has labels, buttons and textentries. > > right now im u

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

2006-08-01 Thread rupert
On 8/1/06, Christian Neumair <[EMAIL PROTECTED]> wrote: > > Am Dienstag, den 01.08.2006, 12:52 +0200 schrieb rupert: > > Im playing arroung with the Gkeyfile functions and now try to get all > groups > > from the keyfile and create a for loop that than shows me the &

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

2006-08-01 Thread rupert
_get_string(crypto_keys, groups[i], > "mapperdevice", NULL); > g_print("\n %s", mapperdevice); > } > > } > > > On 8/1/06, rupert <[EMAIL PROTECTED]> wrote: > > > > Im playing arroung with the Gkeyfile functions and now

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

2006-08-01 Thread rupert
ok, im a bit further, but i cant access the array that contains the groupnames: groups[i] shuold give me the names, but i get an error while compiling that the type is not compatible...? crpyto_get_keyfile(){ GtkWidget *crypto_keys, *crypto_key_groups; gboolean *isfile=FALSE; gchar *st

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

2006-08-01 Thread rupert
Im playing arroung with the Gkeyfile functions and now try to get all groups from the keyfile and create a for loop that than shows me the different values, packed into strings, including the group name i have something like this in mind: crpyto_get_keyfile(){ GtkWidget *crypto_keys, *crypto_k

Re: update a textview while the mouse moves over a button

2006-07-28 Thread rupert
OK, it was to late, in the morning i found the painfull mistake. sorry On 7/27/06, rupert <[EMAIL PROTECTED]> wrote: > > I have a small textview which tells/helps the user what to do, > so when a user moves his mouse onto a button i'd like to show small > message in t

update a textview while the mouse moves over a button

2006-07-27 Thread rupert
I have a small textview which tells/helps the user what to do, so when a user moves his mouse onto a button i'd like to show small message in the textview I am so far that a g_print prints it message on a mouseover, but the buffer is not updated and i get this message: gtk_text_buffer_set_text:

use a picture and a label as gtk_notebook_tab_label

2006-07-22 Thread rupert
Im trying to use an image and a gtk_label as a tab_label. I pack both into a hbox and put this hbox as the tablabel in the append_page option: [code] mainbook = gtk_notebook_new (); gtk_box_pack_start(GTK_BOX (vboxmain), mainbook, TRUE, TRUE, 0); gtk_notebook_set_tab_pos (G

Re: showing a logfile in a Textview(like tail -f)

2006-07-20 Thread rupert
On 7/20/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > On Thu, Jul 20, 2006 at 11:55:47AM +0200, rupert wrote: > > Which is the best way to create a textview that show me the actuall > logfile > > in a gtktextview? > > Currently i update a buffer with gtk_

Re: showing a logfile in a Textview(like tail -f)

2006-07-20 Thread rupert
On 7/20/06, John Coppens <[EMAIL PROTECTED]> wrote: > > On Thu, 20 Jul 2006 11:55:47 +0200 > rupert <[EMAIL PROTECTED]> wrote: > > > Currently i update a buffer with gtk_text_buffer_insert_at_cursor(data, > > line, -1);in a timeout, the problem here is that

showing a logfile in a Textview(like tail -f)

2006-07-20 Thread rupert
the idea that there is something wrong with my fileopening, maybe thx rupert ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

periodically check if a service is running

2006-07-13 Thread rupert
Hello, imm trying to create a small window that shows me if a serice is running and displays a small icon that shows the status i created this function that checks if a PID is there: gint check_samba(){ gint smb_pid2; gchar check_smb_cmd[512]; sprintf(check_smb_cmd, "cat /var/run/samb

save treeview selection and remove images

2006-03-24 Thread rupert
Hi, this time i have two problems where i cant find any solution for. first i create some images for different selections and I want to remove these images for other selections, 3 stars are shown as a maximum, setting the images work, but i couldnt find the right way to remove the pictures. if(r

treeview, gtk and mysql

2006-03-18 Thread rupert
Hello, im trying to create an application that uses a mysql database to get its information, first a treeview is created from the information stored in one column, than when I select a row some more information should be displayed as GTK Labels and a picture is shown for each row. I have the whole

Re: showing a txt file in a dialog

2006-03-14 Thread rupert
2)); gtk_box_pack_end(GTK_BOX(vbox2), GTK_WIDGET(hbuttonbox), FALSE, FALSE, 0); gtk_container_add(GTK_CONTAINER(window2), GTK_WIDGET(vbox2)); gtk_widget_show_all(GTK_WIDGET(window2)); } } void quit_readme(GtkWidget *widget, gpointer daten){ gtk_main_quit(); } On 3/13/06, rupert <[

showing a txt file in a dialog

2006-03-13 Thread rupert
Hello, im trying to create a dialog that show me the content of a textfile. I already got it working in a standalone application, now im trying to intregrate this into my main app. The text is shown, but in a really small window, i also would like to know if this is the right way i should handle/do

change picture and text on button click

2006-03-04 Thread rupert
How can i change a picture on the fly when I klick a button(or select a line in a treeview)? As i understood i can get the actuall picture with g_object_get and set a new one with g_object _set, so i do a gdk_pixbuf_new_from_file and put that into pixbuf, but I only get some error in the bash: (sp

Re: get selection and do something

2006-03-04 Thread rupert
ok, now i have the output to the console with g_print, im trying to change a picture and/or a label to the info the lines. The label should show the name of the selected row and the picture should be rowname.png. In one example he just gets the actuall picture with g_object_get(shot, "pixbuf", &sta

get selection and do something

2006-03-03 Thread rupert
Hi, im bloody new to GTK Programming and working on an example from my book. I wanna select a row from a gtk_tree_view and show a different picture for each selected row. I found the command to get the selection and know how to do an action if one is selected, so my question is how can I pass the s