View Issue Details

IDProjectCategoryView StatusLast Update
0031740PatchesWidgetsetpublic2017-05-01 13:55
ReporterCudaText man Assigned ToZeljan Rikalo  
PrioritynormalSeverityminorReproducibilityhave not tried
Status resolvedResolutionfixed 
PlatformGtk2 
Product Version1.9 (SVN) 
Target Version1.8Fixed in Version1.9 (SVN) 
Summary0031740: ShowWindow(..SW_Restore) on gtk2
Descriptionsimple diff.
It calls 3 gtk funcs.
Tested:
- after sw_maximize, sw_restore works
- after sw_minimize, don't work but must work..

Additional InformationBTW, sw_shownormal don't work here after sw_minimize;
must work too, it calls gtk_window_deiconify.

TagsNo tags attached.
Fixed in Revision54791
LazTarget1.8
WidgetsetGTK 2
Attached Files

Activities

CudaText man

2017-05-01 13:12

reporter  

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;
gtk-r.diff (487 bytes)   

CudaText man

2017-05-01 13:15

reporter  

tst-sw-restore.zip (4,305 bytes)

Zeljan Rikalo

2017-05-01 13:45

developer   ~0100035

Please test and close if ok. I'll add it to the merge list for laz 1.8

Juha Manninen

2017-05-01 13:55

developer   ~0100038

How about GTK3?

Issue History

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