Commit a52ad9d3 authored by Michael Natterer's avatar Michael Natterer 😴 Committed by Michael Natterer

#define GIMP_DOCKABLE_DRAG_OFFSET publically.

2005-12-30  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimpdockable.[ch]: #define GIMP_DOCKABLE_DRAG_OFFSET
	publically.

	* app/widgets/gimpdockbook.c (gimp_dockbook_tab_drag_end): use the
	define to reset the dockable's drag offsets.
parent a66bf701
2005-12-30 Michael Natterer <mitch@gimp.org>
* app/widgets/gimpdockable.[ch]: #define GIMP_DOCKABLE_DRAG_OFFSET
publically.
* app/widgets/gimpdockbook.c (gimp_dockbook_tab_drag_end): use the
define to reset the dockable's drag offsets.
2005-12-30 Michael Natterer <mitch@gimp.org>
* app/dialogs/preferences-dialog.c
......
......@@ -42,9 +42,6 @@
#include "gimp-intl.h"
#define DRAG_OFFSET (-6)
static void gimp_dockable_destroy (GtkObject *object);
static void gimp_dockable_size_request (GtkWidget *widget,
GtkRequisition *requisition);
......@@ -150,8 +147,8 @@ gimp_dockable_init (GimpDockable *dockable)
dockable->title_layout = NULL;
dockable->title_window = NULL;
dockable->drag_x = DRAG_OFFSET;
dockable->drag_y = DRAG_OFFSET;
dockable->drag_x = GIMP_DOCKABLE_DRAG_OFFSET;
dockable->drag_y = GIMP_DOCKABLE_DRAG_OFFSET;
gtk_widget_push_composite_child ();
dockable->menu_button = gtk_button_new ();
......@@ -565,7 +562,7 @@ gimp_dockable_button_release (GtkWidget *widget)
{
GimpDockable *dockable = GIMP_DOCKABLE (widget);
dockable->drag_x = DRAG_OFFSET;
dockable->drag_x = GIMP_DOCKABLE_DRAG_OFFSET;
return FALSE;
}
......
......@@ -26,6 +26,9 @@
#include <gtk/gtkbin.h>
#define GIMP_DOCKABLE_DRAG_OFFSET (-6)
#define GIMP_TYPE_DOCKABLE (gimp_dockable_get_type ())
#define GIMP_DOCKABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GIMP_TYPE_DOCKABLE, GimpDockable))
#define GIMP_DOCKABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GIMP_TYPE_DOCKABLE, GimpDockableClass))
......
......@@ -593,6 +593,8 @@ gimp_dockbook_tab_drag_end (GtkWidget *widget,
gimp_dockable_detach (dockable);
}
dockable->drag_x = GIMP_DOCKABLE_DRAG_OFFSET;
dockable->drag_y = GIMP_DOCKABLE_DRAG_OFFSET;
gtk_widget_set_sensitive (GTK_WIDGET (dockable), TRUE);
}
......
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