49 |
/* The 'about' pixmap */ |
/* The 'about' pixmap */ |
50 |
|
|
51 |
#include "../pixmaps/about.xpm" |
#include "../pixmaps/about.xpm" |
52 |
|
#include "../pixmaps/beaver.xpm" |
53 |
|
|
54 |
/* These variables HAVE to be global ones: I know this is bad, but... */ |
/* These variables HAVE to be global ones: I know this is bad, but... */ |
55 |
|
|
1126 |
return count; |
return count; |
1127 |
} |
} |
1128 |
|
|
1129 |
|
void set_beaver_icon (GtkWindow *window) |
1130 |
|
{ |
1131 |
|
GdkPixbuf *icon; |
1132 |
|
|
1133 |
|
icon = gdk_pixbuf_new_from_xpm_data (beaver_xpm); |
1134 |
|
gtk_window_set_icon (window, icon); |
1135 |
|
|
1136 |
|
g_object_unref (icon); |
1137 |
|
} |
1138 |
|
|
1139 |
|
|
1140 |
/* The main function in the shaping process of the interface */ |
/* The main function in the shaping process of the interface */ |
1141 |
|
|
1172 |
g_signal_connect_after (G_OBJECT(MainNotebook), "switch-page", |
g_signal_connect_after (G_OBJECT(MainNotebook), "switch-page", |
1173 |
G_CALLBACK (page_changed), NULL); |
G_CALLBACK (page_changed), NULL); |
1174 |
init_msgbar (GTK_BOX(MainVBox)); |
init_msgbar (GTK_BOX(MainVBox)); |
1175 |
|
set_beaver_icon (GTK_WINDOW (MainWindow)); |
1176 |
menu_set_files_open (FALSE); |
menu_set_files_open (FALSE); |
1177 |
command_line (argc, argv); |
command_line (argc, argv); |
1178 |
autosave (AUTOSAVE_DELAY); |
autosave (AUTOSAVE_DELAY); |