Re: how to draw something on GtkDrawingArea when I click a button?

2010-03-19 Thread Amol Kulkarni
gdk_draw_line takes GdkDrawable as first parameter. try using drawing_area-window instead. -- Regards, Amol On Fri, 2010-03-19 at 13:34 +0800, Tolic Ma wrote: Hi,everyone! I want to draw something on GtkDrawingArea when I click a GtkButton,but I don't know how to do this... this is my

GtkTreeView in VBox

2010-01-07 Thread Amol Kulkarni
. Is this expected/supported use case or am i doing something wrong here? Thanks for your time. -- Thanks and Regards, Amol ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

GtkIconView Pixbuf rendering

2009-10-06 Thread Amol Kulkarni
mix of these in some cases. Are such scenarios discouraged or is their any workaround available? thanks for your time. -- Regrads, Amol ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel

GtkIconView Pixbuf rendering

2009-10-06 Thread Amol Kulkarni
mix of these in some cases. Are such scenarios discouraged or is their any workaround available? thanks for your time. -- Regrads, Amol ___ gtk-devel-list mailing list gtk-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-devel-list

Re: GtkIconView Pixbuf rendering

2009-10-06 Thread Amol Kulkarni
Hi Christian, I will attach a testcase. please find my reply inline for your overview On Tue, 2009-10-06 at 13:33 +0200, Christian Dywan wrote: Am Tue, 06 Oct 2009 16:13:00 +0530 schrieb Amol Kulkarni amolgkulka...@gmail.com: Hi All, In newer versions of Gtk+[After GIcon addition] user

Re: Can I set background image for GtkTextView

2009-06-30 Thread Amol
Try setting background to textwindow of GtkTextView. you can get text_window through gtk_text_view_get_window (textview,window_type); I don't remember exact syntax though. Regards, Amol On Tue, 2009-06-30 at 15:54 +0800, winsty wrote: Hi, All I want to set a background image

Re: Height of text row in TreeView

2008-05-27 Thread amol
On Tue, 2008-04-22 at 23:14 +, BJörn Lindqvist wrote: 2008/4/22 amol [EMAIL PROTECTED]: Hi I have a TreeView with two columns one pixbuf and one text. when i have large text in text column the height of text column never increase beyond height of pixbuf. This works for me

Height of text row in TreeView

2008-04-22 Thread amol
way to achieve this so that we get correct cell height. Thanx for your time. Regards, Amol. ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

GtkListStore with GtkBuilder

2008-04-22 Thread amol
for that particular row. Regards, Amol Index: gtkliststore.c === --- gtkliststore.c (revision 16714) +++ gtkliststore.c (working copy) @@ -2197,7 +2197,7 @@ string = g_strndup (text, text_len

Height of text row in TreeView

2008-04-22 Thread amol
way to achieve this so that we get correct cell height. Thanx for your time. Regards, Amol. ___ gtk-devel-list mailing list gtk-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-devel-list

Re: recurrent spam from applications developers [was: GtkListStore with GtkBuilder]

2008-04-22 Thread amol
-app-devel-list. I suppose this is not General GTK+ question. this is probably bug in Gtk+ code and this list seems to be more appropriate one to discuss it. Please go through it before making it spam. -- Forwarded message -- From: amol [EMAIL PROTECTED] Date: 2008/4/22 Subject

Height of text row in TreeView

2008-04-17 Thread amol
way to achieve this so that we get correct cell height. Thanx for your time. Regards, Amol. ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Height of text row in TreeView

2008-04-17 Thread amol
way to achieve this so that we get correct cell height. Thanx for your time. Regards, Amol. ___ gtk-devel-list mailing list gtk-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-devel-list

Re: How to get the preedit character from TextView?

2008-03-30 Thread amol
Hi Try this gtk_im_context_get_preedit_string (GTK_TEXT_VIEW (text_view)-im_context, preedit_string, NULL, cursor_pos); . do what u want with preedit string . gtk_im_context_reset (GTK_TEXT_VIEW (text_view)-im_context); Regards, Amol On Fri, 2008-03-28 at 12:33 +0900

buildable_set_name

2008-01-29 Thread amol
object creation. What is achieved doing by gtk_widget_set_name with Id specified in ui file.(gtkrc and ui Creator must be always in sync for themes to be work correctly ) I am planning to get rid of overriding set/get_name of buildable in GtkWidget. Does it will have any adverse effect? Regards, Amol

buildable_set_name

2008-01-29 Thread amol
object creation. What is achieved doing by gtk_widget_set_name with Id specified in ui file.(gtkrc and ui Creator must be always in sync for themes to be work correctly ) I am planning to get rid of overriding set/get_name of buildable in GtkWidget. Does it will have any adverse effect? Regards, Amol

Reparsing with GtkBuilder

2007-12-17 Thread amol
and that properties will be applied in parser_finished. Regards Amol ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Custom cel renderer

2007-09-07 Thread amol
on parent GdkWindow or is there any other way to display widgets with cellrenderer? Are there any guidelines to write custom cellrenderer which will display any GtkWidget? Thanks in advance. Regards, Amol ___ gtk-app-devel-list mailing list gtk-app-devel

Re: List view: Howto get the number of displayed rows?

2007-06-20 Thread amol
); if your list has 10 rows then 10 will be returned. 3. gtk_list_store_remove (GtkListStore *list_store,GtkTreeIter *iter); Regards, Amol. On Wed, 2007-06-20 at 10:47 +0200, Felipe wrote: Hi, Perhaps a stupid question, but I searched unsuccessfully in the documentation of GtkListStore

How to detect the presence of scrollbar on scrolled window.

2007-01-03 Thread amol
. width = widget-requisition.width; 6. } Thanks and Regards, Amol. ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list