[gimp/gtk3-port: 69/227] app: port to GtkWidget::draw()
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/gtk3-port: 69/227] app: port to GtkWidget::draw()
- Date: Mon, 6 Jul 2015 00:52:53 +0000 (UTC)
commit 2d5482b8859c8b31ded4f7b387a4af6d3728dfe9
Author: Michael Natterer <mitch gimp org>
Date: Thu Oct 21 13:15:52 2010 +0200
app: port to GtkWidget::draw()
app/widgets/gimphistogrameditor.c | 10 ++++++----
1 files changed, 6 insertions(+), 4 deletions(-)
---
diff --git a/app/widgets/gimphistogrameditor.c b/app/widgets/gimphistogrameditor.c
index eca4837..551a366 100644
--- a/app/widgets/gimphistogrameditor.c
+++ b/app/widgets/gimphistogrameditor.c
@@ -62,7 +62,8 @@ static void gimp_histogram_editor_menu_update (GimpHistogramEditor *editor
static void gimp_histogram_editor_name_update (GimpHistogramEditor *editor);
static void gimp_histogram_editor_info_update (GimpHistogramEditor *editor);
-static gboolean gimp_histogram_view_expose (GimpHistogramEditor *editor);
+static gboolean gimp_histogram_view_draw (GimpHistogramEditor *editor,
+ cairo_t *cr);
G_DEFINE_TYPE_WITH_CODE (GimpHistogramEditor, gimp_histogram_editor,
@@ -151,8 +152,8 @@ gimp_histogram_editor_init (GimpHistogramEditor *editor)
G_CALLBACK (gimp_histogram_editor_info_update),
editor);
- g_signal_connect_swapped (view, "expose-event",
- G_CALLBACK (gimp_histogram_view_expose),
+ g_signal_connect_swapped (view, "draw",
+ G_CALLBACK (gimp_histogram_view_draw),
editor);
table = gtk_table_new (3, 4, FALSE);
@@ -564,7 +565,8 @@ gimp_histogram_editor_info_update (GimpHistogramEditor *editor)
}
static gboolean
-gimp_histogram_view_expose (GimpHistogramEditor *editor)
+gimp_histogram_view_draw (GimpHistogramEditor *editor,
+ cairo_t *cr)
{
gimp_histogram_editor_validate (editor);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]