Little fixes.
authorHong Jen Yee (PCMan) <pcman.tw@gmail.com>
Thu, 27 Mar 2008 18:43:14 +0000 (18:43 +0000)
committerHong Jen Yee (PCMan) <pcman.tw@gmail.com>
Thu, 27 Mar 2008 18:43:14 +0000 (18:43 +0000)
lxappearance.glade
src/main-dlg-ui.c
src/main-dlg.c
src/main-dlg.h

index 08473c0..71091ed 100644 (file)
                      <property name="fill">True</property>
                    </packing>
                  </child>
+
+                 <child>
+                   <widget class="GtkHBox" id="hbox5">
+                     <property name="border_width">2</property>
+                     <property name="visible">True</property>
+                     <property name="homogeneous">False</property>
+                     <property name="spacing">4</property>
+
+                     <child>
+                       <widget class="GtkButton" id="install_theme">
+                         <property name="visible">True</property>
+                         <property name="can_focus">True</property>
+                         <property name="relief">GTK_RELIEF_NORMAL</property>
+                         <property name="focus_on_click">True</property>
+                         <signal name="clicked" handler="on_install_theme_clicked" last_modification_time="Thu, 27 Mar 2008 18:35:36 GMT"/>
+
+                         <child>
+                           <widget class="GtkAlignment" id="alignment1">
+                             <property name="visible">True</property>
+                             <property name="xalign">0.5</property>
+                             <property name="yalign">0.5</property>
+                             <property name="xscale">0</property>
+                             <property name="yscale">0</property>
+                             <property name="top_padding">0</property>
+                             <property name="bottom_padding">0</property>
+                             <property name="left_padding">0</property>
+                             <property name="right_padding">0</property>
+
+                             <child>
+                               <widget class="GtkHBox" id="hbox6">
+                                 <property name="visible">True</property>
+                                 <property name="homogeneous">False</property>
+                                 <property name="spacing">2</property>
+
+                                 <child>
+                                   <widget class="GtkImage" id="image1">
+                                     <property name="visible">True</property>
+                                     <property name="stock">gtk-add</property>
+                                     <property name="icon_size">4</property>
+                                     <property name="xalign">0.5</property>
+                                     <property name="yalign">0.5</property>
+                                     <property name="xpad">0</property>
+                                     <property name="ypad">0</property>
+                                   </widget>
+                                   <packing>
+                                     <property name="padding">0</property>
+                                     <property name="expand">False</property>
+                                     <property name="fill">False</property>
+                                   </packing>
+                                 </child>
+
+                                 <child>
+                                   <widget class="GtkLabel" id="label18">
+                                     <property name="visible">True</property>
+                                     <property name="label" translatable="yes">_Install</property>
+                                     <property name="use_underline">True</property>
+                                     <property name="use_markup">False</property>
+                                     <property name="justify">GTK_JUSTIFY_LEFT</property>
+                                     <property name="wrap">False</property>
+                                     <property name="selectable">False</property>
+                                     <property name="xalign">0.5</property>
+                                     <property name="yalign">0.5</property>
+                                     <property name="xpad">0</property>
+                                     <property name="ypad">0</property>
+                                     <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
+                                     <property name="width_chars">-1</property>
+                                     <property name="single_line_mode">False</property>
+                                     <property name="angle">0</property>
+                                   </widget>
+                                   <packing>
+                                     <property name="padding">0</property>
+                                     <property name="expand">False</property>
+                                     <property name="fill">False</property>
+                                   </packing>
+                                 </child>
+                               </widget>
+                             </child>
+                           </widget>
+                         </child>
+                       </widget>
+                       <packing>
+                         <property name="padding">0</property>
+                         <property name="expand">True</property>
+                         <property name="fill">True</property>
+                       </packing>
+                     </child>
+
+                     <child>
+                       <widget class="GtkButton" id="remove_theme">
+                         <property name="can_focus">True</property>
+                         <property name="label">gtk-remove</property>
+                         <property name="use_stock">True</property>
+                         <property name="relief">GTK_RELIEF_NORMAL</property>
+                         <property name="focus_on_click">True</property>
+                         <signal name="clicked" handler="on_remove_theme_clicked" last_modification_time="Thu, 27 Mar 2008 18:35:43 GMT"/>
+                       </widget>
+                       <packing>
+                         <property name="padding">0</property>
+                         <property name="expand">True</property>
+                         <property name="fill">True</property>
+                       </packing>
+                     </child>
+                   </widget>
+                   <packing>
+                     <property name="padding">2</property>
+                     <property name="expand">False</property>
+                     <property name="fill">True</property>
+                   </packing>
+                 </child>
                </widget>
                <packing>
                  <property name="tab_expand">False</property>
index e413004..2f408bc 100644 (file)
@@ -45,6 +45,13 @@ create_dlg (void)
   GtkWidget *label7;
   GtkWidget *scrolledwindow2;
   GtkWidget *icon_theme_view;
+  GtkWidget *hbox5;
+  GtkWidget *install_theme;
+  GtkWidget *alignment1;
+  GtkWidget *hbox6;
+  GtkWidget *image1;
+  GtkWidget *label18;
+  GtkWidget *remove_theme;
   GtkWidget *label3;
   GtkWidget *empty_notebook_page;
   GtkWidget *label5;
