mirror of
https://github.com/Rafostar/clapper.git
synced 2025-08-29 23:32:04 +02:00
clapper-app: fix adw 1.6 deprecations
This commit is contained in:
@@ -28,7 +28,7 @@
|
||||
#include "clapper-app-uri-dialog.h"
|
||||
#include "clapper-app-info-window.h"
|
||||
#include "clapper-app-preferences-window.h"
|
||||
#include "clapper-app-about-window.h"
|
||||
#include "clapper-app-about-dialog.h"
|
||||
#include "clapper-app-utils.h"
|
||||
|
||||
#define PERCENTAGE_ROUND(a) (round ((gdouble) a / 0.01) * 0.01)
|
||||
@@ -399,10 +399,12 @@ static void
|
||||
show_about (GSimpleAction *action, GVariant *param, gpointer user_data)
|
||||
{
|
||||
GtkApplication *gtk_app = GTK_APPLICATION (user_data);
|
||||
GtkWidget *about_window;
|
||||
GtkWindow *window;
|
||||
GtkWidget *about_dialog;
|
||||
|
||||
about_window = clapper_app_about_window_new (gtk_app);
|
||||
gtk_window_present (GTK_WINDOW (about_window));
|
||||
window = gtk_application_get_active_window (gtk_app);
|
||||
about_dialog = clapper_app_about_dialog_new ();
|
||||
adw_dialog_present (ADW_DIALOG (about_dialog), GTK_WIDGET (window));
|
||||
}
|
||||
|
||||
GApplication *
|
||||
|
Reference in New Issue
Block a user