Skip to content

Commit

Permalink
Update src/libvalent/ui/valent-window.c
Browse files Browse the repository at this point in the history
Co-authored-by: Andy Holmes <[email protected]>
  • Loading branch information
sungsphinx and andyholmes authored Feb 18, 2024
1 parent 6c837e3 commit d8a1b42
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/libvalent/ui/valent-window.c
Original file line number Diff line number Diff line change
Expand Up @@ -367,9 +367,7 @@ preferences_action (GtkWidget *widget,
GtkAllocation allocation;

gtk_widget_get_allocation (widget, &allocation);
self->preferences = g_object_new (VALENT_TYPE_PREFERENCES_DIALOG,
NULL);

self->preferences = g_object_new (VALENT_TYPE_PREFERENCES_DIALOG, NULL);
g_object_add_weak_pointer (G_OBJECT (self->preferences),
(gpointer)&self->preferences);
}
Expand Down

0 comments on commit d8a1b42

Please sign in to comment.