How to get native windows decorations on GTK3 on Windows 7+ and MSYS2

前端 未结 5 1084
旧巷少年郎
旧巷少年郎 2021-02-02 14:43

I am trying to port my application from linux to windows and I have a problem with theming. In linux this works out of a box, just compile it and application is using good theme

5条回答
  •  孤街浪徒
    2021-02-02 15:32

    While GTK_CSD=0 is doing a fine job for windows frame icons, it seams that default Drag-And-Drop (DND) icons are missing too.

    Dragging GtkEntry or GtkTreeView contents shows a drag-icon.

    I've prepared a button as drag source under Gtk+-3.24.4. When dragging the button, the mouse cursor disappears and no drag icon is shown.

    When using gtk_drag_source_set_icon_pixbuf(bt, pixbuf), the pixbuf appears as drag icon. But doing it this way is only half the job done, because move/copy indicators are missing on the icon.

提交回复
热议问题