mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-06 18:40:33 +02:00
Gtk2: added missing result in gtk2trayicon, cleanup of unused variables, fixed compiler warnings
git-svn-id: trunk@35675 -
This commit is contained in:
parent
37056b6883
commit
aaa6a65283
@ -1462,7 +1462,7 @@ begin
|
||||
if g_object_get_data(PGObject(AGtkWidget),'lcl-column-resized-dblclick') <> nil then
|
||||
begin
|
||||
AIndex := PtrInt(g_object_get_data(PGObject(AGtkWidget),'lcl-column-resized-dblclick') - 1);
|
||||
ASizing := TGtkTreeViewColumnSizing(PtrInt(g_object_get_data(PGObject(AGtkWidget),'lcl-column-resized-dblclick-oldsizing')) - 1);
|
||||
ASizing := TGtkTreeViewColumnSizing(PtrUInt(g_object_get_data(PGObject(AGtkWidget),'lcl-column-resized-dblclick-oldsizing')) - 1);
|
||||
g_object_set_data(PGObject(AGtkWidget),'lcl-column-resized-dblclick', nil);
|
||||
g_object_set_data(PGObject(AGtkWidget),'lcl-column-resized-dblclick-oldsizing', nil);
|
||||
if (AIndex >= 0) then
|
||||
@ -1678,9 +1678,9 @@ var
|
||||
Info: PWidgetInfo;
|
||||
Old: TObject;
|
||||
Mess: TLMessage;
|
||||
{ $IFDEF VerboseMouseBugfix}
|
||||
{$IFDEF VerboseMouseBugfix}
|
||||
AWinControl: TWinControl;
|
||||
{ $ENDIF}
|
||||
{$ENDIF}
|
||||
begin
|
||||
Result := CallBackDefaultReturn;
|
||||
|
||||
|
@ -343,6 +343,7 @@ function button_release_cb_statusicon(status_icon: PGtkStatusIcon;
|
||||
var
|
||||
vwsTrayIcon: TCustomTrayIcon absolute user_data;
|
||||
begin
|
||||
Result := False;
|
||||
case PGdkEventButton(event)^.button of
|
||||
1:
|
||||
begin
|
||||
|
@ -4339,7 +4339,7 @@ var
|
||||
nitemsReturned: PtrInt;
|
||||
unused: PtrInt;
|
||||
data: Pointer;
|
||||
Screen: PGdkScreen;
|
||||
// Screen: PGdkScreen;
|
||||
begin
|
||||
Result := '';
|
||||
|
||||
@ -4347,7 +4347,7 @@ begin
|
||||
|
||||
if Display = nil then
|
||||
exit;
|
||||
Screen := gdk_screen_get_default;
|
||||
// Screen := gdk_screen_get_default;
|
||||
RootWin := gdk_x11_get_default_root_xwindow;
|
||||
|
||||
WMAtom := XInternAtom(Display,'_NET_WM_DESKTOP', True);
|
||||
|
@ -35,8 +35,6 @@
|
||||
|
||||
{off $define VerboseScrollWindowEx}
|
||||
|
||||
const
|
||||
BOOL_TEXT: array[Boolean] of string = ('False', 'True');
|
||||
|
||||
//##apiwiz##sps## // Do not remove
|
||||
|
||||
|
@ -976,7 +976,6 @@ var
|
||||
|
||||
procedure PaintWidget(AWidget: PGtkWidget);
|
||||
var
|
||||
AOffset: TPoint;
|
||||
AWindow: PGdkWindow;
|
||||
begin
|
||||
if (AWinControl.FCompStyle = csForm) then
|
||||
|
@ -245,7 +245,6 @@ end;
|
||||
class procedure TGtk2WSCustomPanel.SetColor(const AWinControl: TWinControl);
|
||||
var
|
||||
MainWidget: PGtkWidget;
|
||||
FontColor, BGColor: TColor;
|
||||
begin
|
||||
if not AWinControl.HandleAllocated then exit;
|
||||
MainWidget:=GetFixedWidget(pGtkWidget(AWinControl.handle));
|
||||
|
Loading…
Reference in New Issue
Block a user