[maemo-developers] Fremantle: HildonCheckButton with two labels
From: Cornelius Hald hald at icandy.deDate: Sat Sep 19 13:00:50 EEST 2009
- Previous message: Fremantle: HildonCheckButton with two labels
- Next message: Fremantle: HildonCheckButton with two labels
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Ah, I forgot another thing I tried: In my HildonButton subclass. Instead of setting the GtkCellView using hildon_button_set_image(), I also tried gtk_button_set_image(). The problem with the latter is, that it's just never shown. Probably HildonButton is somehow overriding the image part of GtkButton. Cheers! Conny On Sat, 2009-09-19 at 11:55 +0200, Cornelius Hald wrote: > Hi, > > I'm trying to create a Hildon check button with two labels. The problem > is that HildonCheckButton only supports one label. Why? I don't know, > but I'm looking for a work around. > > What I tried so far: > > * Creating a HildonButton with two labels and an image that looks like a > check box. > Does work somehow, but looks slightly different is not themable. > > * Creating a subclass of HildonButton and adding as an image a > GtkCellView with a GtkCellRendererToggle. > Does work somehow. The problem is that HildonButton calls > gtk_misc_set_alignment() on the image and a GtkCellView is not a > GtkMisc, but only a GtkWidget. Therefore this results in many warnings > and errors. > > * Implementing my own subclass of GtkMisc which proxies a GtkCellView, > so that I could use this widget as 'image' on HildonButton. > No success at all. Way to complicated :( > > > It looks like the inheritance tree of the Hildon*Buttons is quite messy! > Are there any plans to fix that or will it be fixed with Qt? > > Anyways, points to a cleaner work around would be highly appreciated! > > Thanks! > Conny > > > _______________________________________________ > maemo-developers mailing list > maemo-developers at maemo.org > https://lists.maemo.org/mailman/listinfo/maemo-developers
- Previous message: Fremantle: HildonCheckButton with two labels
- Next message: Fremantle: HildonCheckButton with two labels
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]