You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

26 lines
841 B

#include "AboutDialog.h"
#include <config.h>
#include <StringUtils.h>
AboutDialog::AboutDialog(GladeSearchpath* gladeSearchPath)
: GladeGui(gladeSearchPath, "about.glade", "aboutDialog")
{
gtk_label_set_markup(GTK_LABEL(get("lbBuildDate")), __DATE__ ", " __TIME__);
gtk_label_set_markup(GTK_LABEL(get("lbVersion")), PROJECT_VERSION);
gtk_label_set_markup(GTK_LABEL(get("lbRevId")), GIT_COMMIT_ID);
GtkWidget* w = get("vbox1");
GtkWidget* linkButton = gtk_link_button_new("http://github.com/xournalpp/xournalpp");
gtk_widget_show(linkButton);
gtk_box_pack_start(GTK_BOX(w), linkButton, true, true, 0);
}
AboutDialog::~AboutDialog() = default;
void AboutDialog::show(GtkWindow* parent)
{
gtk_window_set_transient_for(GTK_WINDOW(this->window), parent);
gtk_dialog_run(GTK_DIALOG(this->window));
gtk_widget_hide(this->window);
}