Re: Control what happens when GtkTextView is resized: keep the bottom part visible

2009-11-14 Thread Todor Todorov
gards, Todor On 11/14/2009 07:10 AM, Eduardo M KALINOWSKI wrote: Todor Todorov wrote: Well, since resizing the widget by itself does not do any scrolling, whichever value you get from the adjustment _is_ the current scroll value. In the same way you have the function *_get_upper(), you

Re: Control what happens when GtkTextView is resized: keep the bottom part visible

2009-11-13 Thread Todor Todorov
. Did you even looked up the functions I used in the API docs? You would have seen the rest Hope that helps. On 11/13/2009 12:49 PM, Eduardo M KALINOWSKI wrote: Todor Todorov wrote: Bind a callback to the "size-allocate" signal of the scrolled window: #inc

Re: Control what happens when GtkTextView is resized: keep the bottom part visible

2009-11-12 Thread Todor Todorov
Bind a callback to the "size-allocate" signal of the scrolled window: #include void cb_autoscroll_to_end( GtkWidget* widget, GtkAllocation* allocation, gpointer user_data) { GtkAdjustment*vericalAdjust; GtkAllocation hscrollAlloc; GtkWidget *hscrollBar; /* the h

Re: gdk_pixbuf_composite leaves artifacts in the dest pixbuf, if, dest_x is > 0. Help please?

2009-11-11 Thread Todor Todorov
Thank you so much for the answer! The correct use (yours) is gdk_pixbuf_composite( interm, result, xOffset, 0, width, height, xOffset, 0, 1.0, 1.0, GDK_INTERP_NEAREST, 255 ); as opposed to (mine) gdk_pixbuf_composite( interm, result, xOffset, 0, width, height, /* !!! */ 0, 0, 1.0, 1.0, GDK_I

Re: gdk_pixbuf_composite leaves artifacts in the dest pixbuf, if, dest_x is > 0. Help please?

2009-11-10 Thread Todor Todorov
the target image. Kind regards, Todor On 11/10/2009 06:49 PM, Todor Todorov wrote: OK, something happened to the attached images, so let's see about inlining them ... offset is zero, no artifacts offset is zero, no artifacts offset is 16, artifacts at the right side of the imageoffset

Re: gdk_pixbuf_composite leaves artifacts in the dest pixbuf, if, dest_x is > 0. Help please?

2009-11-10 Thread Todor Todorov
the target image. Kind regards, Todor On 11/10/2009 06:49 PM, Todor Todorov wrote: OK, something happened to the attached images, so let's see about inlining them ... offset is zero, no artifacts offset is zero, no artifacts offset is 16, artifacts at the right side of the imageoffset

Re: gdk_pixbuf_composite leaves artifacts in the dest pixbuf, if, dest_x is > 0. Help please?

2009-11-10 Thread Todor Todorov
OK, something happened to the attached images, so let's see about inlining them ... offset is zero, no artifacts offset is zero, no artifacts offset is 16, artifacts at the right side of the imageoffset is 16, artifacts at the right side of the image On 11/10/2009 06:39 PM, Todor To

gdk_pixbuf_composite leaves artifacts in the dest pixbuf, if,dest_x is > 0. Help please?

2009-11-10 Thread Todor Todorov
Hello list, I am trying to create a thumbnail from a digital image, which should not exceed 128 px width or height. After loading the image, I apply the EXIF orientation information, if available. In order to prettify the resulting display, I would like to place the pixbuf horizontally center

GtkCellRendererPixbuf with a checkbox?

2009-10-12 Thread Todor Todorov
Hi everyone, for a private (yet) project, I need a GtkIconView, which can display a GtkCheckButton in a corner of every icon or before/behind the label - kinda like the idea of the plus/minus signs on every icon in the dolphin file manager from KDE4. I first tried to achieve the functionality

Default dir for application data

2009-10-08 Thread Todor Todorov
Hello list I skimmed the docs for the current stable release on gtk.org, but was not able to find anything relating to my problem. If for example my application is installed globally with DATA_DIR set to /usr/share, is there some function in GLib or GTK which would give me the global app data

Is there a general signal a-la "text-edited" for GtkEntry

2009-10-05 Thread Todor Todorov
Hi list I was looking at the docs for GtkEntry in search of a general signal which is emitted when the text in the entry changes - no matter the reason. I would like to escape the situation where I would have to connect every possible signal like "backspace", "paste-clipboard", "insert-at-cur