Re: question on GtkScrolledWindow

2008-02-01 Thread Iago Rubio
Sorry, looks like the attachment got stripped. Here you've got the code. #include // gcc `pkg-config --cflags --libs gtk+-2.0` test_w.c gboolean scroll_viewport (gpointer data) { GtkWidget *viewport = (GtkWidget*)data; GtkAdjustment *adj; gdouble upper; adj = gtk_viewport_get

Re: question on GtkScrolledWindow

2008-02-01 Thread Iago Rubio
g Hosler [EMAIL PROTECTED]| > +-+ > -BEGIN PGP SIGNATURE- > Version: GnuPG v1.4.7 (GNU/Linux) > > iD8DBQFHoxEZ404fl/0CV/QRAt15AKDkFmYJ0O3r6I43gYCGt8CBERM5pQCgskNM > bti/JRyFsA6JYX5C4

Re: Destroying a menu

2008-01-23 Thread Iago Rubio
You need here a function to create the same submenu for every menu item. 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-dev

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 > v

Re: gtk_file_selection - select only folder?

2006-10-31 Thread Iago Rubio
ng on > text/directory. If you can use 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@gnom

Re: Follow windows with a botton

2006-10-21 Thread Iago Rubio
de the tabs, and pass from one 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
gt;From int to gdouble ??? gdouble d; int i = 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

Re: Resizing window

2006-08-22 Thread Iago Rubio
ion. > > More ideas? Have you tried to pick the child's requisition and resize the window to it ? Try out the example attached. 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: GtkComboBox cell rendering?

2006-08-19 Thread Iago Rubio
re_set (store, &iter, 0, "Hi one", 1, 1, -1); g_signal_connect_swapped ( dialog, "response", gtk_main_quit, NULL ); gtk_widget_show (dialog); gtk_main (); return 0;

Re: Signal Handling problems with own data

2006-08-18 Thread Iago Rubio
NULL ); gtk_widget_show (dialog); gtk_main (); return 0; } > And if more than one widgets can be passed to the function, how can I access > them ? 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: Fwd: GtkTreeView, GtkListStore and more...

2006-08-18 Thread Iago Rubio
// want to continue return FALSE; } void 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.gn

Re: how to clear out a ComboBoxEntry

2006-08-18 Thread Iago Rubio
ries at once ? If you're 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)); } Ho

Re: GtkTreeView, GtkListStore and more...

2006-08-17 Thread Iago Rubio
the iter twice - one on remove, second 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
t - among a myriad other causes - will need redraw to happen - thus the expose-event signal will be raised. 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
{ printf("@data is=0x%x\n",scanner->value.v_int); sprintf(DATA,"0x%x",scanner->value.v_int); printf("\n\n\ndata=%s\n",DATA); }else{ printf ("data is not int (%s)\n&qu

Re: Problem grabbing motion-notify events.

2006-08-07 Thread Iago Rubio
ner without holding a reference 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

Re: memory leak with gtk+-2.8.20-r1

2006-08-06 Thread Iago Rubio
r, but I bet 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 ___

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): > > > > E

Re: memory leak with gtk+-2.8.20-r1

2006-08-06 Thread Iago Rubio
On Sun, 2006-08-06 at 11:37 +0200, gwenhael wrote: > On Sun, 06 Aug 2006 09:45:00 +0200 > Iago Rubio <[EMAIL PROTECTED]> wrote: > > > On Fri, 2006-08-04 at 13:25 +0200, gwenj wrote: > > > Hello, > > > I use gtk+ for my soft's graphic interface. &g

Re: memory leak with gtk+-2.8.20-r1

2006-08-06 Thread Iago Rubio
#x27;s difficult to write more simple code... Well if you catch the preprocessor output 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 ma

Re: Gtk application cross compilation proble

2006-08-06 Thread Iago Rubio
raries to your arm build system. -- 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: GTK for win32 cannot use stdio???

2006-08-06 Thread Iago Rubio
ogram from a DOS prompt ? Can you post a code snippet reproducing your problem ? What Win32 version are you using ? With a little more information will be much easier to help you. -- Iago Rubio ___ gtk-app-devel-list mailing list gtk-app-devel-lis

Re: threads & gtk

2006-08-05 Thread Iago Rubio
ou may take a look at GThread implementation. http://developer.gnome.org/doc/API/2.0/glib/glib-Threads.html Said that, it's much better not to start programming complex network based multi-threaded applications unless you've got some programming background on single-threaded environments

Re: file chooser dialog

2006-07-31 Thread Iago Rubio
ttp://www.gtk.org/api/2.6/gtk/gtk-gtkfilefilter.html 2.- Do not allow the file chooser to move out of this directory: http://www.gtk.org/api/2.6/gtk/GtkFileChooser.html#GtkFileChooser-current-folder-changed http://www.gtk.org/api/2.6/gtk/GtkFileChooser.html#gtk-file-chooser-set-current-folder --

Re: Make notebook page active

2006-07-23 Thread Iago Rubio
0); > > the page exists, right? > > 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
create (widget->window); cairo_set_operator(ct, 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
sX is not just bright 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

Re: GtkWindow show and move

2006-07-13 Thread Iago Rubio
gtk_widget_request_size and > the alike requests? If you mean gtk_widget_size_request 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 __

Re: Cant start editing in a GtkTreeView

2006-07-09 Thread Iago Rubio
gtk-cell-renderer-start-editing 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: How to get and change the RadioButton's display texts

2006-07-07 Thread Iago Rubio
en); while( item ){ if( GTK_IS_LABEL(item->data) ) return GTK_LABEL(item->data); item = item->next; } return NULL; } 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: How to get and change the RadioButton's display texts

