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/gtkhpaned.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/gtkhpaned.c')
-rw-r--r-- | gtk/gtkhpaned.c | 53 |
1 files changed, 0 insertions, 53 deletions
diff --git a/gtk/gtkhpaned.c b/gtk/gtkhpaned.c index 8747a0c1f1..32fa276ce3 100644 --- a/gtk/gtkhpaned.c +++ b/gtk/gtkhpaned.c @@ -32,8 +32,6 @@ static void gtk_hpaned_size_request (GtkWidget *widget, GtkRequisition *requisition); static void gtk_hpaned_size_allocate (GtkWidget *widget, GtkAllocation *allocation); -static void gtk_hpaned_draw (GtkWidget *widget, - GdkRectangle *area); static void gtk_hpaned_xor_line (GtkPaned *paned); static gboolean gtk_hpaned_button_press (GtkWidget *widget, GdkEventButton *event); @@ -76,7 +74,6 @@ gtk_hpaned_class_init (GtkHPanedClass *class) widget_class->size_request = gtk_hpaned_size_request; widget_class->size_allocate = gtk_hpaned_size_allocate; - widget_class->draw = gtk_hpaned_draw; widget_class->button_press_event = gtk_hpaned_button_press; widget_class->button_release_event = gtk_hpaned_button_release; widget_class->motion_notify_event = gtk_hpaned_motion; @@ -225,56 +222,6 @@ gtk_hpaned_size_allocate (GtkWidget *widget, } static void -gtk_hpaned_draw (GtkWidget *widget, - GdkRectangle *area) -{ - GtkPaned *paned; - GdkRectangle handle_area, child_area; - guint16 border_width; - - g_return_if_fail (widget != NULL); - g_return_if_fail (GTK_IS_PANED (widget)); - - if (GTK_WIDGET_VISIBLE (widget) && GTK_WIDGET_MAPPED (widget)) - { - paned = GTK_PANED (widget); - border_width = GTK_CONTAINER (paned)->border_width; - - gdk_window_clear_area (widget->window, - area->x, area->y, area->width, - area->height); - - handle_area.x = paned->handle_xpos; - handle_area.y = paned->handle_ypos; - handle_area.width = paned->handle_size; - handle_area.height = paned->handle_height; - - if (gdk_rectangle_intersect (&handle_area, area, &child_area)) - { - child_area.x -= paned->handle_xpos; - child_area.y -= paned->handle_ypos; - - gtk_paint_handle (widget->style, - paned->handle, - GTK_STATE_NORMAL, - GTK_SHADOW_NONE, - &child_area, - widget, - "paned", - 0, 0, -1, -1, - GTK_ORIENTATION_VERTICAL); - - } - /* Redraw the children - */ - if (paned->child1 && gtk_widget_intersect (paned->child1, area, &child_area)) - gtk_widget_draw(paned->child1, &child_area); - if (paned->child2 && gtk_widget_intersect(paned->child2, area, &child_area)) - gtk_widget_draw(paned->child2, &child_area); - } -} - -static void gtk_hpaned_xor_line (GtkPaned *paned) { GtkWidget *widget; |