Re: Destroying a menu

2008-01-23 Thread Iago Rubio
. It have nothing to do with reference counting. P.S. Sorry for the private mail. It was meant to be sent to the list. -- Iago Rubio ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel

Re: Using GLib main loop to free up temporary memory

2007-01-03 Thread Iago Rubio
On Wed, 2007-01-03 at 13:02 -0200, Leandro A. F. Pereira wrote: Greetings! When you program with GTK+ (or GLib) with C, sometimes there's a need for temporary dynamically-allocated variables. The problem is to free them in the right time — or worse — having to use even more auxiliary

Re: gtk_file_selection - select only folder?

2006-10-31 Thread Iago Rubio
GtkFileFilter - as for GTK+-2.4 - you can use GtkFileChooser and with the GtkFileAction set to GTK_FILE_CHOOSER_ACTION_SELECT_FOLDER. -- Iago Rubio ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk

Re: Follow windows with a botton

2006-10-22 Thread Iago Rubio
page to another trough the button's cliked event - so you should put one button on each page. -- Iago Rubio ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: convert an int variable into a gdouble

2006-09-29 Thread Iago Rubio
= 3; d = (gdouble) i; or d = i; A gdouble doubles in size an int ... so, what's the problem ? -- Iago Rubio ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: Resizing window

2006-08-22 Thread Iago Rubio
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: I'm still looking for a solution. My app has internationalization support. So make the window fixed is not possible in order to allow all the different messages to fit

Re: GtkComboBox cell rendering?

2006-08-19 Thread Iago Rubio
); gtk_widget_show (dialog); gtk_main (); return 0; } -- Iago Rubio ___ 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 clear out a ComboBoxEntry

2006-08-18 Thread Iago Rubio
using those calls, your combo box uses a list store as tree model so the function below will suffice. void remove_all (GtkComboBox *combo_box) { GtkTreeModel* model; model = gtk_combo_box_get_model (combo_box); gtk_list_store_clear (GTK_LIST_STORE(model)); } Hope this helps. -- Iago Rubio

Re: Fwd: GtkTreeView, GtkListStore and more...

2006-08-18 Thread Iago Rubio
traverse_model (GtkTreeModel *model) { gtk_tree_model_foreach (model, foreach_func, NULL); } Hope this helps. -- Iago Rubio ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: Signal Handling problems with own data

2006-08-18 Thread Iago Rubio
? This depends on the method you used. -- Iago Rubio ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: GtkTreeView, GtkListStore and more...

2006-08-17 Thread Iago Rubio
on gtk_tree_model_iter_next. Cheers. -- Iago Rubio ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: problem displaying rgb images on window

2006-08-16 Thread Iago Rubio
. You can get rid of this loop, and you must not destroy the pixbuf until the widget is destroyed. -- Iago Rubio ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: My Gscanner Problem...

2006-08-09 Thread Iago Rubio
); }else{ printf (data is not int (%s)\n, scanner-value.v_string); } Cheers. -- Iago Rubio ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman

Re: Problem grabbing motion-notify events.

2006-08-07 Thread Iago Rubio
to it, as it can be destroyed when you do that. The steps for re-parenting a widget should be: g_object_ref() gtk_container_remove gtk_container_add g_object_unref() But better to try gtk_widget_reparent (). -- Iago Rubio ___ gtk-app-devel-list mailing list gtk

Re: Gtk application cross compilation proble

2006-08-06 Thread Iago Rubio
. -- Iago Rubio ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: memory leak with gtk+-2.8.20-r1

2006-08-06 Thread Iago Rubio
you'll realize that things are not always as simpler as they look. Your code grows to 32603 lines before compilation :) -- Iago Rubio ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: memory leak with gtk+-2.8.20-r1

2006-08-06 Thread Iago Rubio
On Sun, 2006-08-06 at 11:38 +0200, David Nečas (Yeti) wrote: On Sun, Aug 06, 2006 at 09:45:00AM +0200, Iago Rubio wrote: I've just compiled and run this code snippet with valgrind, and the results are on my system (Fedora): ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 12 from

Re: memory leak with gtk+-2.8.20-r1

2006-08-06 Thread Iago Rubio
they are false positives. ==29096==still reachable: 41,380 bytes in 618 blocks. That's completely normal. Surely they're static variables holding pointers to freed memory. From this output, I don't see an obvious leak. -- Iago Rubio ___ gtk-app-devel-list

Re: Make notebook page active

