[gimp] modules: add size-request workaround that is not needed any longer
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] modules: add size-request workaround that is not needed any longer
- Date: Sun, 31 Oct 2010 15:16:13 +0000 (UTC)
commit 1f398549e24f8ae21ef8993718a53aac62b72e35
Author: Michael Natterer <mitch gimp org>
Date: Sun Oct 31 16:15:33 2010 +0100
modules: add size-request workaround that is not needed any longer
modules/color-selector-wheel.c | 24 ------------------------
1 files changed, 0 insertions(+), 24 deletions(-)
---
diff --git a/modules/color-selector-wheel.c b/modules/color-selector-wheel.c
index 8a5c158..465b095 100644
--- a/modules/color-selector-wheel.c
+++ b/modules/color-selector-wheel.c
@@ -62,9 +62,6 @@ static void colorsel_wheel_set_color (GimpColorSelector *selector,
static void colorsel_wheel_size_allocate (GtkWidget *frame,
GtkAllocation *allocation,
ColorselWheel *wheel);
-static void colorsel_wheel_size_request (GtkWidget *dont_use,
- GtkRequisition *requisition,
- ColorselWheel *wheel);
static void colorsel_wheel_changed (GtkHSV *hsv,
GimpColorSelector *selector);
@@ -131,10 +128,6 @@ colorsel_wheel_init (ColorselWheel *wheel)
gtk_container_add (GTK_CONTAINER (frame), wheel->hsv);
gtk_widget_show (wheel->hsv);
- g_signal_connect (wheel->hsv, "size-request",
- G_CALLBACK (colorsel_wheel_size_request),
- wheel);
-
g_signal_connect (wheel->hsv, "changed",
G_CALLBACK (colorsel_wheel_changed),
wheel);
@@ -173,23 +166,6 @@ colorsel_wheel_size_allocate (GtkWidget *frame,
}
static void
-colorsel_wheel_size_request (GtkWidget *dont_use,
- GtkRequisition *requisition,
- ColorselWheel *wheel)
-{
- gint focus_width;
- gint focus_padding;
-
- gtk_widget_style_get (wheel->hsv,
- "focus-line-width", &focus_width,
- "focus-padding", &focus_padding,
- NULL);
-
- requisition->width = 2 * (focus_width + focus_padding);
- requisition->height = 2 * (focus_width + focus_padding);
-}
-
-static void
colorsel_wheel_changed (GtkHSV *hsv,
GimpColorSelector *selector)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]