[Frugalware-darcs] setup-current: setup: util.c && util.h
Christian Hamar alias krix
krics at linuxforum.hu
Thu Mar 16 18:07:05 CET 2006
[setup: util.c && util.h
Christian Hamar alias krix <krics at linuxforum.hu>**20051109003951
* Added gtk specific framework things
* GTKized
] {
hunk ./src/util.c 194
-void gtk_draw_framework(void)
+void gtk_draw_framework()
hunk ./src/util.c 197
- GtkWidget *hbox, *vbox, *frame;
+ GtkWidget *hbox, *vbox, *label, *button;
hunk ./src/util.c 202
+
+ vbox = gtk_vbox_new(FALSE, 0);
+ gtk_container_add(mainwindow, vbox);
+ gtk_widget_show(vbox);
+
+ hbox = gtk_hbox_new(FALSE, 0);
+
+ label = gtk_label_new("Valamiiiii");
+ gtk_box_pack_start(GTK_BOX(vbox), label, 1,1,1);
+ gtk_widget_show(label);
+
+ gtk_box_pack_start(GTK_BOX(vbox), hbox, 1,1,1);
+ gtk_widget_show(hbox);
+
+ label = gtk_label_new("Valamiiiii2/a");
+ gtk_box_pack_start(GTK_BOX(hbox), label, 1,1,1);
+ gtk_widget_show(label);
+
+ frame = gtk_frame_new("Valami");
+ gtk_widget_show_all(frame);
+ gtk_box_pack_end(GTK_BOX(hbox), frame, 1,1,1);
+ label = gtk_label_new("Valamiiiii2/b");
+
+ hbox = gtk_hbox_new(FALSE, 0);
+
+ button = gtk_button_new_with_label("Back");
+ gtk_box_pack_start(GTK_BOX(hbox), button, 1,1,1);
+ gtk_widget_show(hbox);
+ gtk_widget_show(button);
+ button = gtk_button_new_with_label("Next");
+ gtk_box_pack_start(GTK_BOX(hbox), button, 1,1,1);
+ g_signal_connect(G_OBJECT(button), "clicked", G_CALLBACK(plugin_next), NULL);
+ gtk_widget_show(hbox);
+ gtk_widget_show(button);
+
+ gtk_box_pack_start(GTK_BOX(vbox), hbox, 0,1,0);
+
hunk ./src/util.c 240
+
+int plugin_next(GtkWidget *w, gpointer user_data)
+{
+ printf("Plugin name\n");
+}
+
hunk ./src/util.h 28
+#ifdef GTK
+ #include <gtk/gtk.h>
+
+GtkWidget *frame;
+#endif
+
hunk ./src/util.h 52
-void gtk_draw_framework(void);
+void gtk_draw_framework();
+int plugin_next();
}
More information about the Frugalware-darcs
mailing list