diff options
author | Havoc Pennington <hp@pobox.com> | 2000-12-04 01:15:37 +0000 |
---|---|---|
committer | Havoc Pennington <hp@src.gnome.org> | 2000-12-04 01:15:37 +0000 |
commit | 5995baabef8988cbb5d6f9f01d8731f069f79524 (patch) | |
tree | a54cf207dca23815ff7698256a47b4986801c37e /gtk/gtkclist.c | |
parent | b18bb07b2d825d3788ab30f955a2fe2c6ad2915a (diff) | |
download | gtk+-5995baabef8988cbb5d6f9f01d8731f069f79524.tar.gz |
Remove "draw" virtual method and signal
2000-12-02 Havoc Pennington <hp@pobox.com>
* gtk/gtkwidget.h (struct _GtkWidgetClass): Remove "draw" virtual
method and signal
* gtk/gtkwidget.c (gtk_widget_draw): Now just queues a draw then
calls gdk_window_process_updates() to push the exposes through
(gtk_widget_class_init): No more draw signal, no
gtk_widget_real_draw()
* gtk/gtkbin.c (gtk_bin_draw): remove
* gtk/gtkbox.c (gtk_box_draw): remove
* gtk/gtkbutton.c (gtk_button_draw): remove
* gtk/gtkcalendar.c (gtk_calendar_draw): remove
* gtk/gtkcheckbutton.c (gtk_check_button_draw): remove
* gtk/gtkcheckmenuitem.c (gtk_check_menu_item_draw): remove
* gtk/gtkclist.c (gtk_clist_draw): remove
* gtk/gtkentry.c (gtk_entry_draw): remove
* gtk/gtkeventbox.c (gtk_event_box_draw): remove
* gtk/gtkfixed.c (gtk_fixed_draw): remove
* gtk/gtkframe.c (gtk_frame_draw): remove
* gtk/gtkhandlebox.c (gtk_handle_box_draw): remove
* gtk/gtkhpaned.c (gtk_hpaned_draw): remove
* gtk/gtklayout.c (gtk_layout_draw): remove
* gtk/gtklist.c (gtk_list_draw): remove
* gtk/gtklistitem.c (gtk_list_item_draw): remove
* gtk/gtkmenu.c (gtk_menu_draw): remove
* gtk/gtkmenubar.c (gtk_menu_bar_draw): remove
* gtk/gtkmenuitem.c (gtk_menu_item_draw): remove
* gtk/gtknotebook.c (gtk_notebook_draw): remove
* gtk/gtkoptionmenu.c (gtk_option_menu_draw): remove
* gtk/gtkpacker.c (gtk_packer_draw): remove
* gtk/gtkrange.c (gtk_range_draw): remove
* gtk/gtkscrolledwindow.c (gtk_scrolled_window_draw): remove
* gtk/gtkspinbutton.c (gtk_spin_button_draw): remove
* gtk/gtktable.c (gtk_table_draw): remove
* gtk/gtktearoffmenuitem.c (gtk_tearoff_menu_item_draw): remove
* gtk/gtktext.c (gtk_text_draw): remove
* gtk/gtktextview.c (gtk_text_view_draw): remove
* gtk/gtktogglebutton.c (gtk_toggle_button_draw): remove
* gtk/gtktoolbar.c (gtk_toolbar_draw): remove
* gtk/gtktree.c (gtk_tree_draw): remove
* gtk/gtktreeitem.c (gtk_tree_item_draw): remove
* gtk/gtktreeview.c (gtk_tree_view_draw): remove
* gtk/gtkviewport.c (gtk_viewport_draw): remove
* gtk/gtkvpaned.c (gtk_vpaned_draw): remove
* gtk/gtkvscale.c (gtk_vscale_draw): remove
* gtk/gtkwindow.c (gtk_window_draw): remove
Diffstat (limited to 'gtk/gtkclist.c')
-rw-r--r-- | gtk/gtkclist.c | 51 |
1 files changed, 0 insertions, 51 deletions
diff --git a/gtk/gtkclist.c b/gtk/gtkclist.c index 4519ac87b0..8af4a01eba 100644 --- a/gtk/gtkclist.c +++ b/gtk/gtkclist.c @@ -196,8 +196,6 @@ static void gtk_clist_realize (GtkWidget *widget); static void gtk_clist_unrealize (GtkWidget *widget); static void gtk_clist_map (GtkWidget *widget); static void gtk_clist_unmap (GtkWidget *widget); -static void gtk_clist_draw (GtkWidget *widget, - GdkRectangle *area); static gint gtk_clist_expose (GtkWidget *widget, GdkEventExpose *event); static gint gtk_clist_key_press (GtkWidget *widget, @@ -671,7 +669,6 @@ gtk_clist_class_init (GtkCListClass *klass) widget_class->unrealize = gtk_clist_unrealize; widget_class->map = gtk_clist_map; widget_class->unmap = gtk_clist_unmap; - widget_class->draw = gtk_clist_draw; widget_class->button_press_event = gtk_clist_button_press; widget_class->button_release_event = gtk_clist_button_release; widget_class->motion_notify_event = gtk_clist_motion; @@ -4425,7 +4422,6 @@ gtk_clist_finalize (GObject *object) * gtk_clist_unrealize * gtk_clist_map * gtk_clist_unmap - * gtk_clist_draw * gtk_clist_expose * gtk_clist_style_set * gtk_clist_key_press @@ -4767,53 +4763,6 @@ gtk_clist_unmap (GtkWidget *widget) } } -static void -gtk_clist_draw (GtkWidget *widget, - GdkRectangle *area) -{ - GtkCList *clist; - gint border_width; - GdkRectangle child_area; - int i; - - g_return_if_fail (widget != NULL); - g_return_if_fail (GTK_IS_CLIST (widget)); - g_return_if_fail (area != NULL); - - if (GTK_WIDGET_DRAWABLE (widget)) - { - clist = GTK_CLIST (widget); - border_width = GTK_CONTAINER (widget)->border_width; - - gdk_window_clear_area (widget->window, - area->x - border_width, - area->y - border_width, - area->width, area->height); - - /* draw list shadow/border */ - gtk_draw_shadow (widget->style, widget->window, - GTK_STATE_NORMAL, clist->shadow_type, - 0, 0, - clist->clist_window_width + - (2 * widget->style->xthickness), - clist->clist_window_height + - (2 * widget->style->ythickness) + - clist->column_title_area.height); - - gdk_window_clear_area (clist->clist_window, 0, 0, 0, 0); - draw_rows (clist, NULL); - - for (i = 0; i < clist->columns; i++) - { - if (!clist->column[i].visible) - continue; - if (clist->column[i].button && - gtk_widget_intersect(clist->column[i].button, area, &child_area)) - gtk_widget_draw (clist->column[i].button, &child_area); - } - } -} - static gint gtk_clist_expose (GtkWidget *widget, GdkEventExpose *event) |