Update gtk134
This commit is contained in:
parent
61c4dd5ced
commit
a393b3dbbc
|
@ -48,6 +48,7 @@ TextEditor::TextEditor()
|
|||
add_action("text_copy", sigc::mem_fun(*this, &TextEditor::btncopy_clicked));
|
||||
add_action("text_paste", sigc::mem_fun(*this, &TextEditor::btnpaste_clicked));
|
||||
add_action("text_close", sigc::mem_fun(*this, &TextEditor::btnclose_clicked));
|
||||
add_action("text_about", sigc::mem_fun(*this, &TextEditor::about_activated));
|
||||
|
||||
// Add searchbar and search up and down buttons
|
||||
search_up.set_image_from_icon_name("up");
|
||||
|
@ -311,3 +312,29 @@ void TextEditor::infobar_response(int response)
|
|||
{
|
||||
infobar.hide();
|
||||
}
|
||||
|
||||
void TextEditor::about_activated(){
|
||||
char *version, *copyright;
|
||||
// The Gtkmm Version
|
||||
version = g_strdup_printf("1.0\nRunning Against Gtkmm %d.%d.%d",
|
||||
GTKMM_MAJOR_VERSION,
|
||||
GTKMM_MINOR_VERSION,
|
||||
GTKMM_MICRO_VERSION);
|
||||
const char *authors[] = {"Dale Clack", NULL};
|
||||
// Copyright Informaion
|
||||
copyright = g_strdup_printf("© 2019—2022 The Xe Project");
|
||||
// Show the about dialog
|
||||
gtk_show_about_dialog(GTK_WINDOW(this->gobj()),
|
||||
"program-name", "Text Editot",
|
||||
"version", version,
|
||||
"copyright", copyright,
|
||||
"comments", "A simple text editor",
|
||||
"authors", authors,
|
||||
"license-type", GTK_LICENSE_GPL_3_0,
|
||||
"logo-icon-name", "org.gtk.daleclack",
|
||||
"title", "About Simple text editor",
|
||||
NULL);
|
||||
// Free memory
|
||||
g_free(version);
|
||||
g_free(copyright);
|
||||
}
|
||||
|
|
|
@ -55,4 +55,7 @@ private:
|
|||
void search_entry_changed();
|
||||
void search_forward();
|
||||
void search_backward();
|
||||
|
||||
// Other Signal Handlers
|
||||
void about_activated();
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue