summaryrefslogtreecommitdiff
path: root/src/linux/main.m
diff options
context:
space:
mode:
authorrandomguy3 <randomguy3@7c02a99a-9b00-45e3-bf44-6f3dd7fddb64>2012-01-08 23:20:48 +0000
committerrandomguy3 <randomguy3@7c02a99a-9b00-45e3-bf44-6f3dd7fddb64>2012-01-08 23:20:48 +0000
commitf684562ab96876da07388da7d96063b5c22bdb4d (patch)
treed77e6766f2ac93507bf966f58288e2f46f455af0 /src/linux/main.m
parente9b614e436b5720c1b2c51a07c5c063197cbf1e1 (diff)
GTK: all icons are now stored in the executable
git-svn-id: https://tikzit.svn.sourceforge.net/svnroot/tikzit/trunk@360 7c02a99a-9b00-45e3-bf44-6f3dd7fddb64
Diffstat (limited to 'src/linux/main.m')
-rw-r--r--src/linux/main.m15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/linux/main.m b/src/linux/main.m
index 7047e7f..9e39f27 100644
--- a/src/linux/main.m
+++ b/src/linux/main.m
@@ -24,6 +24,7 @@
#import "TZFoundation.h"
#import <gtk/gtk.h>
#import "clipboard.h"
+#import "logo.h"
#import "MainWindow.h"
#import "TikzGraphAssembler.h"
@@ -42,6 +43,20 @@ int main (int argc, char *argv[]) {
NSAutoreleasePool *initPool = [[NSAutoreleasePool alloc] init];
+ GList *icon_list = NULL;
+ g_list_prepend (icon_list, get_logo(LOGO_SIZE_128));
+ g_list_prepend (icon_list, get_logo(LOGO_SIZE_64));
+ g_list_prepend (icon_list, get_logo(LOGO_SIZE_48));
+ //g_list_prepend (icon_list, get_logo(LOGO_SIZE_32));
+ g_list_prepend (icon_list, get_logo(LOGO_SIZE_24));
+ g_list_prepend (icon_list, get_logo(LOGO_SIZE_16));
+ gtk_window_set_default_icon_list (icon_list);
+ GList *list_head = icon_list;
+ while (list_head) {
+ g_object_unref ((GObject*)list_head->data);
+ list_head = list_head->next;
+ }
+
clipboard_init();
[TikzGraphAssembler setup];
MainWindow *window = [[MainWindow alloc] init];