@@ -128,6 +135,34 @@ create_dlg (void)
   gtk_container_add (GTK_CONTAINER (scrolledwindow2), icon_theme_view);
   gtk_tree_view_set_headers_visible (GTK_TREE_VIEW (icon_theme_view), FALSE);
 
+  hbox5 = gtk_hbox_new (FALSE, 4);
+  gtk_widget_show (hbox5);
+  gtk_box_pack_start (GTK_BOX (vbox3), hbox5, FALSE, TRUE, 2);
+  gtk_container_set_border_width (GTK_CONTAINER (hbox5), 2);
+
+  install_theme = gtk_button_new ();
+  gtk_widget_show (install_theme);
+  gtk_box_pack_start (GTK_BOX (hbox5), install_theme, TRUE, TRUE, 0);
+
+  alignment1 = gtk_alignment_new (0.5, 0.5, 0, 0);
+  gtk_widget_show (alignment1);
+  gtk_container_add (GTK_CONTAINER (install_theme), alignment1);
+
+  hbox6 = gtk_hbox_new (FALSE, 2);
+  gtk_widget_show (hbox6);
+  gtk_container_add (GTK_CONTAINER (alignment1), hbox6);
+
+  image1 = gtk_image_new_from_stock ("gtk-add", GTK_ICON_SIZE_BUTTON);
+  gtk_widget_show (image1);
+  gtk_box_pack_start (GTK_BOX (hbox6), image1, FALSE, FALSE, 0);
+
+  label18 = gtk_label_new_with_mnemonic (_("_Install"));
+  gtk_widget_show (label18);
+  gtk_box_pack_start (GTK_BOX (hbox6), label18, FALSE, FALSE, 0);
+
+  remove_theme = gtk_button_new_from_stock ("gtk-remove");
+  gtk_box_pack_start (GTK_BOX (hbox5), remove_theme, TRUE, TRUE, 0);
+
   label3 = gtk_label_new (_("Icon"));
   gtk_widget_show (label3);
   gtk_notebook_set_tab_label (GTK_NOTEBOOK (notebook1), gtk_notebook_get_nth_page (GTK_NOTEBOOK (notebook1), 1), label3);
@@ -179,6 +214,12 @@ create_dlg (void)
   g_signal_connect ((gpointer) font, "font_set",
                     G_CALLBACK (on_font_changed),
                     NULL);
+  g_signal_connect ((gpointer) install_theme, "clicked",
+                    G_CALLBACK (on_install_theme_clicked),
+                    NULL);
+  g_signal_connect ((gpointer) remove_theme, "clicked",
+                    G_CALLBACK (on_remove_theme_clicked),
+                    NULL);
   g_signal_connect ((gpointer) apply, "clicked",
                     G_CALLBACK (on_apply_clicked),
                     NULL);
@@ -205,6 +246,13 @@ create_dlg (void)
   GLADE_HOOKUP_OBJECT (dlg, label7, "label7");
   GLADE_HOOKUP_OBJECT (dlg, scrolledwindow2, "scrolledwindow2");
   GLADE_HOOKUP_OBJECT (dlg, icon_theme_view, "icon_theme_view");
+  GLADE_HOOKUP_OBJECT (dlg, hbox5, "hbox5");
+  GLADE_HOOKUP_OBJECT (dlg, install_theme, "install_theme");
+  GLADE_HOOKUP_OBJECT (dlg, alignment1, "alignment1");
+  GLADE_HOOKUP_OBJECT (dlg, hbox6, "hbox6");
+  GLADE_HOOKUP_OBJECT (dlg, image1, "image1");
+  GLADE_HOOKUP_OBJECT (dlg, label18, "label18");
+  GLADE_HOOKUP_OBJECT (dlg, remove_theme, "remove_theme");
   GLADE_HOOKUP_OBJECT (dlg, label3, "label3");
   GLADE_HOOKUP_OBJECT (dlg, label5, "label5");
   GLADE_HOOKUP_OBJECT (dlg, vbox1, "vbox1");
index df3e8b3..6815256 100644 (file)
@@ -53,8 +53,6 @@ static void reload_demo_process()
     if( demo_pid > 0 ) /* kill old demo */
     {
         int stat;
-//        if( demo_socket )
-//            gtk_widget_destroy( demo_socket );
         kill( demo_pid, SIGTERM );
         waitpid( demo_pid, &stat, 0 );
         demo_pid = 0;
@@ -312,3 +310,19 @@ on_font_changed                        (GtkFontButton   *fontbutton,
     reload_demo_process();
 }
 
+
+void
+on_install_theme_clicked               (GtkButton       *button,
+                                        gpointer         user_data)
+{
+
+}
+
+
+void
+on_remove_theme_clicked                (GtkButton       *button,
+                                        gpointer         user_data)
+{
+
+}
+
index 04f71f4..fb8ad6f 100644 (file)
@@ -9,3 +9,11 @@ on_apply_clicked                       (GtkButton       *button,
 void
 on_font_changed                        (GtkFontButton   *fontbutton,
                                         gpointer         user_data);
+
+void
+on_install_theme_clicked               (GtkButton       *button,
+                                        gpointer         user_data);
+
+void
+on_remove_theme_clicked                (GtkButton       *button,
+                                        gpointer         user_data);