Re: Call to gtk_main() crashes

2009-04-29 Thread Fernando Apesteguía
On Wed, Apr 29, 2009 at 8:38 AM, RNG wrote: > Hi, > > I am trying to get an old application to work using glade2. I've > managed to get it to compile but the call to >  gtk_main(); > crashes the application. The backtrace looks like this: > > (gdb) bt > #0  0xb8041422 in __kernel_vsyscall () > #1

Re: C vs C++ for GTK

2007-11-26 Thread Fernando Apesteguía
On 11/25/07, Benoît Dejean <[EMAIL PROTECTED]> wrote: > > Le dimanche 25 novembre 2007 à 00:03 +0100, Tomas Carnecky a écrit : > > Patrick wrote: > > > is C++ to complicated? > > C++ is more complex than C, and thus harder to fully understand. > > > > > Is C going out of date? > > No, it's still be

Re: timeout function not called

2007-10-02 Thread Fernando Apesteguía
On 10/2/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > I'm still muddling my way through my first GTK application (and I'm a > relative newbie on all software matters). > > I have the following in one of my callbacks: > > timer = g_timout_add(50, (GSourceFunc) progress_update, > (gpointer)progr

Re: is there a memory leak problem with gtk_widget_queue_draw()?

2007-09-07 Thread Fernando Apesteguía
On 9/6/07, okty <[EMAIL PROTECTED]> wrote: > > Hi, > > I am using GLib's memory profiling to check memory usage of my program. I > noticed that for each refresh in my screen with gtk_widget_queue_draw(), I > am checking my allocated memory and each refresh increases the size of > allocated memory.

Re: Problem with gtk_label_set_text

2007-06-28 Thread Fernando Apesteguía
On 6/28/07, Divya yadav <[EMAIL PROTECTED]> wrote: > Hello everyone > I am using gtk_label_set_text in a dynamic gui and label keeps on changing > around 1-2 times every second.My program crashes because of this. > Is there any way to do the same. Is this a multi-threaded application? > > Thanks

Re: g_idle_add and thread safety

2007-06-06 Thread Fernando Apesteguía
On 6/4/07, Gabriele Greco <[EMAIL PROTECTED]> wrote: > I know GTK APIs are not thread safe, I've an app with a thread doing a > massive job that wants to update the gui status every few cycles, to do > so I remembered an old post speaking about g_idle_add. > > The question I have and which I didn't

Re: Coding systems ?

2007-01-22 Thread Fernando Apesteguía
On 1/22/07, John Cupitt <[EMAIL PROTECTED]> wrote: > Hi Olivier, > > On 1/22/07, Olivier Ramare <[EMAIL PROTECTED]> wrote: > > -- The file I read has nothing other than ascii > > characters (letters even from a-zA-Z and punctuation). > > -- But gtk complains with enumerables > > ---

Re: gnome_program_init id necessary?

2006-12-26 Thread Fernando Apesteguía
On 12/26/06, Enrico Sardi <[EMAIL PROTECTED]> wrote: > Hi all! > > I was wondering...is gnome_program_init necessary in an application for > gnome or gtk_init is sufficient? What is the exact utility of > gnome_program_init? The best answer: http://developer.gnome.org/doc/API/2.0/libgnome/libgnom

Re: Debugging application

2006-12-18 Thread Fernando Apesteguía
On 12/18/06, Fernando Apesteguía <[EMAIL PROTECTED]> wrote: > Hello list! > > I'm developing a gtk application. The point is that I see in Gnome > System Monitor that my application (a loop that continuously read a > file and update data in the window) is eating more m

Debugging application

2006-12-18 Thread Fernando Apesteguía
Hello list! I'm developing a gtk application. The point is that I see in Gnome System Monitor that my application (a loop that continuously read a file and update data in the window) is eating more memory as it is executing... There are no problems (no errors or warnings) during compilation and va

Re: Libglade application distribution how-to?

2006-11-27 Thread Fernando Apesteguía
On 11/27/06, Fabricio Rocha <[EMAIL PROTECTED]> wrote: > Dearest ones, > >I have a working set of .C and .H source files for my > application, a bunch of Glade files and their icons in a subdirectory > called "pixmaps", and I can get all this stuff compiled and functional > through Anjuta.

Glade GUI: changing mechanism

2006-10-21 Thread Fernando Apesteguía
Hi list, Currently, we're using code generation in our project to build the GUI. However, AFAIK there is no more code generation support in Glade, so we would like to build our GUI from a XML file. Can you point me to a guide to make this migration simpler? Best Regards _

gtk_file_chooser_dialog_new

2006-10-16 Thread Fernando Apesteguía
Hi, I read the documentation about gtk_file_chooser_dialog_new() so I write this line: gtk_file_chooser_dialog_new (_("Save File"), NULL, GTK_FILE_CHOOSER_ACTION_SAVE, GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL, GTK_STOCK_SAVE, GTK_RESPONSE_ACCEPT, NULL); However, I g

Re: Use of fgets, puts, rewind in Gtk+

2006-10-13 Thread Fernando Apesteguía
On 10/12/06, Sucheta Ghosh <[EMAIL PROTECTED]> wrote: > Hello, > > I wished to read a file and get some lines from there like this: > - > fp=fopen("filename", "r"); > for(k=0; k<8; k++){ > n=a[k]; > for (i=1; i<=n; i++) //Here 'n' is the l

Re: Gnome memory requirements

2006-09-16 Thread Fernando Apesteguía
On 9/14/06, Tomasz Jankowski <[EMAIL PROTECTED]> wrote: > > GNOME (sometimes) use more memory, then KDE, but it's almost always faster! > Funny, isn't it? I used KDE in version 3.5.x some time ago and I must say, > that it was sometimes quite slow on my machine, which isn't old (1GB of ram > memory

Gnome memory requirements

2006-09-13 Thread Fernando Apesteguía
Hi list, First of all, I have to say that I'm not sure if this is the proper list to make this post. My apologies if it's not. Today I read this article: http://ktown.kde.org/~seli/memory/ via osnews.com I was surprised because the amount of memory taken by Gnome, specially if we compare the r

ProgressBar

2006-08-30 Thread Fernando Apesteguía
Hi All! I would like to know if it is possible that the progress bar behaves like a thermometer, this is, change the color of the progress bar in certain regions, and maybe I want to have a specific text for each of these regions. Which functions should I look for? I see http://developer.gnome.or

Fwd: Resizing window

2006-08-23 Thread Fernando Apesteguía
-- Forwarded message -- From: Iago Rubio <[EMAIL PROTECTED]> Date: Aug 22, 2006 12:40 PM Subject: Re: Resizing window To: gtk-app-devel-list@gnome.org On Tue, 2006-08-22 at 11:54 +0200, Iago Rubio wrote: > On Tue, 2006-08-22 at 09:22 +0200, Fernando Apesteguía wrote: >

Re: Resizing window

2006-08-22 Thread Fernando Apesteguía
On 8/22/06, Samuel Cormier-Iijima <[EMAIL PROTECTED]> wrote: > > I had the same problem with a FileChooserWidget with an extra > GtkExpander widget in it. One solution is to make the window fixed > (unresizable). Of course, the downside is that the user can't ­­resize > it himself. Let me know if y

Resizing window

2006-08-21 Thread Fernando Apesteguía
Hi list! I'm developing a simple application. I have a tabbed pane. Some of these tabs are bigger than others, with more text and more widgets. When I click on one of these tabs, the window growns, what is great, but when I click in a smaller tab, the window doen't return to the minimum required s

Fwd: GtkTreeView, GtkListStore and more...

2006-08-17 Thread Fernando Apesteguía
I re-checked my code and I think I fixed it. It was a problem of sorting (bad sorting, of course). Now it appears to work find. Thanks for your advices Best regards -- Forwarded message -- From: Fernando Apesteguía <[EMAIL PROTECTED]> Date: Aug 17, 2006 6:34 PM Subjec

Fwd: GtkTreeView, GtkListStore and more...

2006-08-17 Thread Fernando Apesteguía
rwarded message -- From: Iago Rubio <[EMAIL PROTECTED]> Date: Aug 17, 2006 6:14 PM Subject: Re: GtkTreeView, GtkListStore and more... To: gtk-app-devel-list@gnome.org On Thu, 2006-08-17 at 17:43 +0200, Fernando Apesteguía wrote: > for(){ >... >if(should_be_deleted) >

GtkTreeView, GtkListStore and more...

2006-08-17 Thread Fernando Apesteguía
Hi List! I have a problem dealing with my GtkTreView and related objects. In a first step, I need to add some rows to my GtkTreeView, so I used a pair of: gtk_list_store_append(model,&iter); gtk_list_store_set(model,&iter,0,data1,1,data2,-1); functions inside a loop. After this, I will

Fwd: Fwd: Systray icon..

2006-08-13 Thread Fernando Apesteguía
I have no idea.. never heard before. Tip: If you need help on using eggtrayicon, see the jabber code ;) Regards -- Forwarded message -- From: Enrico <[EMAIL PROTECTED]> Date: Aug 13, 2006 12:27 PM Subject: Re: Fwd: Systray icon.. To: gtk-app-devel-list@gnome.org Fe

Fwd: Systray icon..

2006-08-11 Thread Fernando Apesteguía
Using eggtrayicon.c and eggtrayicon.h Best regards -- Forwarded message -- From: Enrico <[EMAIL PROTECTED]> Date: Aug 11, 2006 5:05 PM Subject: Systray icon.. To: gtk-app-devel-list@gnome.org Hi at all! How can I display an icon in the system tray without using GtkStatusIcon (I'

Fwd: Which widget should I use?

2006-08-09 Thread Fernando Apesteguía
Ok, Many thanks I think I'll use a GtkTreeView. Best Regards -- Forwarded message -- From: Guy Rouillier <[EMAIL PROTECTED]> Date: Aug 9, 2006 4:00 AM Subject: Re: Which widget should I use? To: gtk-app-devel-list@gnome.org Fernando Apesteguía wrote: > Hi list!

Which widget should I use?

2006-08-08 Thread Fernando Apesteguía
Hi list! I need to represent some data in my application. The data is actually a trace of functions. The size of the list is not fixed, but it has a limit of 200 elements. When the 200 limit is reached, I clear the older element and then add the new one. I have the list in a file (from procfs) and

Fwd: threads & gtk

2006-08-05 Thread Fernando Apesteguía
-- Forwarded message -- From: chabayo <[EMAIL PROTECTED]> Date: Aug 5, 2006 8:41 PM Subject: AW: threads & gtk To: gtk-app-devel-list@gnome.org Am 05.08.2006 19:38:58 schrieb(en) Peter "Firefly" Lund: > I think you are looking for g_thread_create() and related functions. ...oh, y

Fwd: threads & gtk

2006-08-05 Thread Fernando Apesteguía
I'm not sure about what are you asking... Bur I think that you should check the fork() return value in order to guess if you are the parent or if you are the child (forked) process. In addition... you could consider to use GThreads instead of the libc fork() system call. It's not a good idea to mi

Fwd: glade begginer - callbacks.c

2006-07-19 Thread Fernando Apesteguía
In general, don't write anything in those files marked as generated by glade. Most of them will be overwritten. (see the disclairmer at the top of the file). Instead, you could call the initialization functions from main.c before you run into the gtk_main loop. Best Regards -- Forwarded

Re: GNOME tray

2006-07-13 Thread Fernando Apesteguía
Try with GtkStatusIcon http://developer.gnome.org/doc/API/2.0/gtk/GtkStatusIcon.html you can also use the eggtrayicon.c and eggtrayicon.h if you have an older Gtk version. This last approximation works on kde (sorry, I don't remember the version... some of the newest that Gentoo uses) Regards

Re: periodically check if a service is running

2006-07-13 Thread Fernando Apesteguía
Maybe you are looking for g_timeout_add function http://developer.gnome.org/doc/API/2.0/glib/glib-The-Main-Event-Loop.html#g-timeout-add Regards On 7/13/06, rupert <[EMAIL PROTECTED]> wrote: > > Hello, > > imm trying to create a small window that shows me if a serice is running > and > displays

Re: Do GTKhave tabbed pane or multi-page or such?

2006-07-05 Thread Fernando Apesteguía
Are you looking for GtkNotebook? http://developer.gnome.org/doc/API/2.0/gtk/GtkNotebook.html Remember that the Guideline suggests not to use this if there are a lot of tabs and they need to be scrolled... if that is the case, then use a list: http://developer.gnome.org/projects/gup/hig/1.0/contro

Re: gtk_statusbar!

2006-06-30 Thread Fernando Apesteguía
;reading numeber2") > gtk_statusbar_pop() > > fgets(fp,200,registro) /*read operation*/ > if(strstr(operation,"sum") > { > suma=num1+num2 > gtk_statusbar_push("operating..") > } > > it onmy writes in the status bar "op

Re: gtk_statusbar!

2006-06-29 Thread Fernando Apesteguía
That's because you are calling real_opration() from the button callback. So the event loop is not running and it can't update your GUI. You should call gtk_main_iteration while gtk_events_pending==true more at http://developer.gnome.org/doc/API/2.0/gtk/gtk-General.html#gtk-events-pending and http:

Re: where is GtkStatusIcon

2006-06-27 Thread Fernando Apesteguía
I had the same problem, finally solved with eggtrayicon.c and the proper.h I'm not sure where I found it. But try in: http://svn.ndesk.org/ndesk/nbind/ngtkext/eggtray/glue/eggtrayicon.c http://svn.ndesk.org/ndesk/nbind/ngtkext/eggtray/glue/eggtrayicon.h It worked fine for me :) Best regards

C/GTK question

2006-06-17 Thread Fernando Apesteguía
Please, refer to some C tutorials and handbooks on Internet. This is a very basic question. You should include .h files, not .c . I recommend that you read first to learn C and then to learn GTK. I liked C Course by Dave Marshal and Advanced Linux Programming as well, both available on Internet.

Simple Yes/No dialog

2006-06-17 Thread Fernando Apesteguía
There is something named GnomeDialog with Accept and Cancel buttons, but it is marked as deprecated in my Glade 2.10 so you should use it More ideas? -- Forwarded message -- From: [EMAIL PROTECTED] <[EMAIL PROTECTED]> Date: Jun 16, 2006 5:50 PM Subject: Simple Yes/No dialog To

using gtk preffix, it's ok??

2006-06-07 Thread Fernando Apesteguía
Only for my curiosity... what does "egg" means? I remember that I asked this to myself when I used eggTrayIcon :) Best regards -- Forwarded message -- From: John (J5) Palmieri <[EMAIL PROTECTED]> Date: Jun 6, 2006 11:29 PM Subject: Re: using gtk preffix, it's ok?? To: Alexandre <

Xlib, thread and gnome

2006-05-15 Thread Fernando Apesteguía
That's a synchronization problem. I experimented something similar a few time ago. The problem with Xlib is because probably you are not returning from a callback or you take too long to go back and return to gtk. If you are attempting to access gtk widgets from other thread than the "main" one,

Gnome Help

2006-05-11 Thread Fernando Apesteguía
Hi, I would like to write the gnome help for a little application that I'm developing, but I can't find any tutorials. At developer.gnome.org I only found routines for displaying help, but... how should I write the help? Is it XML or HTML? Thanks in advance. _

Directory tree library?

2006-05-09 Thread Fernando Apesteguía
You should use a GtkTreeView object. Read more at: http://developer.gnome.org/doc/API/2.0/gtk/TreeWidgetObjects.html Best regards -- Forwarded message -- From: raul o <[EMAIL PROTECTED]> Date: 08-may-2006 15:47 Subject: Directory tree library? To: gtk-app-devel-list@gnome.org H

Gthreads again

2006-04-24 Thread Fernando Apesteguía
And how to kill the gthread if there is not something like pthread_cancel? (Thanks for your patience) Best regards -- Forwarded message -- From: Tristan Van Berkom <[EMAIL PROTECTED]> Date: 24-abr-2006 20:04 Subject: Re: Gthreads again To: Fernando Apesteguía <[EMAIL

Gthreads again

2006-04-24 Thread Fernando Apesteguía
hread when it was created with pthread instead of g_thread? -- Forwarded message -- From: Tristan Van Berkom <[EMAIL PROTECTED]> Date: 24-abr-2006 19:21 Subject: Re: Gthreads again To: Fernando Apesteguía <[EMAIL PROTECTED]> Cc: gtk-app-devel-list@gnome.org Fernando

g_cond_signal from delete_event callback

2006-04-24 Thread Fernando Apesteguía
Hi, I have an app with two threads. I would like that when the user tries to close the application by clicking in the x button (upper right corner) of the window, the other thread pauses and the application goes to the panel. I wrote a simple example and it worked (I performed a g_cond_signal from

Gthreads again

2006-04-24 Thread Fernando Apesteguía
Hi, I wrote a mail some time ago, but nobody answered me :( My problem is that I had two threads. The second one was a pthread. I performed and exit from a callback, so I had to pthread_cancel the secondary thread to avoid a race condition and an eventual app crash. Now, I'm using GThreads. I don

refreshing widgets from callback

2006-04-19 Thread Fernando Apesteguía
Hi, I had a function to refresh some widgets. Inside this function I perfomed a gdk_threads_enter() / gdk_threads_leave() to prevent access from the secondary thread. update() { gdk_threads_enter() ... ... gdk_threads_leave() } I wanted to reuse this function from a callback, but since callbacks

List of functions available against gtk/glib version(s)?

2006-04-18 Thread Fernando Apesteguía
Look in your gtk headers to know what is available and what is not. At least I do this. Best regards! -- Forwarded message -- From: Justin Clift <[EMAIL PROTECTED]> Date: 18-abr-2006 14:07 Subject: List of functions available against gtk/glib version(s)? To: GTK App Dev Mailing Li

Xlib: unexpected async reply

2006-04-16 Thread Fernando Apesteguía
I think it's better you put some pieces of code so more people can help you. I'm not an expert, but basically, you should block other threads when you want to access GtkWidgets, e.g. gdk_threads_enter() gtk_label_set_text(my_label,"my_text"); gdk_threads_leave() And try to return to GTK as so

Xlib: unexpected async reply

2006-04-15 Thread Fernando Apesteguía
Hi, it's me again... now a bit embarrassed I found the problem after more and more debugging. The read_data_from_file() function was a function with variable number of parameters implemented with va_list... Due to a stupid mistake this function did not return when a certain number of parameter

Xlib: unexpected async reply

2006-04-15 Thread Fernando Apesteguía
Hi list! I get this error when runing my GTK application: Xlib: unexpected async reply (sequence 0xdfd)! (Te sequence number varies.) A little explanation about the application: It runs two threads. One of them is runing inside the gtk_main() loop. The other one, periodically reads from differ

show/hide widget within other widget

2006-04-04 Thread Fernando Apesteguía
If you expected the user works with the calendar I think you can create it at start up. If using the calendar is not usual, maybe you could delay the creation and when the user enables it, create the calendar and place it in your window. Creating all widgets at start up is faster for you.. but if

Segmentation Fault

2006-04-04 Thread Fernando Apesteguía
Are you dealing with threads? Maybe it's a problem of concurrency. Could you be more precise? Best regards! -- Forwarded message -- From: Sandeep KS <[EMAIL PROTECTED]> Date: 04-abr-2006 19:31 Subject: Segmentation Fault To: Gtk Hello everyone, I have written a program us

Gthreads

2006-03-26 Thread Fernando Apesteguía
Hi, I'm porting an application from pthread semantic to GThreads framework. I used pthread_cancel(pid) to kill a thread, does exists something similar in gthreads? I've read http://mail.gnome.org/archives/gtk-devel-list/2003-February/msg00082.htmland it appears it doesn't exist. So, if I performe

GThread and GCond

2006-03-22 Thread Fernando Apesteguía
Hi, I hope you can help me ;) I'm working with two threads. One of them is running in an infinite loop (well, it finishes under certain conditions) What I want to do is that the infinite loop pauses some times. So I create a GCond, but I think I didn't understand how it works. I do something like

GUI construction tips

2006-03-21 Thread Fernando Apesteguía
in advance!! -- Forwarded message -- From: Daniel Pekelharing <[EMAIL PROTECTED]> Date: 21-mar-2006 13:48 Subject: Re: GUI construction tips To: Fernando Apesteguía <[EMAIL PROTECTED]> Cc: gtk-app-devel-list@gnome.org It's easy enough to add padding space when packing your

GUI construction tips

2006-03-21 Thread Fernando Apesteguía
Hi, I'm creating a GUI with Gtk. I'm using VBoxes and HBoxes, so my app resizes when dpi changes and so on. But I don't like the look of some aspects. For example, If I have a Hbox with two columns and I place two label (one in each column) the label is so close to the window border. So I place ad

Suggestion for GTK+ app devlopment book

2006-03-01 Thread Fernando Apesteguía
You can see http://developer.gnome.org/doc/ suggestions about books, on line books, tutorials and more. Best regards!! -- Forwarded message -- From: Prabhakar Muthuswamy <[EMAIL PROTECTED]> Date: 01-mar-2006 20:31 Subject: Suggestion for GTK+ app devlopment book To: gtk-app-devel-

Problem with GValue

2006-02-17 Thread Fernando Apesteguía
Sorry if this is so trivial... Did you try to g_free it? Best regards! -- Forwarded message -- From: Maciej Piechotka <[EMAIL PROTECTED]> Date: 17-feb-2006 11:43 Subject: Problem with GValue To: Gtk Mailing list I'd like to destroy GValue. How should I do it? I cannot find any

Threads and waits

2006-02-15 Thread Fernando Apesteguía
Hi, I have an app. that runs two threads, the main one and other thread that collects information from files. I launch the thread by calling pthread_create and here comes my first question ¿Should I use g_thread_create instead? Now I have no problems with these pthreads and I can perform mutual e

About layouts

2006-02-14 Thread Fernando Apesteguía
layouts To: gtk-app-devel-list@gnome.org Cc: Fernando Apesteguía <[EMAIL PROTECTED]> Fernando Apesteguía wrote: > First of all, thanks for your suggestions. > > Actually my app. uses a static layout and the GtkLabels inside this, don't > grown when the text becomes longer. The

About layouts

2006-02-14 Thread Fernando Apesteguía
hierarchy (three levels for example)... will I have a lack of performance when loading the UI? Thanks in advance!!! -- Forwarded message -- From: Gus Koppel <[EMAIL PROTECTED]> Date: 14-feb-2006 14:30 Subject: Re: About layouts To: gtk-app-devel-list@gnome.org Fernando

About layouts

2006-02-14 Thread Fernando Apesteguía
Hi ! I'm developing an app with gtk. I use glade for GUI development. My question is about the different kinds of layouts. I would like my app resizes by itself when a label text is really long. I've noticed I can do this by placing a table layout (I think vbox and hbox work well too). In fact, th

labels and dpi

2006-01-10 Thread Fernando Apesteguía
2006/1/10, Ronald Vincent Tarrant <[EMAIL PROTECTED]>: > > Fernando Apesteguía wrote: > > >Yes but... in fact if I make a bigger label and the user changes dpi > again, > >I run into the same problem. My question is if this is fixable? Or can I > >only mak

(no subject)

2006-01-10 Thread Fernando Apesteguía
Yes, in fact, callback function does. You cand do something like: my_function(GtkWidget *mycontrol) Best regards!!! -- Forwarded message -- From: kalyani sathiyamoorthy <[EMAIL PROTECTED]> Date: 10-ene-2006 7:39 Subject: (no subject) To: gtk-app-devel-list@gnome.org is it possib

labels and dpi

2006-01-10 Thread Fernando Apesteguía
10-ene-2006 4:39 Subject: Re: labels and dpi To: gtk-app-devel-list@gnome.org Fernando Apesteguía wrote: >I have a problem about displaying text on labels. When I change the dpi font >configuration, the text doesn't fit the label, so the message appear to be >cutted. > >I woul

labels and dpi

2006-01-09 Thread Fernando Apesteguía
Hi, I have a problem about displaying text on labels. When I change the dpi font configuration, the text doesn't fit the label, so the message appear to be cutted. I would like to know if there is any way to handle this. May be I'm forgetting some gtk_label_set_* function? Thanks in advance!! __

Catch signal

2006-01-04 Thread Fernando Apesteguía
Hi, I've developed an app test to catch a delete_event for a window so I can show some messages and then depending on the user answer close or not the window. 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

gtk label size

2006-01-02 Thread Fernando Apesteguía
--- From: David Necas (Yeti) < [EMAIL PROTECTED]> Date: 02-ene-2006 18:44 Subject: Re: gtk label size To: Fernando Apesteguía <[EMAIL PROTECTED]> Cc: gtk-app-devel-list@gnome.org On Mon, Jan 02, 2006 at 06:24:03PM +0100, Fernando Apesteguía wrote: > Suppose that the window where labels

gtk label size

2006-01-02 Thread Fernando Apesteguía
Hi to all of you and Happy new Year! I'm translating my gtk app but I have a doubt: Suppose that the window where labels are located is size-fixed. The problem comes when I create the label longer enough (Great Mistake!!!) for most of languages... Normally the text is something like "

GtkStatusIcon

2005-12-27 Thread Fernando Apesteguía
Hi, I'm a bit confusing. I'm developing under Whitbox EL 4. I have this packages installed: gtk2-2.4.13-14 pygtk2-libglade-2.4.0-1 ... ... gtk2-devel-2.4.13-18 gtk2-engines-2.2.0-7.el4 gtk+-1.2.10-33 gtk2-2.4.13-18 As I can see in http://developer.gnome.org/doc/API/2.0/gtk/ it is recommended to

gtk expander

2005-12-23 Thread Fernando Apesteguía
, I looked for in a wrong URL. Best regards -- Forwarded message -- From: David Necas (Yeti) <[EMAIL PROTECTED]> Date: 23-dic-2005 15:41 Subject: Re: gtk expander To: Fernando Apesteguía <[EMAIL PROTECTED]> Cc: gtk-app-devel-list@gnome.org On Fri, Dec 23, 2005 at 03:3

gtk expander

2005-12-23 Thread Fernando Apesteguía
Hi, I have a problem with gtk expander. I create that object and put it in the window, using Glade. But how can I attach controls to the expander so when I click on it the controls are showed and when click again they aren't? I've visited http://developer.gnome.org/doc/API/gtk/ but there is no in

systray icon

2005-12-16 Thread Fernando Apesteguía
in advance -- Forwarded message -- From: HuamiSoft Hubert Sokolowski <[EMAIL PROTECTED]> Date: 16-dic-2005 19:52 Subject: Re: systray icon To: gtk-app-devel-list@gnome.org HI! On Fri, 16 Dec 2005 17:42:24 +0100 Fernando Apesteguía <[EMAIL PROTECTED]> wrote: > H

systray icon

2005-12-16 Thread Fernando Apesteguía
Hi, Do you know how to find a simple example to make a systray icon in gnome panel? If you can tell me the name of the related functions, I'll search for documentation. Thanks!! ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mai

how can include just glib

2005-12-13 Thread Fernando Apesteguía
Did you try to make this? #include And then link with -lglib-2.0 (link against your glib version) Best regards -- Forwarded message -- From: Yiannis <[EMAIL PROTECTED]> Date: 13-dic-2005 16:08 Subject: how can include just glib To: gtk-app-devel-list@gnome.org Hi, I would li

Custom icons

2005-12-11 Thread Fernando Apesteguía
oject/project1/pixmaps/blah.png" That should works, but the path should be relative and make use of de --prefix option in configure script. I did: ./configure --prefix=/home/fernape/prueba and copied png files into bin directory with the executable file but still no enjoy. More ideas? T

Custom icons

2005-12-11 Thread Fernando Apesteguía
Hi, I'm developing my first serious app for GNOME using gtk and Glib. At this moment, the application works fine but I can set my custom icons. When I run the application, I get this problems: ** (lkmonitor:10713): WARNING **: Couldn't find pixmap file: lkmonitor/gnome-logo-icon-transparent.png

SIGABRT due double free

2005-11-24 Thread Fernando Apesteguía
Thanks, now it appears to works fine. I thought gtk was completly thread safe, but is logic tu use a method for mutual exclusion. Really thanks a lot. We'll meet in my next post :) Best regards!! -- Forwarded message -- From: Andreas Stricker <[EMAIL PROTECTED]> Date: 24-nov-2005

SIGABRT due double free

2005-11-23 Thread Fernando Apesteguía
Hi, I'll try to explain my problem as clear as possible: I'm developing a gtk/gnome application with two threads. An schema of the application is this: void thread_func(){ blah blah ... } main(){ blah blah ... pthread_create(thread_func); ... ... gtk_main(); } thread_func is updating data per