[gnome-control-center/startup-apps: 1/2] Add startup apps tab to Glade file
- From: Rodrigo Moya <rodrigo src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center/startup-apps: 1/2] Add startup apps tab to Glade file
- Date: Mon, 6 Jun 2011 10:39:32 +0000 (UTC)
commit c6f6184dcb3fd84cd8c6452d902aa683393d77dc
Author: Rodrigo Moya <rodrigo gnome-db org>
Date: Fri Jun 3 10:41:12 2011 +0200
Add startup apps tab to Glade file
panels/info/cc-info-panel.c | 10 +++
panels/info/info.ui | 167 +++++++++++++++++++++++++++++++++++--------
2 files changed, 146 insertions(+), 31 deletions(-)
---
diff --git a/panels/info/cc-info-panel.c b/panels/info/cc-info-panel.c
index 5081964..4f45408 100644
--- a/panels/info/cc-info-panel.c
+++ b/panels/info/cc-info-panel.c
@@ -1242,6 +1242,15 @@ info_panel_setup_overview (CcInfoPanel *self)
}
static void
+info_panel_setup_startup_apps (CcInfoPanel *self)
+{
+ GtListStore *model;
+
+ /* Create the model and setup treeview */
+ model = gtk_list_store (
+}
+
+static void
refresh_update_button (CcInfoPanel *self)
{
GtkWidget *widget;
@@ -1443,6 +1452,7 @@ cc_info_panel_init (CcInfoPanel *self)
info_panel_setup_overview (self);
info_panel_setup_default_apps (self);
info_panel_setup_graphics (self);
+ info_panel_setup_startup_apps (self);
}
void
diff --git a/panels/info/info.ui b/panels/info/info.ui
index a340c34..351d9de 100644
--- a/panels/info/info.ui
+++ b/panels/info/info.ui
@@ -99,9 +99,6 @@
<property name="no_show_all">True</property>
<property name="xalign">1</property>
<property name="label" translatable="yes">Device name</property>
- <style>
- <class name="dim-label"/>
- </style>
</object>
</child>
<child>
@@ -110,9 +107,6 @@
<property name="can_focus">False</property>
<property name="xalign">1</property>
<property name="label" translatable="yes">Memory</property>
- <style>
- <class name="dim-label"/>
- </style>
</object>
<packing>
<property name="top_attach">1</property>
@@ -125,9 +119,6 @@
<property name="can_focus">False</property>
<property name="xalign">1</property>
<property name="label" translatable="yes">Processor</property>
- <style>
- <class name="dim-label"/>
- </style>
</object>
<packing>
<property name="top_attach">2</property>
@@ -140,9 +131,6 @@
<property name="can_focus">False</property>
<property name="xalign">1</property>
<property name="label" translatable="yes">OS type</property>
- <style>
- <class name="dim-label"/>
- </style>
</object>
<packing>
<property name="top_attach">4</property>
@@ -155,9 +143,6 @@
<property name="can_focus">False</property>
<property name="xalign">1</property>
<property name="label" translatable="yes">Disk</property>
- <style>
- <class name="dim-label"/>
- </style>
</object>
<packing>
<property name="top_attach">5</property>
@@ -166,10 +151,8 @@
</child>
<child>
<object class="GtkEntry" id="name_entry">
- <property name="visible">False</property>
- <property name="xalign">0</property>
- <property name="text"></property>
<property name="sensitive">False</property>
+ <property name="can_focus">False</property>
</object>
<packing>
<property name="left_attach">1</property>
@@ -310,9 +293,6 @@
<property name="can_focus">False</property>
<property name="xalign">1</property>
<property name="label" translatable="yes">Graphics</property>
- <style>
- <class name="dim-label"/>
- </style>
</object>
<packing>
<property name="top_attach">3</property>
@@ -614,6 +594,12 @@
</packing>
</child>
<child>
+ <placeholder/>
+ </child>
+ <child type="tab">
+ <placeholder/>
+ </child>
+ <child>
<object class="GtkAlignment" id="graphics_detail_container">
<property name="visible">True</property>
<property name="can_focus">False</property>
@@ -632,9 +618,6 @@
<property name="can_focus">False</property>
<property name="xalign">1</property>
<property name="label" translatable="yes">Driver</property>
- <style>
- <class name="dim-label"/>
- </style>
</object>
<packing>
<property name="x_options">GTK_FILL</property>
@@ -647,9 +630,6 @@
<property name="can_focus">False</property>
<property name="xalign">1</property>
<property name="label" translatable="yes">Experience</property>
- <style>
- <class name="dim-label"/>
- </style>
</object>
<packing>
<property name="top_attach">1</property>
@@ -666,9 +646,6 @@
<property name="label" translatable="yes" comments="Hardware is not able to run GNOME 3's shell, so we might want to force running the 'Fallback' experience.">Forced _Fallback Mode</property>
<property name="use_underline">True</property>
<property name="justify">right</property>
- <style>
- <class name="dim-label"/>
- </style>
</object>
<packing>
<property name="top_attach">2</property>
@@ -762,7 +739,7 @@
</child>
</object>
<packing>
- <property name="position">2</property>
+ <property name="position">3</property>
</packing>
</child>
<child type="tab">
@@ -772,7 +749,135 @@
<property name="label" translatable="yes">Graphics</property>
</object>
<packing>
+ <property name="position">3</property>
+ <property name="tab_fill">False</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkTable" id="startup_apps_container">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="n_rows">3</property>
+ <property name="n_columns">3</property>
+ <property name="column_spacing">12</property>
+ <property name="row_spacing">5</property>
+ <child>
+ <object class="GtkLabel" id="label">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="xalign">0</property>
+ <property name="label" translatable="yes">Additional startup programs</property>
+ </object>
+ <packing>
+ <property name="right_attach">3</property>
+ <property name="x_options">GTK_FILL</property>
+ <property name="y_options">GTK_FILL</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkVButtonBox" id="vbuttonbox1">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="spacing">3</property>
+ <property name="homogeneous">True</property>
+ <property name="layout_style">start</property>
+ <child>
+ <object class="GtkButton" id="add_startup_button">
+ <property name="label">gtk-add</property>
+ <property name="visible">True</property>
+ <property name="can_focus">True</property>
+ <property name="receives_default">True</property>
+ <property name="use_action_appearance">False</property>
+ <property name="use_stock">True</property>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">True</property>
+ <property name="position">0</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkButton" id="remove_startup_button">
+ <property name="label">gtk-delete</property>
+ <property name="visible">True</property>
+ <property name="can_focus">True</property>
+ <property name="receives_default">True</property>
+ <property name="use_action_appearance">False</property>
+ <property name="use_stock">True</property>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">True</property>
+ <property name="position">1</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkButton" id="edit_startup_button">
+ <property name="label">gtk-edit</property>
+ <property name="visible">True</property>
+ <property name="can_focus">True</property>
+ <property name="receives_default">True</property>
+ <property name="use_action_appearance">False</property>
+ <property name="use_stock">True</property>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">True</property>
+ <property name="position">2</property>
+ </packing>
+ </child>
+ </object>
+ <packing>
+ <property name="left_attach">2</property>
+ <property name="right_attach">3</property>
+ <property name="top_attach">1</property>
+ <property name="bottom_attach">2</property>
+ <property name="x_options">GTK_FILL</property>
+ <property name="y_options">GTK_FILL</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkScrolledWindow" id="scrolledwindow2">
+ <property name="visible">True</property>
+ <property name="can_focus">True</property>
+ <property name="shadow_type">in</property>
+ <child>
+ <object class="GtkTreeView" id="startup_apps_treeview">
+ <property name="visible">True</property>
+ <property name="can_focus">True</property>
+ <property name="headers_visible">False</property>
+ <property name="headers_clickable">False</property>
+ <property name="enable_search">False</property>
+ <child internal-child="selection">
+ <object class="GtkTreeSelection" id="treeview-selection2"/>
+ </child>
+ </object>
+ </child>
+ </object>
+ <packing>
+ <property name="right_attach">2</property>
+ <property name="top_attach">1</property>
+ <property name="bottom_attach">3</property>
+ <property name="x_options">GTK_EXPAND | GTK_SHRINK | GTK_FILL</property>
+ <property name="y_options">GTK_EXPAND | GTK_SHRINK | GTK_FILL</property>
+ </packing>
+ </child>
+ <child>
+ <placeholder/>
+ </child>
+ </object>
+ <packing>
<property name="position">2</property>
+ </packing>
+ </child>
+ <child type="tab">
+ <object class="GtkLabel" id="label18">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="label" translatable="yes">page 5</property>
+ </object>
+ <packing>
+ <property name="position">4</property>
<property name="tab_fill">False</property>
</packing>
</child>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]