Re: GtkLabel text size and position
- From: Manuel Menal <mmenal ifrance com>
- To: "gtk-app-devel-list gnome org" <gtk-app-devel-list gnome org>, gtk-list gnome org
- Subject: Re: GtkLabel text size and position
- Date: Wed, 29 Nov 2000 22:58:13 +0100
Davina Armstrong wrote:
Hi,
DA> I want to draw some decoration around a GtkLabel, which requires that I
DA> know the size and position of its text. The only way I can think to do
DA> it is to go into GtkLabel's private data. Is there a way to do it
DA> through the API?
Why would you need a function to do what you can want directly ? The
data of a widget aren't private, I think. You should not modify it,
because you can't do what the widget can with a function which do that
properly (is this clear ?). But, there's nothing wrong to access the
data of a widget. And you need this in very common cases, like when
you create a GtkFileSelection, or when you need the title of a window
:-)
DA> Thanks!
DA> Davina
Good night,
--
mmenal
____ _ _ _
__ __ _ __ __ __ / ___| ___ _ _ | | ( )_ __ _ ___ __ | |
(o- \ \/ /(_)\ \/ / _ \ | | _ /'_ \| | | | | | | | '_ \| | | \ \/ / | |
/\ \ / | | \ / | __/ | |_| | | | | |_| | | |__| | | | | |_| |> < |_|
L_/_ \/ |_| \/ \___| \_____|_| |_|\__,_/ |____|_|_| |_|\__,_/_/\_\ (_)
______________________________________________________________________________
Vous avez un site perso ?
2 millions de francs à gagner sur i(france) !
Webmasters : ZE CONCOURS ! http://www.ifrance.com/_reloc/concours.emailif
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]