.
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
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
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
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
= 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
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
);
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
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
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
?
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
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
.
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
);
}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
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
.
--
Iago Rubio
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
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
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
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
?
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
, 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
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
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
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
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
(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
,
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
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
);
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
;
}
--
Iago Rubio
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
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
);
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
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
();
}
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
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
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
,
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
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
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
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
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
*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
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
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
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
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
;
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
, 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
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
.
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
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
));
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
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
().
--
Iago Rubio
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
);
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
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
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
) 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
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
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
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
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
!!
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
/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
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
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
, 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
);
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
(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
,
user_data, // or whatever
FALSE,
error);
if( thread==NULL )
{
g_print(Error %s, error-message);
}
}
Regards.
--
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
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
71 matches
Mail list logo