View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0031740 | Patches | Widgetset | public | 2017-05-01 13:12 | 2017-05-01 13:55 |
Reporter | CudaText man | Assigned To | Zeljan Rikalo | ||
Priority | normal | Severity | minor | Reproducibility | have not tried |
Status | resolved | Resolution | fixed | ||
Platform | Gtk2 | ||||
Product Version | 1.9 (SVN) | ||||
Target Version | 1.8 | Fixed in Version | 1.9 (SVN) | ||
Summary | 0031740: ShowWindow(..SW_Restore) on gtk2 | ||||
Description | simple diff. It calls 3 gtk funcs. Tested: - after sw_maximize, sw_restore works - after sw_minimize, don't work but must work.. | ||||
Additional Information | BTW, sw_shownormal don't work here after sw_minimize; must work too, it calls gtk_window_deiconify. | ||||
Tags | No tags attached. | ||||
Fixed in Revision | 54791 | ||||
LazTarget | 1.8 | ||||
Widgetset | GTK 2 | ||||
Attached Files |
|
|
gtk-r.diff (487 bytes)
Index: lcl/interfaces/gtk2/gtk2winapi.inc =================================================================== --- lcl/interfaces/gtk2/gtk2winapi.inc (revision 54782) +++ lcl/interfaces/gtk2/gtk2winapi.inc (working copy) @@ -9474,6 +9474,13 @@ else gtk_window_fullscreen(GtkWindow); + SW_RESTORE: + begin + gtk_window_deiconify(GtkWindow); + gtk_window_unmaximize(GtkWindow); + gtk_window_unfullscreen(GtkWindow); + end; + end; Result := True; |
|
|
|
Please test and close if ok. I'll add it to the merge list for laz 1.8 |
|
How about GTK3? |
Date Modified | Username | Field | Change |
---|---|---|---|
2017-05-01 13:12 | CudaText man | New Issue | |
2017-05-01 13:12 | CudaText man | File Added: gtk-r.diff | |
2017-05-01 13:15 | CudaText man | File Added: tst-sw-restore.zip | |
2017-05-01 13:42 | Zeljan Rikalo | Assigned To | => Zeljan Rikalo |
2017-05-01 13:42 | Zeljan Rikalo | Status | new => assigned |
2017-05-01 13:45 | Zeljan Rikalo | Fixed in Revision | => 54791 |
2017-05-01 13:45 | Zeljan Rikalo | LazTarget | => 1.8 |
2017-05-01 13:45 | Zeljan Rikalo | Note Added: 0100035 | |
2017-05-01 13:45 | Zeljan Rikalo | Status | assigned => resolved |
2017-05-01 13:45 | Zeljan Rikalo | Fixed in Version | => 1.9 (SVN) |
2017-05-01 13:45 | Zeljan Rikalo | Resolution | open => fixed |
2017-05-01 13:45 | Zeljan Rikalo | Target Version | => 1.8 |
2017-05-01 13:55 | Juha Manninen | Note Added: 0100038 |