Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: ubuntu-flutter-community/musicpod
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: e57107b5fa4e91aac16a2af8bf85696fd3604c04
Choose a base ref
..
head repository: ubuntu-flutter-community/musicpod
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 7449715f57fcda5751e0b9d1117e4b5f2179e65c
Choose a head ref
Showing with 1 addition and 2 deletions.
  1. +1 −2 linux/my_application.cc
3 changes: 1 addition & 2 deletions linux/my_application.cc
Original file line number Diff line number Diff line change
@@ -16,12 +16,12 @@ G_DEFINE_TYPE(MyApplication, my_application, GTK_TYPE_APPLICATION)
static void my_application_activate(GApplication* application) {
MyApplication* self = MY_APPLICATION(application);

GtkWindow* window = GTK_WINDOW(hdy_application_window_new());
GList* windows = gtk_application_get_windows(GTK_APPLICATION(application));
if (windows) {
gtk_window_present(GTK_WINDOW(windows->data));
return;
}
GtkWindow* window = GTK_WINDOW(hdy_application_window_new());
gtk_window_set_application(window, GTK_APPLICATION(application));

GtkBox* box = GTK_BOX(gtk_box_new(GTK_ORIENTATION_VERTICAL, 0));
@@ -48,7 +48,6 @@ static void my_application_activate(GApplication* application) {
gtk_widget_grab_focus(GTK_WIDGET(view));
}

// Implements GApplication::local_command_line.
static gint my_application_command_line(GApplication *application, GApplicationCommandLine *command_line) {
MyApplication *self = MY_APPLICATION(application);
gchar **arguments = g_application_command_line_get_arguments(command_line, nullptr);