From e8a82961623f994e3493a7e2e181986e81bb926e Mon Sep 17 00:00:00 2001 From: Zach DeCook Date: Fri, 23 Feb 2024 20:26:30 -0500 Subject: Application: switch to AdwApplication --- main.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'main.c') diff --git a/main.c b/main.c index 3d32820..9c20f52 100644 --- a/main.c +++ b/main.c @@ -1,3 +1,4 @@ +#include #include #include #include @@ -140,6 +141,7 @@ static void activate(GtkApplication *app, gpointer user_data) { // Header header = gtk_header_bar_new(); button = gtk_button_new_from_icon_name("document-open-symbolic"); + gtk_widget_add_css_class(button, "raised"); gtk_widget_set_tooltip_text(button, "Load file"); g_signal_connect(button, "clicked", G_CALLBACK(open_file), NULL); gtk_header_bar_pack_start(GTK_HEADER_BAR(header), button); @@ -156,10 +158,10 @@ void app_open(GtkApplication *app, GFile **files, gint n_files, const gchar *hin } int main(int argc, char **argv) { - GtkApplication *app; + AdwApplication *app; int status; - app = gtk_application_new( + app = adw_application_new( "com.zachdecook.shemuvi", G_APPLICATION_DEFAULT_FLAGS | G_APPLICATION_HANDLES_OPEN ); g_signal_connect(app, "activate", G_CALLBACK(activate), NULL); -- cgit 1.4.1