-simple-launcher (0.9.4~11) unstable; urgency=low
+simple-launcher (0.9.4~12) unstable; urgency=low
* NOT RELEASED YET
* settings dialog is moved into a separate class
* disabled gconf stuff in the launcher
* make transparency code a bit more explicit
* separate icon size used in the applet and the settings dialog
+ * added dummy checkboxes and UI settings page
- -- Mikhail Sobolev <mss@mawhrin.net> Tue, 10 Apr 2007 18:05:27 +0300
+ -- Mikhail Sobolev <mss@mawhrin.net> Tue, 10 Apr 2007 20:09:10 +0300
simple-launcher (0.9.3) unstable; urgency=low
#include <gtk/gtksizegroup.h>
#include <gtk/gtknotebook.h>
#include <gtk/gtklabel.h>
+#include <gtk/gtkcheckbutton.h>
#include "settings-dialog.h"
gtk_notebook_append_page(notebook, widget, label);
}
-inline GtkWidget *packItTogether(GtkSizeGroup *group, const std::string& name, GtkWidget *content) {
+inline GtkWidget *packItTogether(GtkBox *parent, GtkSizeGroup *group, const std::string& name, GtkWidget *content) {
GtkWidget *box = gtk_hbox_new(false, 0);
GtkWidget *label = gtk_label_new(name.c_str());
gtk_box_pack_start(GTK_BOX(box), label, true, true, 0);
gtk_box_pack_start(GTK_BOX(box), content, true, true, 0);
+ gtk_box_pack_start(parent, box, false, false, 0);
+
return box;
}
GtkWidget *vbox = gtk_vbox_new(true, 0);
// packItTogether(group, "Button Size:", <small/big>);
- // packItTogether(group, "Transparent background:", [ ]);
- // packItTogether(group, "Show Infobanner:", [ ]);
+ packItTogether(GTK_BOX(vbox), group, "Transparent background:", gtk_check_button_new());
+ packItTogether(GTK_BOX(vbox), group, "Show Infobanner:", gtk_check_button_new());
g_object_unref(G_OBJECT(group));
gtk_container_add(GTK_CONTAINER(myDialog->vbox), GTK_WIDGET(notebook));
- // addPage(notebook, "UI", createUIPage());
+ addPage(notebook, "UI", createUIPage());
addPage(notebook, "Items", myList.getWidget());
gtk_widget_set_size_request(GTK_WIDGET(myDialog), 540, 257);
+
+ gtk_notebook_set_current_page(notebook, 0);
}
SettingsDialog::~SettingsDialog() {