Question about vte and directfb.

2008-08-28 Thread Magicloud Magiclouds
Hi, I wanted to make a simple terminal using framebuffer. I compiled all things that needed, and used gtk-demo to test. It seems that the screen was "lazy update", I chose one thing after another , the old highlight only disappeared when I moved the mouse on it again. Then I used vte.

Re: `GtkNotebook' has no property named `sensistive'

2008-08-28 Thread Roland Roberts
Brian J. Tarricone wrote: Roland Roberts wrote: GLib-GObject-WARNING **: IA__g_object_set_valist: object class `GtkNotebook' has no property named `sensistive' I am very confused. What am I missing here? You're missing the correct spelling of "sensitive". Doh! I promise to get a good night

Re: How to set the font's size of the GtkLabel?

2008-08-28 Thread Lazy Fox
I find another way: +- | PangoFontDescription * desc = pango_font_description_new(); | pango_font_description_set_size(desc, 50*PANGO_SCALE); | . | . | gtk_widget_modify_font(label, desc); +-

Re: `GtkNotebook' has no property named `sensistive'

2008-08-28 Thread Brian J. Tarricone
Roland Roberts wrote: I have a notebook where one of the tabs is another notebook. When the device which corresponds to that tab is disconnected, I want to make the tab insensitive. So in the callback I have something like this: g_object_set(tab_widget, "sensistive", FALSE, NULL); When I

Re: Autoedit in a Treeview cell

2008-08-28 Thread Rodrigo Miguel
Resolved, gtk_tree_view_set_cursor and gtk_tree_view_set_cursor_on_cell both are working as desired. Thanks Rodrigo On Thu, Aug 28, 2008 at 9:47 AM, Rodrigo Miguel <[EMAIL PROTECTED]> wrote: > Hello people, > > Is there any way to auto edit the cell, without click in the cell, i.e. > when the u

`GtkNotebook' has no property named `sensistive'

2008-08-28 Thread Roland Roberts
I have a notebook where one of the tabs is another notebook. When the device which corresponds to that tab is disconnected, I want to make the tab insensitive. So in the callback I have something like this: g_object_set(tab_widget, "sensistive", FALSE, NULL); When I actually get to the po

Re: Clone a notebook tab?

2008-08-28 Thread Roland Roberts
Gabriele Greco wrote: Is there a way to clone a notebook tab? I'm writing an application where I've laid out the tab using glade. The tab is for controlling a camera, and I may have multiple cameras. Each time I connect one, I'd like to clone a generic tab then reassign da

Re: Clone a notebook tab?

2008-08-28 Thread Roland Roberts
dhk wrote: Roland Roberts wrote: Is there a way to clone a notebook tab? I'm writing an application where I've laid out the tab using glade. The tab is for controlling a camera, and I may have multiple cameras. Each time I connect one, I'd like to clone a generic tab then reassign data asso

Re: How to set the font's size of the Gtklabel

2008-08-28 Thread Lazy Fox
But I only use gtk api, not gtkmm. How to do this by gtk? On Thu, Aug 28, 2008 at 9:50 PM, Garth's KidStuff <[EMAIL PROTECTED]>wrote: > Whops, hit the send button before I was finished.. > > the method should be: > > void ChangeLabelFontSize( >Gtk::Label *pLabel, // [in] Pointer to label to

Re: How to set the font's size of the GtkLabel?

2008-08-28 Thread Lazy Fox
Is the pango markup language most popular way to set font's style? On Thu, Aug 28, 2008 at 8:16 PM, Tomas Carnecky <[EMAIL PROTECTED]> wrote: > Dov Grobgeld wrote: > > Hi Lazy (great name), > > > > The way to do it is to set the name of the label through: > > > > gtk_widget_set_name(label, "f

Re: scrollbars for treeview

2008-08-28 Thread [EMAIL PROTECTED]
Kristian Rietveld: > On Thu, Aug 28, 2008 at 9:12 AM, [EMAIL PROTECTED] > <[EMAIL PROTECTED]> wrote: > > hi, > > > > I've read that a treeview has the scolling ability built-in. > > Does that include an easy way to display scrollbars, too? > > > > Or is it necessary to create scrollbars and adjust

