diff options
author | Matthias Clasen <mclasen@redhat.com> | 2005-09-13 19:57:42 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2005-09-13 19:57:42 +0000 |
commit | 463aab93dd04bb815f13ff8f17019071162a8ac3 (patch) | |
tree | 539f4100082e7cb0fcb1a1ba449e3b7791eb4cfd /gtk/gtktearoffmenuitem.c | |
parent | 9a5d4a2ff9e9117b731418d0deafd4204cace1c4 (diff) | |
download | gdk-pixbuf-463aab93dd04bb815f13ff8f17019071162a8ac3.tar.gz |
Various cleanups. (#315360, Kjartan Maraas)
2005-09-13 Matthias Clasen <mclasen@redhat.com>
* gtk/*.c: Various cleanups. (#315360, Kjartan Maraas)
Diffstat (limited to 'gtk/gtktearoffmenuitem.c')
-rw-r--r-- | gtk/gtktearoffmenuitem.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/gtk/gtktearoffmenuitem.c b/gtk/gtktearoffmenuitem.c index 1c61856e5..c41af0aaa 100644 --- a/gtk/gtktearoffmenuitem.c +++ b/gtk/gtktearoffmenuitem.c @@ -82,11 +82,9 @@ gtk_tearoff_menu_item_new (void) static void gtk_tearoff_menu_item_class_init (GtkTearoffMenuItemClass *klass) { - GtkObjectClass *object_class; GtkWidgetClass *widget_class; GtkMenuItemClass *menu_item_class; - object_class = (GtkObjectClass*) klass; widget_class = (GtkWidgetClass*) klass; menu_item_class = (GtkMenuItemClass*) klass; @@ -107,10 +105,6 @@ static void gtk_tearoff_menu_item_size_request (GtkWidget *widget, GtkRequisition *requisition) { - GtkTearoffMenuItem *tearoff; - - tearoff = GTK_TEAROFF_MENU_ITEM (widget); - requisition->width = (GTK_CONTAINER (widget)->border_width + widget->style->xthickness + BORDER_SPACING) * 2; @@ -132,7 +126,6 @@ gtk_tearoff_menu_item_paint (GtkWidget *widget, GdkRectangle *area) { GtkMenuItem *menu_item; - GtkTearoffMenuItem *tearoff_item; GtkShadowType shadow_type; gint width, height; gint x, y; @@ -143,7 +136,6 @@ gtk_tearoff_menu_item_paint (GtkWidget *widget, if (GTK_WIDGET_DRAWABLE (widget)) { menu_item = GTK_MENU_ITEM (widget); - tearoff_item = GTK_TEAROFF_MENU_ITEM (widget); direction = gtk_widget_get_direction (widget); |