Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Gtk time picker widget

Tags:

gtk

gtk3

I am looking for a GtkWidget to pick a time value. It does not have to be as sophisticated as the carousel Android provides, two linked number input fields would suffice. Ideally, if the minute field rolls over 60 or 0, the hour field should change.

I found no such widget shipped with GTK (version 3.22) itself. There is only the far more complex GtkCalendar for dates.

Am I missing an easy way to implement such a class? Or is something like it available in a third-part-library?

like image 804
XZS Avatar asked Oct 15 '25 03:10

XZS


1 Answers

There aren't any native GTK widgets for this, but the Gnome Date & Time settings uses two GtkSpinButtons in vertical orientation:

Gnome Date & Time settings

like image 96
Stepan Avatar answered Oct 17 '25 23:10

Stepan



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!