[Frugalware-darcs] setup-current: setup: gtkize asklang.c

Christian Hamar alias krix krics at linuxforum.hu
Thu Mar 16 18:07:05 CET 2006


[setup: gtkize asklang.c
Christian Hamar alias krix <krics at linuxforum.hu>**20051109003736
   * GTKized asklang.c half ready
   * Added myself to copyright
 
] {
hunk ./src/plugins/asklang.c 5
+ *  Copyright (c) 2005 by Christian Hamar alias krix <krics at linuxforum.hu>
hunk ./src/plugins/asklang.c 29
+    #include <gutil.h>
hunk ./src/plugins/asklang.c 74
+#ifdef GTK
+	GtkWidget *label;
+	GtkWidget *tv;
+	GtkTreeIter iter;
+	int i = 0;
+#endif
+
+#ifdef DIALOG
hunk ./src/plugins/asklang.c 126
-	textdomain("setup");
+#endif
hunk ./src/plugins/asklang.c 128
+#ifdef GTK
+	tv = create_asklang_view();
+	gtk_container_add(GTK_CONTAINER(frame), tv);
+	while (i <= LANGSNUM + 2) {
+		gtk_list_store_append(GTK_LIST_STORE(gtk_tree_view_get_model(GTK_TREE_VIEW(tv))), &iter);
+		gtk_list_store_set(GTK_LIST_STORE(gtk_tree_view_get_model(GTK_TREE_VIEW(tv))), &iter,
+			0, langs[i], 1, langs[i+1], -1);
+		i = i+2;
+	}
+	gtk_widget_show_all(tv);
+#endif
+	textdomain("setup");
}


More information about the Frugalware-darcs mailing list