[gimp/gtk3-port: 62/336] app: passing -1 as width/height to gtk_paint_box() no longer works
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/gtk3-port: 62/336] app: passing -1 as width/height to gtk_paint_box() no longer works
- Date: Fri, 4 May 2018 09:53:33 +0000 (UTC)
commit 9a6f6f540531db5c5bd59e0ca4ca4eceec25d92b
Author: Michael Natterer <mitch gimp org>
Date: Wed Oct 20 19:37:35 2010 +0200
app: passing -1 as width/height to gtk_paint_box() no longer works
app/widgets/gimptagpopup.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/app/widgets/gimptagpopup.c b/app/widgets/gimptagpopup.c
index 4aae4df..0099676 100644
--- a/app/widgets/gimptagpopup.c
+++ b/app/widgets/gimptagpopup.c
@@ -556,7 +556,7 @@ gimp_tag_popup_border_draw (GtkWidget *widget,
cairo_t *cr,
GimpTagPopup *popup)
{
- GtkStyle *style = gtk_widget_get_style (widget);
+ GtkStyle *style = gtk_widget_get_style (widget);
GdkRectangle border;
GdkRectangle upper;
GdkRectangle lower;
@@ -574,7 +574,9 @@ gimp_tag_popup_border_draw (GtkWidget *widget,
GTK_STATE_NORMAL,
GTK_SHADOW_OUT,
widget, "menu",
- 0, 0, -1, -1);
+ 0, 0,
+ gtk_widget_get_allocated_width (widget),
+ gtk_widget_get_allocated_height (widget));
if (popup->arrows_visible)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]