Added libgd as a compile time dependency
It is now used temporarily to create a header bar in the first window
This commit is contained in:
parent
aaeb90a6e0
commit
5cd2227ff6
@ -20,9 +20,9 @@ AM_CPPFLAGS = -DG_LOG_DOMAIN=\"Astrognome\" -DLOCALEDIR=\"$(localedir)\" -DPKGDA
|
||||
bin_PROGRAMS = astrognome
|
||||
|
||||
astrognome_SOURCES = ag-app.c astrognome.c $(BUILT_SOURCES)
|
||||
astrognome_LDADD = $(SWE_GLIB_LIBS) $(GTK_LIBS)
|
||||
astrognome_LDADD = $(SWE_GLIB_LIBS) $(GTK_LIBS) $(top_builddir)/libgd/libgd.la
|
||||
astrognome_LDFLAGS = -rdynamic
|
||||
astrognome_CFLAGS = $(SWE_GLIB_CFLAGS) $(CFLAGS) $(GTK_CFLAGS) -Wall
|
||||
astrognome_CFLAGS = $(SWE_GLIB_CFLAGS) $(CFLAGS) $(GTK_CFLAGS) -Wall -I$(top_srcdir)/libgd
|
||||
|
||||
guidir = $(pkgdatadir)
|
||||
gui_DATA = astrognome.ui
|
||||
|
@ -2,6 +2,8 @@
|
||||
#include <gtk/gtk.h>
|
||||
#include <glib/gi18n.h>
|
||||
|
||||
#include <libgd/gd.h>
|
||||
|
||||
#include <swe-glib.h>
|
||||
|
||||
#define UI_FILE PKGDATADIR "/astrognome.ui"
|
||||
@ -500,6 +502,16 @@ application_activate_cb(GtkApplication *app, gpointer user_data)
|
||||
grid = gtk_grid_new();
|
||||
gtk_container_add(GTK_CONTAINER(window), grid);
|
||||
|
||||
header_bar = gd_header_bar_new();
|
||||
|
||||
menu_button = gd_header_menu_button_new();
|
||||
gd_header_button_set_symbolic_icon_name(GD_HEADER_BUTTON(menu_button), "emblem-system-symbolic");
|
||||
gtk_actionable_set_action_name(GTK_ACTIONABLE(menu_button), "win.gear-menu");
|
||||
|
||||
gd_header_bar_pack_end(GD_HEADER_BAR(header_bar), menu_button);
|
||||
|
||||
gtk_grid_attach(GTK_GRID(grid), header_bar, 0, 0, 1, 1);
|
||||
|
||||
gtk_widget_show_all(window);
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user