Re: gtktextview with gdkpixbuf saving into file

2008-11-17 Thread Pavel A. da Mek
anyone know a way to save a gtktextview/gtktextbuffer with embedded gdkpixbuf into a file. I am calling gtk_text_buffer_get_slice then g_file_set_contents. Idealy it will be good if i can just call g_file_get_contents to output the saved buffer onto the gtktextview. void save_grt (GtkTextView *

Re: Handler disconnect vs. block

2008-11-17 Thread Paul Pogonyshev
Jeffrey Barish wrote: > Is there a reason to block/unblock a handler rather than disconnect/connect > it? Is the overhead for block/unblock significantly lower? Off the top of my head I can think of one: block/unblock will certainly not change handler order, while disconnect/connect may. Overhead

Tips on translating to other languages

2008-11-17 Thread Garth's KidStuff
Hi All, I'm working on a very large Application that has already shipped in multiple languages on Mac and Windows. There's a whole scheme in place which already works to extract strings from a special text file so I don't need to use any of the gettext stuff as described in the gtkmm documentatio

Handler disconnect vs. block

2008-11-17 Thread Jeffrey Barish
Is there a reason to block/unblock a handler rather than disconnect/connect it? Is the overhead for block/unblock significantly lower? One thing I don't like about block/unblock is that GTK issues a warning when you try to unblock a handler that is not blocked, but there is no way to ask first whe

GtkIconView and missed highlight of the row

2008-11-17 Thread Giuseppe Torelli
Hi, I created a gtkcellrenderer this way: pixbuf_cell = gtk_cell_renderer_pixbuf_new(); gtk_cell_layout_pack_start (GTK_CELL_LAYOUT (img_struct->thumbnail_iconview), pixbuf_cell, FALSE); g_object_set (pixbuf_cell, "width", 115, "xalign", 0.5, "yalign", 0.5, NULL); gtk_cell_layout_set_attributes (

Re: Basic GNOME applet developement

2008-11-17 Thread Andrew M.
On Mon, November 17, 2008 7:48 am, Michael Ott wrote: > Hello Andrew! > >> >> I am attempting my first Gnome applet creation and I found a great tutorial at http://projects.gnome.org/ORBit2/appletstutorial.html . Unfortunately, I am stuck where the example goes to load an image. I >> can >> >> comp

Re: combobox entries background color

2008-11-17 Thread Stefan Kost
hi, Xavier Toth schrieb: > I didn't get any responses so I'm trying again. > Look at GtkCellRenderer and its "cell-background" property. Stefan > On Mon, Nov 3, 2008 at 8:37 AM, Xavier Toth <[EMAIL PROTECTED]> wrote: > >> I'd like to have different background colors on combobox entries. >>