2006-07-23 Thread Iago Rubio
? So, there is really something missing? What is it? gtk_widget_show_all (vbox);// ?? -- Iago Rubio ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: Raster operations

2006-07-18 Thread Iago Rubio
, CAIRO_OPERATOR_DEST_OVER); // ... This is available as for GTK+2.8. -- Iago Rubio ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: platform support

2006-07-16 Thread Iago Rubio
but sparkling. Just a counsel if you're going to develop multi-platform GTK+ apps: glib is your best friend, use it as much as you can. Regards. -- Iago Rubio -- Iago Rubio ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http

Re: GtkWindow show and move

2006-07-13 Thread Iago Rubio
yes there will be differences but not what you want. This will set the preferred size of your window so you won't be able to shrink it. -- Iago Rubio ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman

Re: Cant start editing in a GtkTreeView

2006-07-09 Thread Iago Rubio
editable cell of the treeview and start editing. The problem is that the cursor goes there but it dosnt start editing. Any idea? Thanks! Look at gtk_cell_renderer_start_editing http://developer.gnome.org/doc/API/2.0/gtk/GtkCellRenderer.html#gtk-cell-renderer-start-editing Regards. -- Iago Rubio

Re: About multiple display

2006-07-07 Thread Iago Rubio
is active since 2.2 -- Iago Rubio ___ 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 get and change the RadioButton's display texts

2006-07-07 Thread Iago Rubio
(GTK_BUTTON(radio_button), label_text); } Cheers. -- Iago Rubio ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: Get width of window

2006-06-30 Thread Iago Rubio
, gint *height); http://developer.gnome.org/doc/API/2.0/gtk/GtkWindow.html#gtk-window-get-size -- Iago Rubio ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: update a progress bar from a thread

2006-05-16 Thread Iago Rubio
You must use gdk_threads_enter and gdk_threads_leave surrounding any UI change on the thread, to acquire the gdk global mutex. On Mon, 2006-05-15 at 13:50 +0200, nik600 wrote: hi i upgrade a progress bar from the body of a thread with the following code: void *body_monitor_avanzamento(void

Re: gtk_statusbar

2006-05-09 Thread Iago Rubio
); gtk_statusbar_push (statusbar, context_id, File open(ed)); I'm trying but the only sentence that is written is the last one.File Open. Thanks a lot. May be the file open operation is so quick that you only see the last message ? Regards -- Iago Rubio

Re: Beginner's question: About dialog

2006-05-07 Thread Iago Rubio
; } -- Iago Rubio ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: Fundamentals of GTK

2006-04-05 Thread Iago Rubio
main loop proccesing GTK events. -- Iago Rubio ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: Pass text to a browser...

2006-03-15 Thread Iago Rubio
); g_error_free(error); } } } -- Iago Rubio ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: Pass text to a browser...

2006-03-15 Thread Iago Rubio
On Wed, 2006-03-15 at 13:36 +0100, Iago Rubio wrote: void on_button1_clicked(GtkButton *button, gpointer user_data) { gchar *output; GError *error = NULL; GtkWidget *label = lookup_widget(GTK_WIDGET(button), label1); GtkWidget *entry = lookup_widget(GTK_WIDGET(button), entry1

Re: GHashTable Frustration

2005-12-15 Thread Iago Rubio
(); } g_message(Done!); return 0; } I suspect its something to do with the scope of newTrigger but since I'm dynamically allocating it I don't see how. May be the deletion of the old trigger ?? -- Iago Rubio ___ gtk-app-devel-list mailing

Re: Custom icons

