forked from AuroraMiddleware/gtk
Added "style_set" handlers.
Fri Dec 11 08:59:12 1998 Owen Taylor <otaylor@redhat.com> * gtk/gtklistitem.c (gtk_list_item_style_set): * gtk/gtklist.c (gtk_list_style_set): Added "style_set" handlers.
This commit is contained in:
parent
84b2d43d95
commit
11a8051179
@ -1,3 +1,9 @@
|
|||||||
|
Fri Dec 11 08:59:12 1998 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
|
* gtk/gtklistitem.c (gtk_list_item_style_set):
|
||||||
|
* gtk/gtklist.c (gtk_list_style_set):
|
||||||
|
Added "style_set" handlers.
|
||||||
|
|
||||||
Fri Dec 11 05:49:30 1998 Owen Taylor <otaylor@redhat.com>
|
Fri Dec 11 05:49:30 1998 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* gtk/gtkclist.c (gtk_clist_style_set): Add in a "style_set"
|
* gtk/gtkclist.c (gtk_clist_style_set): Add in a "style_set"
|
||||||
|
@ -1,3 +1,9 @@
|
|||||||
|
Fri Dec 11 08:59:12 1998 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
|
* gtk/gtklistitem.c (gtk_list_item_style_set):
|
||||||
|
* gtk/gtklist.c (gtk_list_style_set):
|
||||||
|
Added "style_set" handlers.
|
||||||
|
|
||||||
Fri Dec 11 05:49:30 1998 Owen Taylor <otaylor@redhat.com>
|
Fri Dec 11 05:49:30 1998 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* gtk/gtkclist.c (gtk_clist_style_set): Add in a "style_set"
|
* gtk/gtkclist.c (gtk_clist_style_set): Add in a "style_set"
|
||||||
|
@ -1,3 +1,9 @@
|
|||||||
|
Fri Dec 11 08:59:12 1998 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
|
* gtk/gtklistitem.c (gtk_list_item_style_set):
|
||||||
|
* gtk/gtklist.c (gtk_list_style_set):
|
||||||
|
Added "style_set" handlers.
|
||||||
|
|
||||||
Fri Dec 11 05:49:30 1998 Owen Taylor <otaylor@redhat.com>
|
Fri Dec 11 05:49:30 1998 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* gtk/gtkclist.c (gtk_clist_style_set): Add in a "style_set"
|
* gtk/gtkclist.c (gtk_clist_style_set): Add in a "style_set"
|
||||||
|
@ -1,3 +1,9 @@
|
|||||||
|
Fri Dec 11 08:59:12 1998 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
|
* gtk/gtklistitem.c (gtk_list_item_style_set):
|
||||||
|
* gtk/gtklist.c (gtk_list_style_set):
|
||||||
|
Added "style_set" handlers.
|
||||||
|
|
||||||
Fri Dec 11 05:49:30 1998 Owen Taylor <otaylor@redhat.com>
|
Fri Dec 11 05:49:30 1998 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* gtk/gtkclist.c (gtk_clist_style_set): Add in a "style_set"
|
* gtk/gtkclist.c (gtk_clist_style_set): Add in a "style_set"
|
||||||
|
@ -1,3 +1,9 @@
|
|||||||
|
Fri Dec 11 08:59:12 1998 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
|
* gtk/gtklistitem.c (gtk_list_item_style_set):
|
||||||
|
* gtk/gtklist.c (gtk_list_style_set):
|
||||||
|
Added "style_set" handlers.
|
||||||
|
|
||||||
Fri Dec 11 05:49:30 1998 Owen Taylor <otaylor@redhat.com>
|
Fri Dec 11 05:49:30 1998 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* gtk/gtkclist.c (gtk_clist_style_set): Add in a "style_set"
|
* gtk/gtkclist.c (gtk_clist_style_set): Add in a "style_set"
|
||||||
|
@ -1,3 +1,9 @@
|
|||||||
|
Fri Dec 11 08:59:12 1998 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
|
* gtk/gtklistitem.c (gtk_list_item_style_set):
|
||||||
|
* gtk/gtklist.c (gtk_list_style_set):
|
||||||
|
Added "style_set" handlers.
|
||||||
|
|
||||||
Fri Dec 11 05:49:30 1998 Owen Taylor <otaylor@redhat.com>
|
Fri Dec 11 05:49:30 1998 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* gtk/gtkclist.c (gtk_clist_style_set): Add in a "style_set"
|
* gtk/gtkclist.c (gtk_clist_style_set): Add in a "style_set"
|
||||||
|
@ -1,3 +1,9 @@
|
|||||||
|
Fri Dec 11 08:59:12 1998 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
|
* gtk/gtklistitem.c (gtk_list_item_style_set):
|
||||||
|
* gtk/gtklist.c (gtk_list_style_set):
|
||||||
|
Added "style_set" handlers.
|
||||||
|
|
||||||
Fri Dec 11 05:49:30 1998 Owen Taylor <otaylor@redhat.com>
|
Fri Dec 11 05:49:30 1998 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* gtk/gtkclist.c (gtk_clist_style_set): Add in a "style_set"
|
* gtk/gtkclist.c (gtk_clist_style_set): Add in a "style_set"
|
||||||
|
@ -46,6 +46,8 @@ static void gtk_list_size_allocate (GtkWidget *widget,
|
|||||||
static void gtk_list_realize (GtkWidget *widget);
|
static void gtk_list_realize (GtkWidget *widget);
|
||||||
static void gtk_list_map (GtkWidget *widget);
|
static void gtk_list_map (GtkWidget *widget);
|
||||||
static void gtk_list_unmap (GtkWidget *widget);
|
static void gtk_list_unmap (GtkWidget *widget);
|
||||||
|
static void gtk_list_style_set (GtkWidget *widget,
|
||||||
|
GtkStyle *previous_style);
|
||||||
static void gtk_list_draw (GtkWidget *widget,
|
static void gtk_list_draw (GtkWidget *widget,
|
||||||
GdkRectangle *area);
|
GdkRectangle *area);
|
||||||
static gint gtk_list_expose (GtkWidget *widget,
|
static gint gtk_list_expose (GtkWidget *widget,
|
||||||
@ -218,6 +220,7 @@ gtk_list_class_init (GtkListClass *class)
|
|||||||
|
|
||||||
widget_class->map = gtk_list_map;
|
widget_class->map = gtk_list_map;
|
||||||
widget_class->unmap = gtk_list_unmap;
|
widget_class->unmap = gtk_list_unmap;
|
||||||
|
widget_class->style_set = gtk_list_style_set;
|
||||||
widget_class->realize = gtk_list_realize;
|
widget_class->realize = gtk_list_realize;
|
||||||
widget_class->draw = gtk_list_draw;
|
widget_class->draw = gtk_list_draw;
|
||||||
widget_class->expose_event = gtk_list_expose;
|
widget_class->expose_event = gtk_list_expose;
|
||||||
@ -806,6 +809,15 @@ gtk_list_expose (GtkWidget *widget,
|
|||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void
|
||||||
|
gtk_list_style_set (GtkWidget *widget,
|
||||||
|
GtkStyle *previous_style)
|
||||||
|
{
|
||||||
|
g_return_if_fail (widget != NULL);
|
||||||
|
|
||||||
|
if (previous_style && GTK_WIDGET_REALIZED (widget))
|
||||||
|
gdk_window_set_background (widget->window, &widget->style->base[GTK_WIDGET_STATE (widget)]);
|
||||||
|
}
|
||||||
|
|
||||||
/* GtkContainer Methods :
|
/* GtkContainer Methods :
|
||||||
* gtk_list_add
|
* gtk_list_add
|
||||||
|
@ -47,6 +47,8 @@ static void gtk_list_item_size_request (GtkWidget *widget,
|
|||||||
GtkRequisition *requisition);
|
GtkRequisition *requisition);
|
||||||
static void gtk_list_item_size_allocate (GtkWidget *widget,
|
static void gtk_list_item_size_allocate (GtkWidget *widget,
|
||||||
GtkAllocation *allocation);
|
GtkAllocation *allocation);
|
||||||
|
static void gtk_list_item_style_set (GtkWidget *widget,
|
||||||
|
GtkStyle *previous_style);
|
||||||
static void gtk_list_item_draw (GtkWidget *widget,
|
static void gtk_list_item_draw (GtkWidget *widget,
|
||||||
GdkRectangle *area);
|
GdkRectangle *area);
|
||||||
static void gtk_list_item_draw_focus (GtkWidget *widget);
|
static void gtk_list_item_draw_focus (GtkWidget *widget);
|
||||||
@ -182,6 +184,7 @@ gtk_list_item_class_init (GtkListItemClass *class)
|
|||||||
widget_class->realize = gtk_list_item_realize;
|
widget_class->realize = gtk_list_item_realize;
|
||||||
widget_class->size_request = gtk_list_item_size_request;
|
widget_class->size_request = gtk_list_item_size_request;
|
||||||
widget_class->size_allocate = gtk_list_item_size_allocate;
|
widget_class->size_allocate = gtk_list_item_size_allocate;
|
||||||
|
widget_class->style_set = gtk_list_item_style_set;
|
||||||
widget_class->draw = gtk_list_item_draw;
|
widget_class->draw = gtk_list_item_draw;
|
||||||
widget_class->draw_focus = gtk_list_item_draw_focus;
|
widget_class->draw_focus = gtk_list_item_draw_focus;
|
||||||
widget_class->button_press_event = gtk_list_item_button_press;
|
widget_class->button_press_event = gtk_list_item_button_press;
|
||||||
@ -440,6 +443,16 @@ gtk_list_item_size_allocate (GtkWidget *widget,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void
|
||||||
|
gtk_list_item_style_set (GtkWidget *widget,
|
||||||
|
GtkStyle *previous_style)
|
||||||
|
{
|
||||||
|
g_return_if_fail (widget != NULL);
|
||||||
|
|
||||||
|
if (previous_style && GTK_WIDGET_REALIZED (widget))
|
||||||
|
gdk_window_set_background (widget->window, &widget->style->base[GTK_WIDGET_STATE (widget)]);
|
||||||
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
gtk_list_item_draw (GtkWidget *widget,
|
gtk_list_item_draw (GtkWidget *widget,
|
||||||
GdkRectangle *area)
|
GdkRectangle *area)
|
||||||
|
Loading…
Reference in New Issue
Block a user