#134 Brush preview window size issue

open
nobody
None
5
2011-06-26
2011-06-26
Geza Geleji
No

In brush_select.c, function brush_popup_open(), the size of the brush preview window is not correctly set. Setting the size of the preview widget is not enough, the window size should be changed accordingly as well.

Original code from brush_select.c:

752 gtk_preview_size (GTK_PREVIEW (bsp->brush_preview), w, h);
753
754 #if GTK_MAJOR_VERSION > 1
755 gtk_widget_show (bsp->brush_popup);
756 gtk_window_move (GTK_WINDOW(bsp->brush_popup), x, y);
757 #else
758 gtk_widget_popup (bsp->brush_popup, x, y);
759 #endif

Proposed change: insert

755 gtk_widget_set_size_request (GTK_WIDGET(bsp->brush_popup), w, h);
756 gtk_window_resize (GTK_WINDOW(bsp->brush_popup), w, h);

Discussion


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks