<div dir="ltr"><div><div><div><div>Hi,<br><br></div>I'm testing Gtk3 (I know that it is in alpha stage). I have latest lazarus from svn (1.3)<br><br></div>When using low level Gtk3 api then this code work fine:<br><br>uses<br>  {$IFDEF UNIX}{$IFDEF UseCThreads}<br>  cthreads,<br>  {$ENDIF}{$ENDIF}<br>  Interfaces, // this includes the LCL widgetset<br>  LazGtk3, LazGObject2;<br><br>{$R *.res}<br><br>var<br>  window: PGtkWindow;<br>  entry1, entry2: PGtkWidget;<br>  vbox: PGtkWidget;<br><br>begin<br>  gtk_init (@argc, @argv);<br><br>  window := gtk_window_new (GTK_WINDOW_TOPLEVEL);<br>  gtk_window_set_title (window, 'Window');<br><br>  g_signal_connect_data(window, 'destroy', TGCallback(@gtk_main_quit), nil, nil, 0);<br><br>  vbox := gtk_box_new(GTK_ORIENTATION_VERTICAL, 2);<br>  gtk_container_add (PGtkContainer(window), vbox);<br><br>  entry1 := gtk_entry_new ();<br>  gtk_entry_set_text(PGtkEntry(entry1), 'Hello');<br><br>  entry2 := gtk_entry_new ();<br>  gtk_entry_set_placeholder_text(PGtkEntry(entry2), '<Test>');<br><br>  gtk_box_pack_start(PGtkBox(vbox), entry1, True, True, 0);<br>  gtk_box_pack_start(PGtkBox(vbox), entry2, True, True, 0);<br><br>  gtk_widget_show_all (window);<br><br>  gtk_main ();<br>end.  <br><br></div>But if I create LCL application, then change LCLWidgetType to Gtk3 and call this:<br><br>procedure TForm1.Button1Click(Sender: TObject);<br>begin<br>  gtk_entry_set_placeholder_text(Edit1.Handle), PChar('Test'));<br>end;  <br><br></div>Then it doesn't work. Edit1.Handle should point to gtk widget right?<br></div>