1

I want to create a custom GTK Assistant with my own buttons to control moving forward and back pages. I also don't want to end the program so the pages will be constantly looped through.

I haven't been able to find anything on line about this, any help would be appreciated.

Or if there another good way to cycle through different pages/windows with buttons then that would also be appreciated.

Vadim Kotov
  • 8,084
  • 8
  • 48
  • 62
Joe
  • 37
  • 8
  • Why would you add your own buttons to a GtkAssistant? – theGtknerd Feb 23 '18 at 23:46
  • Make the GtkAssistant jump from the last page to first one to create an endless loop. – theGtknerd Feb 23 '18 at 23:47
  • I want to put the buttons in the place I want them and I don't want to have the bar at the top with the "x" and I don't want the cancel button also. When i put the application into full screen it gets rid of it (which is what I want), I just then need to have my own custom buttons controlling moving forward and back between the pages – Joe Feb 24 '18 at 12:55

2 Answers2

1

At that rate, you might be better off with a GtkStack.

Then set your window to popup or undecorated.

Or for a harder way, you could subclass the whole GtkAssistant and create your own implementation.

theGtknerd
  • 3,647
  • 1
  • 13
  • 34
1

You can set your GtkAssistantPageType to GTK_ASSISTANT_PAGE_CUSTOM and create page with your own buttons, but you should manage button's signal.

The other solution is the gtk_assistant_add_action_widget function.

Arfeo
  • 870
  • 7
  • 20