2006-07-07 Thread Iago Rubio
const gchar* label_text) { gtk_button_set_label (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: About multiple display

2006-07-07 Thread Iago Rubio
display support on GDK 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: Get width of window

2006-06-30 Thread Iago Rubio
gint *width, 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(

Re: gtk_statusbar

2006-05-09 Thread Iago Rubio
.." from the stack (statusbar stack I mean) gtk_statusbar_pop (statusbar, context_id); 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

Re: Beginner's question: About dialog

2006-05-07 Thread Iago Rubio
r end of list gtk_dialog_run (GTK_DIALOG(aboutdialog)); // this will make it modal gtk_widget_destroy (aboutdialog); > return 1; > } -- 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
ur application will always 'live' in the gtk 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
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 =

Re: Pass text to a browser...

2006-03-15 Thread Iago Rubio
ry ){ output = g_strdup_printf("%s %s=%s", BROWSER, url, gtk_entry_get_text(GTK_ENTRY(entry)) ); g_spawn_command_line_async (output, &error); if( error ){ g_print( "Error: %s\n", error->message ); 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: GHashTable Frustration

2005-12-15 Thread Iago Rubio
e("Writing to disk..."); > writeTriggers(); > } > > 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 list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: Custom icons

2005-12-12 Thread Iago Rubio
7;/home/user/Project/project1/pixmaps/'); You can add as many as you want, but a better solution may be to try gdk-pixbuf-csource and get rid of pixmap images. Try `man 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
g the same font, and in this case it's sure they're not using 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 __

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

Re: GtkTooltips event handler

2005-11-01 Thread Iago Rubio
r." Quoted text is from the doc. http://developer.gnome.org/doc/API/2.0/gdk/gdk-Event-Structures.html 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: Naming conventions

2005-10-31 Thread Iago Rubio
course, just try it. Meanwhile you use valid C identifiers there'll be no problem at all. -- 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: RV: GtkComboBox 2.6.7 and 2.8.5

2005-10-27 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"

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@

Re: Is glib c++ wrapper available ?

2005-10-25 Thread Iago Rubio
On Wed, 2005-10-26 at 11:35 +0800, Falls Huang wrote: > Is a C++ GLib wrapper available or being worked on? http://www.gtkmm.org/ -- Iago Rubio ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/

Re: re-filter GtkFileChooser widget after changing custom GtkFileFilter

2005-10-24 Thread Iago Rubio
CHOOSER(dialog), filter); > > but that doesn't trigger 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_choo

Re: GtkTreeStore and GtkTreeIter

2005-10-24 Thread Iago Rubio
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 ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: GtkTreeStore and GtkTreeIter

2005-10-24 Thread Iago Rubio
iter3, iter2); // parent "/someuser" SET "/subdirs" on iter3 -- 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: A Question about GtkTreeSortable

2005-10-21 Thread Iago Rubio
On Thu, 2005-10-20 at 17:44 +0200, Iago Rubio wrote: [snip] > gint > your_tree_iter_compare_func (GtkTreeModel *model, > GtkTreeIter *a, > GtkTreeIter *b, > gpointer user_data) &g

Re: A Question about GtkTreeSortable

2005-10-20 Thread Iago Rubio
On Thu, 2005-10-20 at 19:12 +0200, Christian Neumair wrote: > Am Donnerstag, den 20.10.2005, 17:44 +0200 schrieb Iago Rubio: > > On Thu, 2005-10-20 at 19:06 +0800, searun wrote: > > > Hi , > > > > > > Now i want to use GtkTreeSortable to sort a list. The first

Re: A Question about GtkTreeSortable

2005-10-20 Thread Iago Rubio
them . gtk_tree_path_free(path_first); gtk_tree_path_free(path_a); gtk_tree_path_free(path_b); } -- 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: scrolling a TextView

