diff options
author | Elliot Lee <sopwith@src.gnome.org> | 1998-01-02 20:31:46 +0000 |
---|---|---|
committer | Elliot Lee <sopwith@src.gnome.org> | 1998-01-02 20:31:46 +0000 |
commit | 9dadde735c4167e0d7b363e1fbe317a4e29edafd (patch) | |
tree | b4a0c23472553e80d1c8f39d9573cb14bf86f959 | |
parent | dc4e9e2fe18e612c12c45961238799286693c6ac (diff) | |
download | gdk-pixbuf-9dadde735c4167e0d7b363e1fbe317a4e29edafd.tar.gz |
Go back to old handlebox for now, so we can get a release outGTK_0_99_1
-rw-r--r-- | gtk/gtkhandlebox.c | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/gtk/gtkhandlebox.c b/gtk/gtkhandlebox.c index c89774ff5..180c58fa5 100644 --- a/gtk/gtkhandlebox.c +++ b/gtk/gtkhandlebox.c @@ -127,15 +127,6 @@ gtk_handle_box_realize (GtkWidget *widget) widget->window = gdk_window_new (widget->parent->window, &attributes, attributes_mask); gdk_window_set_user_data (widget->window, widget); - /* A nod to kwm... need to get a convention among various wm's on how to - do this. */ - { - long newval = 2; - gdk_property_change(widget->window, - gdk_atom_intern("KWM_WIN_DECORATION", FALSE), - gdk_atom_intern("KWM_WIN_DECORATION", FALSE), - sizeof(newval) * 8, GDK_PROP_MODE_REPLACE, &newval, 1); - } widget->style = gtk_style_attach (widget->style, widget->window); gtk_style_set_background (widget->style, widget->window, GTK_STATE_NORMAL); @@ -241,7 +232,6 @@ static void gtk_handle_box_paint(GtkWidget *widget, area->y, line_y2, x); -#if 0 if(GTK_BIN(widget)->child) gtk_draw_shadow(widget->style, widget->window, @@ -250,7 +240,6 @@ static void gtk_handle_box_paint(GtkWidget *widget, 0, 0, GTK_BIN(widget)->child->requisition.width + DRAG_HANDLE_SIZE, GTK_BIN(widget)->child->requisition.height); -#endif if(hb->is_onroot) gtk_draw_hline(widget->style, @@ -375,7 +364,7 @@ gtk_handle_box_set_location (GtkWidget *widget, GTK_HANDLE_BOX(widget)->is_onroot = TRUE; if(x < 0) x = parentx; if(y < 0) y = parenty; -/* gdk_window_set_override_redirect(widget->window, TRUE); */ + gdk_window_set_override_redirect(widget->window, TRUE); gdk_window_reparent(widget->window, GDK_ROOT_PARENT(), x, y); gdk_window_raise(widget->window); @@ -393,10 +382,8 @@ gtk_handle_box_set_location (GtkWidget *widget, else { GTK_HANDLE_BOX(widget)->is_onroot = FALSE; - gdk_window_withdraw(widget->window); gdk_window_reparent(widget->window, widget->parent->window, widget->allocation.x, widget->allocation.y); - gdk_window_show(widget->window); widget->requisition.height = 3; gtk_widget_queue_resize(widget->parent); } |