Skip to content

Use GtkApplication#169

Open
andy128k wants to merge 1 commit intomvo5:masterfrom
andy128k:gtk-application
Open

Use GtkApplication#169
andy128k wants to merge 1 commit intomvo5:masterfrom
andy128k:gtk-application

Conversation

@andy128k
Copy link
Contributor

No description provided.

Copy link
Owner

@mvo5 mvo5 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! This looks very nice, a few quick comments inline, I thnk the -o is the only critical one though.

if (pipe (sigterm_unix_signal_pipe_fds) != 0) {
g_warning ("Could not setup pipe, errno=%d", errno);
return 1;
exit(1);
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This feels slightly not-nice (to exit here hard instead of returning), but I guess its the only way(?) if applicationActivate is void :( oh well :)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about removing this code and just rely on Gtk?

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like the idea if it does what this code from 20y ago does I'm +100 :) Can you please double check that we can remove it (and if so just do it)?. I also merged the other PR so this can now be rebased into a single commit. Thanks!


RPackageLister *packageLister = new RPackageLister();
RGMainWindow *mainWindow = new RGMainWindow(packageLister, "main");
RGMainWindow *mainWindow = new RGMainWindow(GTK_APPLICATION(app), packageLister, "main");
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is pre-existing so feel free to ignore but I wonder if construcuting the packageLister and mainWindow should happen after the trick around putting an existing synaptic into the foreground (feel free to ignore)

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

Successfully merging this pull request may close these issues.

2 participants