2005-10-18 Thread Iago Rubio
can't follow 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) )

Re: Usage of g_str_strip

2005-10-17 Thread Iago Rubio
nd does not allocate memory. The first moves the text to the start 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

Re: How to use pixmaps in GTK+ applications?

2005-10-17 Thread Iago Rubio
On Sun, 2005-10-16 at 22:54 -0700, Brian J. Tarricone wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Iago Rubio wrote: > > On Sun, 2005-10-16 at 15:03 +0800, 周清博 wrote: > > > >> If I use them as ordinary files, how can I know the path > >>a

Re: How to use pixmaps in GTK+ applications?

2005-10-16 Thread Iago Rubio
On Sun, 2005-10-16 at 15:03 +0800, 周清博 wrote: > Hi, > > I'm new to GTK development. > In Windows environment, pixmaps are often compiled into the binary as > resources. Or by making an installer, they can be installed as > ordinary files, in a location that fixed relative to the binary > executabl

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

2005-10-15 Thread Iago Rubio
the .exe using dlltool, and > link the plugin against 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

Re: Threads & Glade

2005-10-10 Thread Iago Rubio
* callback function */ void on_button_clicked (GtkButton * button, gpointer user_data) { MyData *data; data = (MyData*) user_data; // casting from gpointer /* you can now access data->whatever */ } Hope this helps. -- Iago Rubio

Re: Threads & Glade

2005-10-08 Thread Iago Rubio
(); // out the main loop free data g_free(data); } GtkWidget* create_window(MyData *data) { gchar** array; array = data->array; // from here you can pass it to callbacks } Hope this helps. -- Iago Rubio __

Re: Threads & Glade

2005-10-04 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 gth

Re: Threads & Glade

2005-10-04 Thread Iago Rubio
> I tried to modify CFLAGS, LIBS, 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-de

Re: What about OCR ?

2005-10-04 Thread Iago Rubio
e to read text that I had got with a camera. > 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

Re: weirdest problem yet

2005-09-13 Thread Iago Rubio
single line break, with an editor expecting 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

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

2005-08-19 Thread Iago Rubio
GET( tb_result ) ); buffer = gtk_text_view_get_buffer (GTK_TEXT_VIEW (tb_result)); gtk_text_buffer_insert_at_cursor ( buffer, result, strlen(result)); -- Iago Rubio ___

Re: GdkColor to Hexadecimal conversion

2005-08-17 Thread Iago Rubio
35)*255); blue = (gint) ((b/65535)*255); 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 ___

Re: Best place to call gtk_widget_show()?

2005-08-17 Thread Iago Rubio
p level container the last - to avoid redrawing on screen - but I think it should have nothing to do with using gtk_widget_show() or gtk_widget_show_all(). -- 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: Current Working Directory

2005-08-17 Thread Iago Rubio
); chdir((const gchar*) install_dir); g_free(install_dir); 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: gtk label segmentation fault

2005-08-08 Thread Iago Rubio
u understand in deep memory management, pointers and operators, will help a lot. I also recommend you to read this tiny document (45 pages) where all the pitfalls you made are described clearly: http://cslibrary.stanford.edu/101/EssentialC.pdf "basic types" at pag. 3 "= is not ==" at

Re: inclusion of vfs modules

2005-07-29 Thread Iago Rubio
pkg-config --exists gnome-vfs-2.0 ; then echo "yes" pkg_modules="$pkg_modules gnome-vfs-2.0" else echo "no" AC_MSG_ERROR(gnome-vfs-2.0 not found please install the gnome development package) fi Remember to run autoconf after the changes to let a

Re: re:gtk entry

2005-07-26 Thread Iago Rubio
> what z wrong i am doing here; It seems your Glade file may be messed a bit, so you're using two variables to hold the GtkWindow pointer, but you initiallize one and then use the other (uninitiallized) 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: g_param_spec_ ??

2005-07-16 Thread Iago Rubio
const gchar *blurb, GType object_type, GParamFlags flags); -- Iago Rubio <[EMAIL PROTECTED]> ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org h

Re: clearing a treeview

2005-05-01 Thread Iago Rubio
for each > column; as far as i can remember, setting the model to NULL didn't work > :-/ gtk_tree_store_clear( GTK_TREE_STORE(gtk_tree_view_get_model(treeview)) ); -- Iago Rubio ___ gtk-app-devel-list mailing li

Re: GTK Coding Conventions

2005-04-14 Thread Iago Rubio
want to learn the most on GTK internals, don't use gtkmm, use gtk. Use gtkmm if you like C++ and you want good C++ bindings. -- 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: gtk_window_get_focus (1.2)

2005-04-12 Thread Iago Rubio
ler(gtk+1.2.10) gave the following 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 _

Re: Newbie questions on themes and engines

2005-04-06 Thread Iago Rubio
emes/gtk2/ > and how do you invoke them? > e.g., as a command-line option like ./helloworld --alternate_theme Try gnome-theme-manager, on the "Preferences" menu the "Theme" entry. -- Iago Rubio ___ gtk-app-devel-list mailing list

Re: Non-english strings

2005-04-02 Thread Iago Rubio
msgmerge msgfmt Here you've got a primer on gettext i18n in a single page: http://www.chennailug.org/wiki/HowTo_Gettext -- 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: FTP light library

2005-03-30 Thread Iago Rubio
at you call "light". gnet http://www.gnetlibrary.org/ gnome-vfs http://developer.gnome.org/doc/API/2.0/gnome-vfs-2.0/index.html libwww http://www.w3.org/Library/ -- Iago Rubio ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org h

Re: storing and recovering settings

2005-03-29 Thread Iago Rubio
/API/2.0/glib/glib-Key-value-file-parser.html -- 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: Disabling menu And Modal dialog boxes!

2005-03-28 Thread Iago Rubio
RY ("OAFIID:ExampleApplet_Factory", > PANEL_TYPE_APPLET, > "The Hello World Applet", > "0", > myexample_applet_fill, > NULL); > > > 4) for diaologs we've used another fucntion but thats only a alert box > which we wanted modal! > > > so basically as u said to make a dialog creation signature etc to get > a GTKWidget, i could nt quite get > > Sorry if this is a silly query but i'm new to this and dunno how to > handle bonobo component etc. > > Btw can u suggest a comprehensive source for understanding the > basics.The different versions and their references are confusing. > > Thank u so much! -- 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: Disabling menu And Modal dialog boxes!

2005-03-28 Thread Iago Rubio
gt; //("/usr/share/pixmaps/InmarsatIcon.png"); > event_box = gtk_event_box_new(); > > gtk_container_add (GTK_CONTAINER (event_box), image); > > gtk_container_add (GTK_CONTAINER (applet), event_box); > > gtk_widget_show_all (GTK_WIDGET (applet)); > > > panel_applet_setup_menu (PANEL_APPLET (applet), > Context_menu_un_xml, > myexample_menu_verbs, > NULL); > > > return TRUE; > } > > PANEL_APPLET_BONOBO_FACTORY ("OAFIID:ExampleApplet_Factory", > PANEL_TYPE_APPLET, > "The Hello World Applet", > "0", > myexample_applet_fill, > NULL); > ___ > gtk-app-devel-list mailing list > gtk-app-devel-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list -- 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: Disabling menu And Modal dialog boxes!

