added dummy checkboxes on UI settings page; added UI page to the set of tabs
authormishas <mikhail.sobolev@gmail.com>
Tue, 10 Apr 2007 17:12:04 +0000 (17:12 +0000)
committermishas <mikhail.sobolev@gmail.com>
Tue, 10 Apr 2007 17:12:04 +0000 (17:12 +0000)
git-svn-id: file:///svnroot/simple-launcher/trunk@157 3ba93dab-e023-0410-b42a-de7732cf370a

debian/changelog
settings-dialog.cc

index f5f4908..b45a50d 100644 (file)
@@ -1,4 +1,4 @@
-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
@@ -15,8 +15,9 @@ simple-launcher (0.9.4~11) unstable; urgency=low
   * 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
 
index 3af780e..5205c65 100644 (file)
@@ -20,6 +20,7 @@
 #include <gtk/gtksizegroup.h>
 #include <gtk/gtknotebook.h>
 #include <gtk/gtklabel.h>
+#include <gtk/gtkcheckbutton.h>
 
 #include "settings-dialog.h"
 
@@ -33,7 +34,7 @@ inline void addPage(GtkNotebook *notebook, const std::string& name, GtkWidget *w
   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());
 
@@ -41,6 +42,8 @@ inline GtkWidget *packItTogether(GtkSizeGroup *group, const std::string& name, G
   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;
 }
 
@@ -49,8 +52,8 @@ inline GtkWidget *createUIPage() {
   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));
 
@@ -64,10 +67,12 @@ SettingsDialog::SettingsDialog(GtkWindow *parent, LauncherItems& items) : myList
 
   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() {