Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DateTimePicker shows no calendar dropdown when using GTK on Ubuntu Linux #2721

Open
theRainbird opened this issue Jan 8, 2025 · 0 comments

Comments

@theRainbird
Copy link

Expected Behavior

DataTimePicker should display a calendar when clicking the dropdown button when running on GTK on Ubuntu Linux 24.04 LTS.

Actual Behavior

Calendar flashes for a few milliseconds in the middle of the screen and then disappears.
In the debug console the following message is shown:

Gdk-Message: 22:32:08.871: Window 0x57123260c550 is a temporary window without parent, application will not be able to position it on screen.

Steps to Reproduce the Problem

  1. Create a new Eto.Forms project that opens a Form using platform type Eto.Platforms.Gtk
  2. Add a dynamic layout to the form
  3. Add a DateTimePicker control to to dynamic layout
  4. Set the dynamic layout as content of the from
  5. Run the application

Code that Demonstrates the Problem

// Run this on a Ubuntu Linux 24.04 LTS machine

using Eto.Forms;

class Program
{
        [STAThread]
        public static void Main(string[] args)
        {
    	        new Application(Eto.Platforms.Gtk).Run(new MainForm());
        }
}

public class MainForm : Form
{
	public MainForm()
	{
                Padding = 3;
		Title = "Test Form";
		ClientSize = new Size(800, 600);

                var dynamicLayout = new DynamicLayout();
		dynamicLayout.Spacing = new Size(width: 5, height: 5);
		dynamicLayout.Padding = new Padding(10);
		dynamicLayout.BeginHorizontal();

                dynamicLayut.Add(new DateTimePicker());

		dynamicLayout.EndHorizontal();

                Content = dynamicLayout;
	}
}

Specifications

  • Version: 9
  • Platform(s): Gtk
  • Operating System(s): Ubuntu 24.04 LTS
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant