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 do this... > > this is

GtkTreeView in VBox

2010-01-07 Thread Amol Kulkarni
Hi All, Is it possible to add GtkTreeView inside VBox and then add that VBox to ScrolledWindow using gtk_scrolled_window_add_with_viewport(sw,vbox). GtkTreeView has inbuilt scrolling support hence it is expected to add it directely to scrolledwindow using gtk_container_add but in some weird case i

GtkIconView Pixbuf rendering

2009-10-06 Thread Amol Kulkarni
Hi All, In newer versions of Gtk+[After GIcon addition] user is not able to add mixed images in IconView that is file path plus named icons. User will prefer named icons over file path to have consistent look and feel but all required icons may not be available in icon theme so he may need to use m

Scrolling GtkMenu

2008-12-23 Thread Amol kulkarni
Hi All, I want to disable Arrows for GtkMenu and have GtkScrollbars instead for scrolling. I tried by packing menuitems in VBox and then add this Vbox to GtkScrolledWindow which in turn is placed in GtkMenu. It was possible to display Menuitems properly with some changes in GtkMenu. but still Scrol