summaryrefslogtreecommitdiff
path: root/docs/styles.txt
diff options
context:
space:
mode:
authorTim Janik <timj@src.gnome.org>1998-02-27 22:09:20 +0000
committerTim Janik <timj@src.gnome.org>1998-02-27 22:09:20 +0000
commitb2e6c9723a4795baba743cdc2ad2665c444d97c0 (patch)
tree546c51039f9271e42bdf4419f1df055a3a5d0888 /docs/styles.txt
parent693fa02b839c54d0670f39df3f6dfde98a4d7788 (diff)
downloadgdk-pixbuf-b2e6c9723a4795baba743cdc2ad2665c444d97c0.tar.gz
GtkWIdget::style_set initial emission,
read up in docs/style.txt on this ;)
Diffstat (limited to 'docs/styles.txt')
-rw-r--r--docs/styles.txt38
1 files changed, 21 insertions, 17 deletions
diff --git a/docs/styles.txt b/docs/styles.txt
index a345bbce2..0975d6d2b 100644
--- a/docs/styles.txt
+++ b/docs/styles.txt
@@ -57,26 +57,31 @@ gtk_style_copy ()
GtkWidget::style_set
-This signal will be emitted for a widget once its style changes with
-the previous style supplied.
-the GtkWidgetClass implements a default handler for this signal that
-will set the widget's window's background of widgets that provide their
-own windows according to the new style.
-Derived widgets need to overide this default handler, if:
-- their size requisition depends on the current style.
- (e.g., on the style's fonts)
-- they set the background of widget->window to something other than.
- style->bg. (e.g., GtkListItem)
-- the widget provides windows other than widget->window.
-- the widget has any other stored dependencies on the style.
+ This signal will be emitted for a widget once its style changes with
+ an additional argument previous_style wich will hold the widget->style
+ avlue from a previous emission.
+ The initial emission of this signal is guaranteed to happen prior
+ to any GtkWidget::size_request emission, and will have the previous_style
+ argument set to NULL.
+ The GtkWidgetClass implements a default handler for this signal that
+ will set the widget's window's background of widgets that provide their
+ own windows according to the new style.
+ Derived widgets need to overide this default handler, if:
+ - their size requisition depends on the current style.
+ (e.g., on the style's fonts)
+ - they set the background of widget->window to something other than.
+ style->bg. (e.g., GtkListItem)
+ - the widget provides windows other than widget->window.
+ - the widget has any other stored dependencies on the style.
Flag indications:
!GTK_RC_STYLE && !GTK_USER_STYLE:
- The widget has it's default style set, and no rc lookup has been
- performed.
+ The widget has it's default style set, no rc lookup has been
+ performed, the widget has not been size requested yet and is
+ therefore not yet realized.
GTK_USER_STYLE:
GTK_RC_STYLE is not set.
@@ -86,9 +91,8 @@ GTK_USER_STYLE:
GTK_RC_STYLE:
GTK_USER_STYLE is not set.
If the widget has a saved default style, it has been assigned an
- rc style.
- If the widget does not have a saved default style, it still has its
- default style but an rc lookup has already been performed.
+ rc style. If the widget does not have a saved default style, it still
+ has its default style but an rc lookup has already been performed.
- Tim Janik <timj@gimp.org>