Drawing a GtkButton on a GdkPixmap on a GtkDrawingArea

2005-05-07 Thread Ian Hummel
Hello all, I'm having a really difficult time doing something I feel ought to be rather easy. I'd like to draw arbitrary widgets surrounded by a colored border. I decided the best way to do this would be to layout the widgets normally inside of a container (e.g. a VBox) then plac

Re: Use the same canvasitem 2 times

2005-05-07 Thread John Coppens
Felix, In one version of the GGAD, I found a reference to a function: gtk_layout_freeze (GTK_LAYOUT (canvas)); On the other hand, in the reference manual, it says: "This is a deprecated function, it doesn't do anything useful." So... I would advise against its use, and use one of the other sug

Re: Use the same canvasitem 2 times

2005-05-07 Thread John Coppens
On Sat, 07 May 2005 16:56:54 +0200 Felix Bueltmann <[EMAIL PROTECTED]> wrote: > Is there any other way, to do a synchronous update of both items? > Can I stop the automatic refresh and just do the refreshs if I need > them? > Well - again as far as I know, there is no easy solution. It depends

"Greying out" Menu Items

2005-05-07 Thread Daniel Pekelharing
Hi all, Whats the easiest way to "grey out" an entire sub menu? I'm using GtkItemFactory to construct my menu. This call is sufficient to grey out an item: gtk_widget_set_sensitive(gtk_item_factory_get_widget(menu_items, "/File/Open"), FALSE); But I want to "grey out" an entire sub menu without

Re: Use the same canvasitem 2 times

2005-05-07 Thread Felix Bueltmann
Is there any other way, to do a synchronous update of both items? Can I stop the automatic refresh and just do the refreshs if I need them? On Sat, 2005-05-07 at 11:45 -0300, John Coppens wrote: > On Sat, 07 May 2005 16:29:04 +0200 > Felix Bueltmann <[EMAIL PROTECTED]> wrote: > > > Hi, > > > >

Re: Use the same canvasitem 2 times

2005-05-07 Thread John Coppens
On Sat, 07 May 2005 16:29:04 +0200 Felix Bueltmann <[EMAIL PROTECTED]> wrote: > Hi, > > Is there a way, to use the same canvasitem more than one time. > I want to use them on different canvas widgets. > For example, if one item change its background color, it should > be changed in all canvas wid

Re: help needed in including more than 2 libraries in application

2005-05-07 Thread Antonio Gomes
Hi Poonam how are you including these library ?! what is the message error !? Paste a snipplet code to help us to help you ;) regards On 5/7/05, poonam chokshi <[EMAIL PROTECTED]> wrote: > hello, > > I am designing an application in which i need to include more than > one library in my applica

Use the same canvasitem 2 times

2005-05-07 Thread Felix Bueltmann
Hi, Is there a way, to use the same canvasitem more than one time. I want to use them on different canvas widgets. For example, if one item change its background color, it should be changed in all canvas widgets. Thanks in advance -- Felix Bueltmann <[EMAIL PROTECTED]> ___

Text_view, scrolled windows and no wrapping of words

2005-05-07 Thread Olivier
Hello, --- sorry for the previous message if it went through, wrong heading :-(-- Here is part of my code: -- SG_buffer = gtk_text_buffer_new(NULL); SG_text_view = gtk_text_view_new_with_buffer(SG_buffer); gtk_text_view_set_wrap_mode(

Re: Fwd: help needed in including more than 2 libraries in application

2005-05-07 Thread Olivier
Hello, Here is part of my code: -- SG_buffer = gtk_text_buffer_new(NULL); SG_text_view = gtk_text_view_new_with_buffer(SG_buffer); gtk_text_view_set_wrap_mode( GTK_TEXT_VIEW(SG_text_view), GTK_WRAP_NONE); SG_scrolled_window = gtk_scr

Fwd: help needed in including more than 2 libraries in application

2005-05-07 Thread poonam chokshi
hello, I am designing an application in which i need to include more than one library in my application ..I have already included one of my library in the application but when i try to include the other library along with that library it kind of doesn't include the second library Which is th