Add in a "style_set" handler so that the background of the clist changes
Fri Dec 11 05:49:30 1998 Owen Taylor <otaylor@redhat.com> * gtk/gtkclist.c (gtk_clist_style_set): Add in a "style_set" handler so that the background of the clist changes with the theme.
This commit is contained in:
@@ -1,3 +1,9 @@
|
||||
Fri Dec 11 05:49:30 1998 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gtk/gtkclist.c (gtk_clist_style_set): Add in a "style_set"
|
||||
handler so that the background of the clist changes
|
||||
with the theme.
|
||||
|
||||
Thu Dec 10 22:02:49 CST 1998 Shawn T. Amundson <amundson@gtk.org>
|
||||
|
||||
* Released GTK+ 1.1.7
|
||||
|
||||
@@ -1,3 +1,9 @@
|
||||
Fri Dec 11 05:49:30 1998 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gtk/gtkclist.c (gtk_clist_style_set): Add in a "style_set"
|
||||
handler so that the background of the clist changes
|
||||
with the theme.
|
||||
|
||||
Thu Dec 10 22:02:49 CST 1998 Shawn T. Amundson <amundson@gtk.org>
|
||||
|
||||
* Released GTK+ 1.1.7
|
||||
|
||||
@@ -1,3 +1,9 @@
|
||||
Fri Dec 11 05:49:30 1998 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gtk/gtkclist.c (gtk_clist_style_set): Add in a "style_set"
|
||||
handler so that the background of the clist changes
|
||||
with the theme.
|
||||
|
||||
Thu Dec 10 22:02:49 CST 1998 Shawn T. Amundson <amundson@gtk.org>
|
||||
|
||||
* Released GTK+ 1.1.7
|
||||
|
||||
@@ -1,3 +1,9 @@
|
||||
Fri Dec 11 05:49:30 1998 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gtk/gtkclist.c (gtk_clist_style_set): Add in a "style_set"
|
||||
handler so that the background of the clist changes
|
||||
with the theme.
|
||||
|
||||
Thu Dec 10 22:02:49 CST 1998 Shawn T. Amundson <amundson@gtk.org>
|
||||
|
||||
* Released GTK+ 1.1.7
|
||||
|
||||
@@ -1,3 +1,9 @@
|
||||
Fri Dec 11 05:49:30 1998 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gtk/gtkclist.c (gtk_clist_style_set): Add in a "style_set"
|
||||
handler so that the background of the clist changes
|
||||
with the theme.
|
||||
|
||||
Thu Dec 10 22:02:49 CST 1998 Shawn T. Amundson <amundson@gtk.org>
|
||||
|
||||
* Released GTK+ 1.1.7
|
||||
|
||||
@@ -1,3 +1,9 @@
|
||||
Fri Dec 11 05:49:30 1998 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gtk/gtkclist.c (gtk_clist_style_set): Add in a "style_set"
|
||||
handler so that the background of the clist changes
|
||||
with the theme.
|
||||
|
||||
Thu Dec 10 22:02:49 CST 1998 Shawn T. Amundson <amundson@gtk.org>
|
||||
|
||||
* Released GTK+ 1.1.7
|
||||
|
||||
@@ -1,3 +1,9 @@
|
||||
Fri Dec 11 05:49:30 1998 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gtk/gtkclist.c (gtk_clist_style_set): Add in a "style_set"
|
||||
handler so that the background of the clist changes
|
||||
with the theme.
|
||||
|
||||
Thu Dec 10 22:02:49 CST 1998 Shawn T. Amundson <amundson@gtk.org>
|
||||
|
||||
* Released GTK+ 1.1.7
|
||||
|
||||
@@ -4689,6 +4689,13 @@ gtk_clist_style_set (GtkWidget *widget,
|
||||
|
||||
clist = GTK_CLIST (widget);
|
||||
|
||||
if (GTK_WIDGET_REALIZED (widget))
|
||||
{
|
||||
gtk_style_set_background (widget->style, widget->window, widget->state);
|
||||
gtk_style_set_background (widget->style, clist->title_window, GTK_STATE_SELECTED);
|
||||
gdk_window_set_background (clist->clist_window, &widget->style->bg[GTK_STATE_PRELIGHT]);
|
||||
}
|
||||
|
||||
/* Fill in data after widget has correct style */
|
||||
|
||||
/* text properties */
|
||||
|
||||
Reference in New Issue
Block a user