I'm having trouble creating a GTK calendar widget in an application.
Purpose:
Basically, I wanted to have a text box with a list in which you can enter a date, for example, 2011/02/01, and it will automatically change the date. This part is not a problem, the other part is the drop-down calendar aspect, where you can click on the drop-down button next to the combo box and it drops into the calendar where you can select the date.
Problems / semi-trailers solutions:
I spent some work hacking this with Ruby GTK (indeed, Gnome bindings), and below are some of the solutions I came up with.
Basically I created a text box, then created a button and gave it a down arrow to simulate a drop down button for a combo box, and it looks good, and not the best thing in the world.
For the calendar widget, I will create a borderless / no title dialog box and insert a calendar widget into it and place it just below the text box in which the list with the list will be displayed.
It will be rejected when the user selects a date.
However, there are a few problems with the above solution that I came across:
The borderless / titleless dialog still creates what appears on the taskbar ...
If the user presses the "ctrl + q" button to close the application, since the calendar widget has focus, the key binding never gets into the parent window.
, .
, , ...
, , / ? GTK , Gnome ..