Re: gtk_button_set_markup / animation / background color
- From: Matthias Clasen <mclasen redhat com>
- To: Tristan Van Berkom <tristan van berkom gmail com>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: gtk_button_set_markup / animation / background color
- Date: Thu, 25 Aug 2005 12:34:44 -0400
On Thu, 2005-08-25 at 11:14 -0400, Tristan Van Berkom wrote:
ramare wrote:
Dear all,
I'm working on the look and feel of my gtk application.
-- first : many thanks for those who developped this stuff :-)
-- second : gtk_label_set_markup is great
but how do I do that with button instead ?
The only way is to put a label inside my button ?
Any GtkButton api's that deal with text are only convenience api's,
it often makes more sence to just deal with the label directly and add
it to the button.
-- You know, gimp proposes animation like "rotating and aspiring"
your image. Well, it proposes to modify your image. So I
take a shot every 15degrees and make the animation by changing
the image every x milliseconds ---
A better way of doing ?
I dont think there is any built in functionality like this in GTK+
afaik you have to compose your animation first, maybe you can do
something with animated gifs ? (I'm really not sure).
You can use gtk_image_set_from_animation() to let GTK+ take care about
the updating and timekeeping. Since 2.8, you can construct animations
from a sequence of frames, using gdk_pixbuf_simple_anim_new() instead
of loading animated GIF or ANI files.
Matthias
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]