2005-03-23 Thread Iago Rubio
context menubar attched!! Frankly I don't completely understand you. If you need a modal dialog try gtk_dialog_run() But this won't disable a panel applet. You should set insensitive all items you want to be disabled on dialog's construction and unset them on it's destroy. --

Re: Need help with GtkComboBoxEntry set_active selection

2005-03-20 Thread Iago Rubio
bo), "l"); gtk_combo_box_append_text(GTK_COMBO_BOX(combo), "z"); gtk_combo_box_append_text(GTK_COMBO_BOX(combo), "x"); gtk_combo_box_append_text(GTK_COMBO_BOX(combo), "c"); gtk_combo_box_append_text(GTK_COMBO_BOX(combo), "v"); gtk_combo_box_a

Re: GtkCellRendererPixbuf question.

2005-03-19 Thread Iago Rubio
GTK_TREE_MODEL (store)); gtk_tree_view_insert_column ( GTK_TREE_VIEW(treeview), image_col, 0); gtk_tree_view_insert_column ( GTK_TREE_VIEW(treeview), text_col, 1); // this is yours gtk_tree_store_append (GTK_TREE_STORE (

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. -- I

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. -- Ia

Re: Dialog box iconify

2005-03-12 Thread Iago Rubio
w *window, GDK_WINDOW_TYPE_HINT_UTILITY); ... before to show the window should work. 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: poll(2) only can handle 256 fds?

2005-03-11 Thread Iago Rubio
Hi Gus, On Fri, 2005-03-11 at 13:41 +0100, Gus Koppel wrote: > No need for that! Speaking of the Linux kernel, OPEN_MAX is a legacy > value without meaning any more. Thanks for the hint :) -- Iago Rubio ___ gtk-app-devel-list mailing list g

Re: g_signal_connect isn't working

2005-03-10 Thread Iago Rubio
english I've been coding for so long my > brain is dead, Your english is quite good, at least much better than mine. My recommendation: always have the docs at your side, always check the signal's callback prototype. 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: poll(2) only can handle 256 fds?

2005-03-10 Thread Iago Rubio
oop when it tries to poll more than 256 fds at once. It makes sense ... read /usr/include/linux/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 sin

Re: gtk-entry pointer problem

2005-03-10 Thread Iago Rubio
snip] > I now, that it has to be a really stupid beginner mistake, but i can't find > it, > so please help me a little bit!! 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: Image directory

2005-03-09 Thread Iago Rubio
e we could help you. What 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: time interaction

2005-03-09 Thread Iago Rubio
s indeed true. Take a look 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: list view & mysql tables

2005-03-08 Thread Iago Rubio
ditor); gtk_container_add (GTK_CONTAINER (my_top_level_window), dbtableeditor); if(!errors){ gnome_db_grid_set_model( (GnomeDbGrid*) dbtableeditor, dm); } -- 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: glib and XML

2005-03-04 Thread Iago Rubio
On Fri, 2005-03-04 at 15:01 +0100, Maciej Katafiasz wrote: > Dnia 04-03-2005, piÄ o godzinie 12:35 +0100, Iago Rubio napisaÅ: > > On Thu, 2005-03-03 at 16:24 -0400, Andrà Pedralho wrote: > > > I took it as correct cause it is auto-generated by another third > > > famous

Re: glib and XML

2005-03-04 Thread Iago Rubio
ou showed us but you've got one on glib. http://developer.gnome.org/doc/API/2.0/glib/glib-Simple-XML-Subset- Parser.html -- 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: Glade and dialogs

2005-02-23 Thread Iago Rubio
ier, than try to understand the somewaht complex code generated by Glade. As example, you don't need to separate all functions in a bunch of files, but you can easily do it in one file for small test applications as yours. Regards. -- Iago Rubio _

Re: have you seen my widgets?

2005-02-20 Thread Iago Rubio
quot;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 Rubio ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

  1   2   >