notifications: Use content style for listboxes
This commit is contained in:
parent
1fa95b5fc5
commit
7f4703d7ad
2 changed files with 28 additions and 52 deletions
|
@ -187,16 +187,10 @@ cc_notifications_panel_init (CcNotificationsPanel *panel)
|
|||
|
||||
panel->sections = g_list_append (panel->sections, panel->options_listbox);
|
||||
panel->sections_reverse = g_list_prepend (panel->sections_reverse, panel->options_listbox);
|
||||
gtk_list_box_set_header_func (panel->options_listbox,
|
||||
cc_list_box_update_header_func,
|
||||
NULL, NULL);
|
||||
|
||||
panel->sections = g_list_append (panel->sections, panel->app_listbox);
|
||||
panel->sections_reverse = g_list_prepend (panel->sections_reverse, panel->app_listbox);
|
||||
gtk_list_box_set_sort_func (panel->app_listbox, (GtkListBoxSortFunc)sort_apps, NULL, NULL);
|
||||
gtk_list_box_set_header_func (panel->app_listbox,
|
||||
cc_list_box_update_header_func,
|
||||
NULL, NULL);
|
||||
|
||||
build_app_store (panel);
|
||||
|
||||
|
|
|
@ -27,21 +27,17 @@
|
|||
<property name="can_focus">False</property>
|
||||
<property name="orientation">vertical</property>
|
||||
<property name="hexpand">True</property>
|
||||
<child>
|
||||
<object class="GtkFrame">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">False</property>
|
||||
<property name="margin_bottom">32</property>
|
||||
<property name="hexpand">True</property>
|
||||
<property name="label_xalign">0</property>
|
||||
<property name="shadow_type">in</property>
|
||||
<child>
|
||||
<object class="GtkListBox" id="options_listbox">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">False</property>
|
||||
<property name="hexpand">True</property>
|
||||
<property name="selection_mode">none</property>
|
||||
<property name="margin_bottom">32</property>
|
||||
<signal name="keynav-failed" handler="keynav_failed" object="CcNotificationsPanel" swapped="yes" />
|
||||
<style>
|
||||
<class name="content"/>
|
||||
</style>
|
||||
<child>
|
||||
<object class="CcListRow" id="dnd_row">
|
||||
<property name="visible">True</property>
|
||||
|
@ -59,11 +55,6 @@
|
|||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
<child type="label_item">
|
||||
<placeholder/>
|
||||
</child>
|
||||
</object>
|
||||
<packing>
|
||||
<property name="expand">False</property>
|
||||
<property name="fill">True</property>
|
||||
|
@ -90,13 +81,6 @@
|
|||
<property name="position">1</property>
|
||||
</packing>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkFrame">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">False</property>
|
||||
<property name="hexpand">True</property>
|
||||
<property name="label_xalign">0</property>
|
||||
<property name="shadow_type">in</property>
|
||||
<child>
|
||||
<object class="GtkListBox" id="app_listbox">
|
||||
<property name="visible">True</property>
|
||||
|
@ -105,15 +89,13 @@
|
|||
<property name="selection_mode">none</property>
|
||||
<signal name="keynav-failed" handler="keynav_failed" object="CcNotificationsPanel" swapped="yes" />
|
||||
<signal name="row-activated" handler="select_app" object="CcNotificationsPanel" swapped="yes" />
|
||||
<style>
|
||||
<class name="content"/>
|
||||
</style>
|
||||
<accessibility>
|
||||
<relation type="labelled-by" target="app_list_heading_label"/>
|
||||
</accessibility>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<placeholder/>
|
||||
</child>
|
||||
</object>
|
||||
<packing>
|
||||
<property name="expand">False</property>
|
||||
<property name="fill">True</property>
|
||||
|
|
Loading…
Add table
Reference in a new issue