mirror of https://github.com/daleclack/My_GtkUi
Update to version 2.1
This commit is contained in:
parent
e2763c1043
commit
27ba4b9c6d
|
@ -9,6 +9,17 @@ void win1_init(GtkWidget *widget,GtkWindow *parent){
|
|||
GdkPixbuf *logo=gdk_pixbuf_new_from_resource("/gtk42/icon.jpg",NULL);
|
||||
GdkPixbuf *logo_sized=gdk_pixbuf_scale_simple(logo,100,100,GDK_INTERP_BILINEAR);
|
||||
gtk_about_dialog_set_logo(GTK_ABOUT_DIALOG(window1),logo_sized);
|
||||
//Add version information
|
||||
char *version;
|
||||
version=g_strdup_printf("2.1\nRunning Against Gtk %d.%d.%d",
|
||||
gtk_get_major_version(),
|
||||
gtk_get_minor_version(),
|
||||
gtk_get_micro_version());
|
||||
gtk_about_dialog_set_version((GtkAboutDialog*)window1,version);
|
||||
//Copyright,license and website information
|
||||
gtk_about_dialog_set_copyright((GtkAboutDialog*)window1,"© 2019—2021 The Xe Project");
|
||||
gtk_about_dialog_set_license_type((GtkAboutDialog*)window1,GTK_LICENSE_GPL_3_0);
|
||||
gtk_about_dialog_set_website((GtkAboutDialog*)window1,"https://github.com/daleclack/My_GtkUi");
|
||||
g_signal_connect_swapped(window1,"response",G_CALLBACK(gtk_widget_destroy),window1);
|
||||
gtk_widget_show_all(GTK_WIDGET(window1));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue