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

2010-03-18 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

GtkTreeView in VBox

2010-01-07 Thread Amol Kulkarni
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

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 backgr

Scrolling GtkMenu

2008-12-23 Thread Amol kulkarni
Scrollbars are not visible and arrows are still displaying. Is their any easy way to disable arrows for GtkMenu and enable scrolling via Scrollbars. Thanx for your time. Regards, Amol ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http

Re: Height of text row in TreeView

2008-05-26 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 > > incr

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

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

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); . . gtk_im_context_reset (GTK_TEXT_VIEW (text_view)->im_context); Regards, Amol On Fri, 2008-03-28 at 12:33 +0900, KwangYul Se

buildable_set_name

2008-01-29 Thread amol
file while 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? Reg

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
his widget 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

Re: Not show selection of a tree view column

2007-07-26 Thread amol
Hi, instead of depending on treeview default key handling. you can capture key press event on treeview and try to use gtk_tree_view_set_cursor (). with treeviewcolumn set to text column. hope this solves ur problem. regards, Amol. On Thu, 2007-07-26 at 09:35 -0400, Dave Foster wrote: > Hi fo

GtkIconview item size.

2007-07-26 Thread amol
is changed. Moral of story :- How to restrict item width to value less than required width. Thanx -Amol ___ 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: Howto get the number of displayed rows?

2007-06-20 Thread amol
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 > documen

How to detect the presence of scrollbar on scrolled window.

2007-01-03 Thread amol
; 5. 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