Re: How to set the font's size of the Gtklabel

2008-08-28 Thread Garth's KidStuff
Whops, hit the send button before I was finished.. the method should be: void ChangeLabelFontSize( Gtk::Label *pLabel, // [in] Pointer to label to change font on float scale) // [in] amount to scale font size by. 1.0 leaves label unchanged { Glib::RefPtr pPangoContext = pLabel

Re: How to set the font's size of the Gtklabel

2008-08-28 Thread Garth's KidStuff
Hey there, Using Gtkmm void ChangeLabelFontSize( Glib::RefPtr pPangoContext = pLabel->get_pango_context(); Pango::FontDescription fontD = pPangoContext->get_font_description(); fontD.set_size((int)(scale * fontD.get_size())); pLabel->modify_font(fontD); -- Gar

Re: How to set the font's size of the GtkLabel?

2008-08-28 Thread Dov Grobgeld
Hi Tomas, You are certainly right The style method is more suited when you want to change additional properties like background color, etc. I stand corrected. Regards, Dov 2008/8/28 Tomas Carnecky <[EMAIL PROTECTED]> > Dov Grobgeld wrote: > > Hi Lazy (great name), > > > > The way to do it is to

Re: key-press-event event clears cell in treeview

2008-08-28 Thread dhk
dhk wrote: I have a key-press-event connected to my treeview so a Tab can be used to navigate through the cells. It work well except that when the Tab is pressed it clear all the data in the cell. If I use the mouse to move to another cell the data remains. My callback doesn't touch the dat

Autoedit in a Treeview cell

2008-08-28 Thread Rodrigo Miguel
Hello people, Is there any way to auto edit the cell, without click in the cell, i.e. when the user start typing then it will automatically enter edit mode? What you guys suggest, use the treeview, key-press-event, if so how to say to treeview that's an autoedit mode? PS: gtk_tree_view_set_enabl

Re: Clone a notebook tab?

2008-08-28 Thread dhk
Roland Roberts wrote: Is there a way to clone a notebook tab? I'm writing an application where I've laid out the tab using glade. The tab is for controlling a camera, and I may have multiple cameras. Each time I connect one, I'd like to clone a generic tab then reassign data associated with

Re: How to set the font's size of the GtkLabel?

2008-08-28 Thread Tomas Carnecky
Dov Grobgeld wrote: > Hi Lazy (great name), > > The way to do it is to set the name of the label through: > > gtk_widget_set_name(label, "foo"); > > and then define a style for the name "foo", that includes a font > specification: > > gtk_rc_parse_string("style \"foo\" {\n" >

Re: How to set the font's size of the GtkLabel?

2008-08-28 Thread Dov Grobgeld
Hi Lazy (great name), The way to do it is to set the name of the label through: gtk_widget_set_name(label, "foo"); and then define a style for the name "foo", that includes a font specification: gtk_rc_parse_string("style \"foo\" {\n" "font = \"Seri

Drawing widget parts off-screen

2008-08-28 Thread Olivier Guilyardi
Hi, For a specialized (audio pattern) editor I'm currently drawing everything on a off screen pixmap, and calling gdk_draw_drawable() to copy the needed areas on expose events into a drawing area's GdkWindow. I would like to draw some widget parts (a ruler actually) using the gtk_paint_*() method

How to set the font's size of the GtkLabel?

2008-08-28 Thread Lazy Fox
I wrote the following statememts to set a GtkLabel's font size. But it seems don't work? I'm not good at Pango, can anybody help me? +--- | PangoAttrList *pg_attr_list = pango_attr_list_new(); | PangoAttribute *

Re: scrollbars for treeview

2008-08-28 Thread Kristian Rietveld
On Thu, Aug 28, 2008 at 9:12 AM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > hi, > > I've read that a treeview has the scolling ability built-in. > Does that include an easy way to display scrollbars, too? > > Or is it necessary to create scrollbars and adjustments and > connect all events separ

scrollbars for treeview

2008-08-28 Thread [EMAIL PROTECTED]
hi, I've read that a treeview has the scolling ability built-in. Does that include an easy way to display scrollbars, too? Or is it necessary to create scrollbars and adjustments and connect all events separately? Thank You for a hint! Felix ___ gtk-