2005-12-12 Thread Iago Rubio
gdk-pixbuf-csource`. -- Iago Rubio ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: Odd font display problem on AIX 5.2/5.3 with _same_ fonts

2005-11-12 Thread Iago Rubio
the same font. Take a look at /etc/fonts/fonts.conf - if it exists in AIX - and ensure they're using a font with u+0020 support such as Bitstream Vera as default. -- Iago Rubio ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http

Re: GtkTooltips event handler

2005-11-01 Thread Iago Rubio
, GDK_NOTIFY_VIRTUAL, GDK_NOTIFY_NONLINEAR or GDK_NOTIFY_NONLINEAR_VIRTUAL). GDK_NOTIFY_INFERIOR means the window is entered from an inferior or left towards an inferior. Quoted text is from the doc. http://developer.gnome.org/doc/API/2.0/gdk/gdk-Event-Structures.html Regards. -- Iago Rubio

Re: GtkTooltips event handler

2005-11-01 Thread Iago Rubio
On Tue, 2005-11-01 at 09:33 +0100, Gian Mario Tagliaretti wrote: 2005/11/1, Iago Rubio [EMAIL PROTECTED]: Quoted text is from the doc. http://developer.gnome.org/doc/API/2.0/gdk/gdk-Event-Structures.html Thanks Iago but I've read the docs myself also before as I usually do, I'm sorry

Re: RV: GtkComboBox 2.6.7 and 2.8.5

2005-10-28 Thread Iago Rubio
On Thu, 2005-10-27 at 14:38 -0300, Jorge Monsalvo wrote: Hi all, I were working in a project with GTK 2.6.7 on Windows and I'm trying to move it to 2.8.5 to use some new capabilities. But when I compile the code, all the gtk_combo_box_new_text rutines instead of the old button style box

Re: Is glib c++ wrapper available ?

2005-10-25 Thread Iago Rubio
On Wed, 2005-10-26 at 12:13 +0800, Falls Huang wrote: Thank u! Can I use the glibmm instead of STL in C++ ? glibmm itself uses STL, so you can use STL with glibmm. -- Iago Rubio ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http

Re: GtkTreeStore and GtkTreeIter

2005-10-24 Thread Iago Rubio
gtk_tree_store_append (store, iter2, iter); // parent /home SET /someuser on iter2 gtk_tree_store_append (store, iter3, iter2); // parent /someuser SET /subdirs on iter3 -- Iago Rubio

Re: GtkTreeStore and GtkTreeIter

2005-10-24 Thread Iago Rubio
*parent); ^^ [snip] Thanks it did the trick now if only i could find a simple way to break the path up.. oh well one step at a time.. thanks for the help... dirs = g_strsplit(path, /, -1); -- Iago Rubio

Re: re-filter GtkFileChooser widget after changing custom GtkFileFilter

2005-10-24 Thread Iago Rubio
the refiltering... Anybody an idea? Not quite elegant and untested but, have you tried to re-set the directory before to set the new filter ? gtk_file_chooser_set_filter (chooser, filter); gtk_file_chooser_set_current_folder (chooser,current_folder); -- Iago Rubio

Re: scrolling a TextView

2005-10-18 Thread Iago Rubio
the lines. In other words, how to keep in synchro the textview with the scroll, while text is added? gtk_text_view_scroll_to_iter( textview, gtk_text_buffer_get_end_iter ( gtk_text_view_get_buffer(textview) ); ); -- Iago Rubio

Re: Usage of g_str_strip

2005-10-17 Thread Iago Rubio
of the buffer with g_memmove and the second just places a null character in each space character from the end of the buffer to the first non-space character. http://cvs.gnome.org/viewcvs/glib/glib/gstrfuncs.c? rev=1.116.2.2view=markup -- Iago Rubio ___ gtk

Re: compiling g_module plugin on (msvc) win32 [was] on (cygwin) win32

2005-10-16 Thread Iago Rubio
that import library. It seems to me that's using gcc and GNU tools but ... How can it be done with the MSVC compiler ? Thanks in advance. -- Iago Rubio ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman

Re: Threads Glade

2005-10-08 Thread Iago Rubio
; array = data-array; // from here you can pass it to callbacks } Hope this helps. -- Iago Rubio ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: Threads Glade

2005-10-05 Thread Iago Rubio
, PKG-CONFIG but don't works.Thisi is the error: 'undefined reference to g_thread_init' Modify your configure.in and Makefie.am files. -- Iago Rubio ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman

Re: Threads Glade

2005-10-05 Thread Iago Rubio
On Wed, 2005-10-05 at 08:15 +0200, Iago Rubio wrote: On Mon, 2005-10-03 at 01:37 -0700, lucapetra (sent by Nabble.com) wrote: Thanks. Another question: How i have to modify the makefile ? I have to compile using 'pkg-config --cflags --libs gtk+-2.0 gthread-2.0' but i dont' know where

Re: What about OCR ?

2005-10-04 Thread Iago Rubio
. And the must wil be to read a music partition to translate in midi code or something else... Take a look at ocrad, http://www.gnu.org/software/ocrad/ocrad.html -- Iago Rubio ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http

Re: weirdest problem yet

2005-09-13 Thread Iago Rubio
Unix/OsX EOLs - so LF - it will show double spaces. The first CR is taken as MacOs EOL, and the LF as Unix EOL. What happens if you dos2unix all those files ? Regards. -- Iago Rubio ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http

Re: a sequence to edit a text view...

2005-08-19 Thread Iago Rubio
)); gtk_text_buffer_insert_at_cursor ( buffer, result, strlen(result)); -- Iago Rubio ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org

Re: Current Working Directory

2005-08-17 Thread Iago Rubio
this helps. -- Iago Rubio ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: Best place to call gtk_widget_show()?

2005-08-17 Thread Iago Rubio
(). -- Iago Rubio ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: GdkColor to Hexadecimal conversion

2005-08-17 Thread Iago Rubio
); color = red | (green 8) | (blue 16); return color; } It may be some loose of accuracy in both functions, on the gfloat - gint conversion. -- Iago Rubio ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http

Re: gtk label segmentation fault

2005-08-08 Thread Iago Rubio
types at pag. 3 = is not == at pag. 9 strcpy at pag. 21 pointer type effects (casting) at page 35. Hope this helps. -- Iago Rubio ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel

Re: inclusion of vfs modules

2005-07-29 Thread Iago Rubio
to commit the changes to the Makefiles. Regards. -- Iago Rubio ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: re:gtk entry

2005-07-26 Thread Iago Rubio
) one. -- Iago Rubio [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: gtk_window_get_focus (1.2)

2005-04-12 Thread Iago Rubio
error: The function does not exists on gtk+-1.2 http://developer.gnome.org/doc/API/gtk/gtkwindow.html Try to port your app to gtk+-2.0 http://developer.gnome.org/doc/API/2.0/gtk/GtkWindow.html#gtk-window- get-focus -- Iago Rubio ___ gtk-app-devel-list

Re: Disabling menu And Modal dialog boxes!

2005-03-23 Thread Iago Rubio
insensitive all items you want to be disabled on dialog's construction and unset them on it's destroy. -- Iago Rubio ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: GtkNoteBook question

2005-03-19 Thread Iago Rubio
On Sat, 2005-03-19 at 07:20 -0800, Deekshit M wrote: Hi, I wanted to know, if I remove a page from a notebook will it DESTROY the child for the page also ? Yes, but you can avoid it by increasing the reference count before to remove the page. -- Iago Rubio

Re: how to copy folder using glib?

2005-03-17 Thread Iago Rubio
On Thu, 2005-03-17 at 22:57 +0100, Sandi Winter wrote: how to copy folder using glib? AFAIK there're no specific function for this on glib. You should make a loop reading all the files and copying them, or try a system() call and pray for the best. -- Iago Rubio

Re: gtk-entry pointer problem

2005-03-10 Thread Iago Rubio
!! I hope I did :) -- Iago Rubio ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: poll(2) only can handle 256 fds?

2005-03-10 Thread Iago Rubio
/limits.h #define OPEN_MAX 256/* # open files a process may have */ It's not glib, but your kernel. If you need to open more files in a single process, change this number and recompile the kernel. Regards. -- Iago Rubio ___ gtk-app-devel-list

Re: time interaction

2005-03-09 Thread Iago Rubio
at the documentation on g_timeout_add() Regards. -- Iago Rubio ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: Image directory

2005-03-09 Thread Iago Rubio
load image function are you using ? -- Iago Rubio ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: have you seen my widgets?

2005-02-20 Thread Iago Rubio
, button); Then with any of those binded widgets you can pick a pointer from one to another by name, as example: dialog = lookup_widget(entry, dialog); entry = lookup_widget(button, entry); button = lookup_widget(label, button); label = lookup_widget(button, label); ... and so on ... -- Iago

Re: gtk thread begginer

2005-02-17 Thread Iago Rubio
); g_thread_join (thread2); return 0; } / Regards. -- Iago Rubio ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: Why this simple threat program dont work properly?

2005-02-17 Thread Iago Rubio
(GTK_LABEL (kredit), a); gdk_threads_leave(); [/quoted] Regards. -- Iago Rubio ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: Button remains pressed until callback function ends

2005-02-16 Thread Iago Rubio
, user_data, // or whatever FALSE, error); if( thread==NULL ) { g_print(Error %s, error-message); } } Regards. -- Iago Rubio

Re: intercept nervous button clicks...

2005-02-09 Thread Iago Rubio
the window gdk_window_set_cursor(window,NULL); gtk_widget_set_sensitive(GTK_WIDGET(self-private-main_window),TRUE); May be it works, I didn't tried, but It seems what you're looking for. Regards. -- Iago Rubio ___ gtk-app-devel-list mailing list gtk-app-devel

Re: Gtk Extra widgets

2005-02-01 Thread Iago Rubio
is not part of gtk. Regards -- Iago Rubio ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list