Commit 7ab05fdd authored by Sven Neumann's avatar Sven Neumann Committed by Sven Neumann

use the width of the source widget as the minimum width of the drag icon.

2005-12-29  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimpdockbook.c (gimp_dockbook_tab_drag_begin): use
	the width of the source widget as the minimum width of the drag
	icon.
parent 2723c2e7
2005-12-29 Sven Neumann <sven@gimp.org>
* app/widgets/gimpdockbook.c (gimp_dockbook_tab_drag_begin): use
the width of the source widget as the minimum width of the drag icon.
2005-12-29 Sven Neumann <sven@gimp.org>
* app/widgets/gimpdockable.[ch]: store coordinates of last button
......
......@@ -525,10 +525,11 @@ gimp_dockbook_tab_drag_begin (GtkWidget *widget,
GdkDragContext *context,
gpointer data)
{
GimpDockable *dockable = GIMP_DOCKABLE (data);
GtkWidget *window;
GtkWidget *frame;
GtkWidget *view;
GimpDockable *dockable = GIMP_DOCKABLE (data);
GtkWidget *window;
GtkWidget *frame;
GtkWidget *view;
GtkRequisition requisition;
window = gtk_window_new (GTK_WINDOW_POPUP);
......@@ -551,6 +552,13 @@ gimp_dockbook_tab_drag_begin (GtkWidget *widget,
gtk_container_add (GTK_CONTAINER (frame), view);
gtk_widget_show (view);
gtk_window_set_screen (GTK_WINDOW (window), gtk_widget_get_screen (widget));
gtk_widget_size_request (view, &requisition);
if (requisition.width < widget->allocation.width)
gtk_widget_set_size_request (view, widget->allocation.width, -1);
gtk_widget_show (window);
g_object_set_data_full (G_OBJECT (dockable), "gimp-dock-drag-widget",
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment