Commit 87cfd54e authored by Michael Natterer's avatar Michael Natterer 😴 Committed by Michael Natterer

show the popup preview again.

2003-03-21  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimpcellrendererviewable.c
	(gimp_cell_renderer_viewable_clicked): show the popup preview
	again.

	* app/widgets/gimpcontainertreeview.c
	* app/widgets/gimpimagedock.c
	* app/widgets/gimptoolbox.c: removed useless #includes.
parent 7f613b47
2003-03-21 Michael Natterer <mitch@gimp.org>
* app/widgets/gimpcellrendererviewable.c
(gimp_cell_renderer_viewable_clicked): show the popup preview
again.
* app/widgets/gimpcontainertreeview.c
* app/widgets/gimpimagedock.c
* app/widgets/gimptoolbox.c: removed useless #includes.
2003-03-21 Michael Natterer <mitch@gimp.org>
* app/widgets/gimpeditor.[ch]: added a GimpItemFactory to the
......@@ -347,8 +347,22 @@ gimp_cell_renderer_viewable_clicked (GimpCellRendererViewable *cell,
const gchar *path,
GdkModifierType state)
{
GdkEvent *event;
g_return_if_fail (GIMP_IS_CELL_RENDERER_VIEWABLE (cell));
g_return_if_fail (path != NULL);
g_signal_emit (cell, viewable_cell_signals[CLICKED], 0, path, state);
event = gtk_get_current_event ();
if (event &&
((GdkEventAny *) event)->type == GDK_BUTTON_PRESS &&
((GdkEventButton *) event)->button == 1)
gimp_preview_popup_show (gtk_get_event_widget (event),
(GdkEventButton *) event,
cell->renderer->viewable,
cell->renderer->width,
cell->renderer->height,
TRUE);
}
......@@ -36,7 +36,6 @@
#include "gimpcontainertreeview.h"
#include "gimpcontainertreeview-dnd.h"
#include "gimpdnd.h"
#include "gimppreview.h"
#include "gimppreviewrenderer.h"
#include "gimpwidgets-utils.h"
......
......@@ -35,10 +35,7 @@
#include "gimpdialogfactory.h"
#include "gimpimagedock.h"
#include "gimpcontainermenuimpl.h"
#include "gimpdnd.h"
#include "gimpdockbook.h"
#include "gimpmenuitem.h"
#include "gimppreview.h"
#include "libgimp/gimpintl.h"
......
......@@ -35,10 +35,7 @@
#include "gimpdialogfactory.h"
#include "gimpimagedock.h"
#include "gimpcontainermenuimpl.h"
#include "gimpdnd.h"
#include "gimpdockbook.h"
#include "gimpmenuitem.h"
#include "gimppreview.h"
#include "libgimp/gimpintl.h"
......
......@@ -41,7 +41,6 @@
#include "gimpdialogfactory.h"
#include "gimpdnd.h"
#include "gimpitemfactory.h"
#include "gimppreview.h"
#include "gimptoolbox.h"
#include "gimptoolbox-color-area.h"
#include "gimptoolbox-indicator-area.h"
......
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