[gnome-control-center/wip/privacy-swarm: 721/723] Add a trash panel



commit a65266697da26d238b851a8b8211c80fceb0279d
Author: Matthias Clasen <mclasen redhat com>
Date:   Tue Dec 11 14:25:14 2018 -0500

    Add a trash panel
    
    This is a broken out version of the privacy panel dialog.

 panels/trash/cc-trash-panel.c                | 243 +++++++++++++++++++++++
 panels/trash/cc-trash-panel.h                |  30 +++
 panels/trash/cc-trash-panel.ui               | 286 +++++++++++++++++++++++++++
 panels/trash/gnome-trash-panel.desktop.in.in |  19 ++
 panels/trash/meson.build                     |  40 ++++
 panels/trash/trash.gresource.xml             |   6 +
 6 files changed, 624 insertions(+)
---
diff --git a/panels/trash/cc-trash-panel.c b/panels/trash/cc-trash-panel.c
new file mode 100644
index 000000000..4c5d7efa7
--- /dev/null
+++ b/panels/trash/cc-trash-panel.c
@@ -0,0 +1,243 @@
+/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*-
+ *
+ * Copyright (C) 2018 Red Hat, Inc
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, see <http://www.gnu.org/licenses/>.
+ *
+ * Author: Matthias Clasen <mclasen redhat com>
+ */
+
+#include "list-box-helper.h"
+#include "cc-trash-panel.h"
+#include "cc-trash-resources.h"
+#include "cc-util.h"
+
+#include <gio/gdesktopappinfo.h>
+#include <glib/gi18n.h>
+
+struct _CcTrashPanel
+{
+  CcPanel     parent_instance;
+
+  GSettings  *privacy_settings;
+
+  GtkListBox  *trash_list_box;
+  GtkSwitch   *purge_trash_switch;
+  GtkSwitch   *purge_temp_switch;
+  GtkComboBox *purge_after_combo;
+  GtkButton   *purge_temp_button;
+  GtkButton   *purge_trash_button;
+};
+
+CC_PANEL_REGISTER (CcTrashPanel, cc_trash_panel)
+
+static void
+cc_trash_panel_finalize (GObject *object)
+{
+  CcTrashPanel *self = CC_TRASH_PANEL (object);
+
+  g_clear_object (&self->privacy_settings);
+
+  G_OBJECT_CLASS (cc_trash_panel_parent_class)->finalize (object);
+}
+
+static void
+purge_after_combo_changed_cb (GtkWidget      *widget,
+                              CcTrashPanel *self)
+{
+  GtkTreeIter iter;
+  GtkTreeModel *model;
+  guint value;
+  gboolean ret;
+
+  /* no selection */
+  ret = gtk_combo_box_get_active_iter (GTK_COMBO_BOX(widget), &iter);
+  if (!ret)
+    return;
+
+  /* get entry */
+  model = gtk_combo_box_get_model (GTK_COMBO_BOX(widget));
+  gtk_tree_model_get (model, &iter,
+                      1, &value,
+                      -1);
+  g_settings_set (self->privacy_settings, "old-files-age", "u", value);
+}
+
+static void
+set_purge_after_value_for_combo (GtkComboBox    *combo_box,
+                                 CcTrashPanel *self)
+{
+  GtkTreeIter iter;
+  GtkTreeModel *model;
+  guint value;
+  gint value_tmp, value_prev;
+  gboolean ret;
+  guint i;
+
+  /* get entry */
+  model = gtk_combo_box_get_model (combo_box);
+  ret = gtk_tree_model_get_iter_first (model, &iter);
+  if (!ret)
+    return;
+
+  value_prev = 0;
+  i = 0;
+
+  /* try to make the UI match the purge setting */
+  g_settings_get (self->privacy_settings, "old-files-age", "u", &value);
+  do
+    {
+      gtk_tree_model_get (model, &iter,
+                          1, &value_tmp,
+                          -1);
+      if (value == value_tmp ||
+          (value_tmp > value_prev && value < value_tmp))
+        {
+          gtk_combo_box_set_active_iter (combo_box, &iter);
+          return;
+        }
+      value_prev = value_tmp;
+      i++;
+    } while (gtk_tree_model_iter_next (model, &iter));
+
+  /* If we didn't find the setting in the list */
+  gtk_combo_box_set_active (combo_box, i - 1);
+}
+
+static gboolean
+run_warning (CcTrashPanel *self, char *prompt, char *text, char *button_title)
+{
+  GtkWindow *parent;
+  GtkWidget *dialog;
+  GtkWidget *button;
+  int result;
+
+  parent = GTK_WINDOW (gtk_widget_get_toplevel (GTK_WIDGET (self)));
+
+  dialog = gtk_message_dialog_new (parent,
+                                   0,
+                                   GTK_MESSAGE_WARNING,
+                                   GTK_BUTTONS_NONE,
+                                   NULL);
+  g_object_set (dialog,
+                "text", prompt,
+                "secondary-text", text,
+                NULL);
+  gtk_dialog_add_button (GTK_DIALOG (dialog), _("_Cancel"), GTK_RESPONSE_CANCEL);
+  gtk_dialog_add_button (GTK_DIALOG (dialog), button_title, GTK_RESPONSE_OK);
+
+  gtk_dialog_set_default_response (GTK_DIALOG (dialog), FALSE);
+
+  button = gtk_dialog_get_widget_for_response (GTK_DIALOG (dialog), GTK_RESPONSE_OK);
+  gtk_style_context_add_class (gtk_widget_get_style_context (button), "destructive-action");
+
+  result = gtk_dialog_run (GTK_DIALOG (dialog));
+  gtk_widget_destroy (dialog);
+
+  return result == GTK_RESPONSE_OK;
+}
+
+static void
+empty_trash (CcTrashPanel *self)
+{
+  GDBusConnection *bus;
+  gboolean result;
+
+  result = run_warning (self, _("Empty all items from Trash?"),
+                        _("All items in the Trash will be permanently deleted."),
+                        _("_Empty Trash"));
+
+  if (!result)
+    return;
+
+  bus = g_bus_get_sync (G_BUS_TYPE_SESSION, NULL, NULL);
+  g_dbus_connection_call (bus,
+                          "org.gnome.SettingsDaemon.Housekeeping",
+                          "/org/gnome/SettingsDaemon/Housekeeping",
+                          "org.gnome.SettingsDaemon.Housekeeping",
+                          "EmptyTrash",
+                          NULL, NULL, 0, -1, NULL, NULL, NULL);
+  g_object_unref (bus);
+}
+
+static void
+purge_temp (CcTrashPanel *self)
+{
+  GDBusConnection *bus;
+  gboolean result;
+
+  result = run_warning (self, _("Delete all the temporary files?"),
+                        _("All the temporary files will be permanently deleted."),
+                        _("_Purge Temporary Files"));
+
+  if (!result)
+    return;
+
+  bus = g_bus_get_sync (G_BUS_TYPE_SESSION, NULL, NULL);
+  g_dbus_connection_call (bus,
+                          "org.gnome.SettingsDaemon.Housekeeping",
+                          "/org/gnome/SettingsDaemon/Housekeeping",
+                          "org.gnome.SettingsDaemon.Housekeeping",
+                          "RemoveTempFiles",
+                          NULL, NULL, 0, -1, NULL, NULL, NULL);
+  g_object_unref (bus);
+}
+
+static void
+cc_trash_panel_init (CcTrashPanel *self)
+{
+  g_resources_register (cc_trash_get_resource ());
+
+  gtk_widget_init_template (GTK_WIDGET (self));
+
+  gtk_list_box_set_header_func (self->trash_list_box,
+                                cc_list_box_update_header_func,
+                                NULL, NULL);
+
+  self->privacy_settings = g_settings_new ("org.gnome.desktop.privacy");
+
+  g_settings_bind (self->privacy_settings, "remove-old-trash-files",
+                   self->purge_trash_switch, "active",
+                   G_SETTINGS_BIND_DEFAULT);
+
+  g_settings_bind (self->privacy_settings, "remove-old-temp-files",
+                   self->purge_temp_switch, "active",
+                   G_SETTINGS_BIND_DEFAULT);
+
+  set_purge_after_value_for_combo (self->purge_after_combo, self);
+  g_signal_connect (self->purge_after_combo, "changed",
+                    G_CALLBACK (purge_after_combo_changed_cb), self);
+
+  g_signal_connect_swapped (self->purge_trash_button, "clicked", G_CALLBACK (empty_trash), self);
+
+  g_signal_connect_swapped (self->purge_temp_button, "clicked", G_CALLBACK (purge_temp), self);
+}
+
+static void
+cc_trash_panel_class_init (CcTrashPanelClass *klass)
+{
+  GObjectClass *oclass = G_OBJECT_CLASS (klass);
+  GtkWidgetClass *widget_class = GTK_WIDGET_CLASS (klass);
+
+  oclass->finalize = cc_trash_panel_finalize;
+
+  gtk_widget_class_set_template_from_resource (widget_class, 
"/org/gnome/control-center/trash/cc-trash-panel.ui");
+
+  gtk_widget_class_bind_template_child (widget_class, CcTrashPanel, trash_list_box);
+  gtk_widget_class_bind_template_child (widget_class, CcTrashPanel, purge_trash_switch);
+  gtk_widget_class_bind_template_child (widget_class, CcTrashPanel, purge_temp_switch);
+  gtk_widget_class_bind_template_child (widget_class, CcTrashPanel, purge_after_combo);
+  gtk_widget_class_bind_template_child (widget_class, CcTrashPanel, purge_trash_button);
+  gtk_widget_class_bind_template_child (widget_class, CcTrashPanel, purge_temp_button);
+}
diff --git a/panels/trash/cc-trash-panel.h b/panels/trash/cc-trash-panel.h
new file mode 100644
index 000000000..bc85da21e
--- /dev/null
+++ b/panels/trash/cc-trash-panel.h
@@ -0,0 +1,30 @@
+/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*-
+ *
+ * Copyright (C) 2018 Red Hat, Inc
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, see <http://www.gnu.org/licenses/>.
+ *
+ * Author: Matthias Clasen <mclasen redhat com>
+ */
+
+#pragma once
+
+#include <shell/cc-panel.h>
+
+G_BEGIN_DECLS
+
+#define CC_TYPE_TRASH_PANEL (cc_trash_panel_get_type ())
+G_DECLARE_FINAL_TYPE (CcTrashPanel, cc_trash_panel, CC, TRASH_PANEL, CcPanel)
+
+G_END_DECLS
diff --git a/panels/trash/cc-trash-panel.ui b/panels/trash/cc-trash-panel.ui
new file mode 100644
index 000000000..5d4ca68da
--- /dev/null
+++ b/panels/trash/cc-trash-panel.ui
@@ -0,0 +1,286 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- Generated with glade 3.18.1 -->
+<interface>
+  <requires lib="gtk+" version="3.14"/>
+  <object class="GtkListStore" id="purge_after_model">
+    <columns>
+      <!-- column-name name -->
+      <column type="gchararray"/>
+      <!-- column-name value -->
+      <column type="guint"/>
+    </columns>
+    <data>
+      <row>
+        <col id="0" translatable="yes" context="purge_files" comments="Translators: Option for &quot;Purge 
After&quot; in &quot;Purge Trash &amp; Temporary Files&quot; dialog.">1 hour</col>
+        <col id="1">0</col>
+      </row>
+      <row>
+        <col id="0" translatable="yes" context="purge_files" comments="Translators: Option for &quot;Purge 
After&quot; in &quot;Purge Trash &amp; Temporary Files&quot; dialog.">1 day</col>
+        <col id="1">1</col>
+      </row>
+      <row>
+        <col id="0" translatable="yes" context="purge_files" comments="Translators: Option for &quot;Purge 
After&quot; in &quot;Purge Trash &amp; Temporary Files&quot; dialog.">2 days</col>
+        <col id="1">2</col>
+      </row>
+      <row>
+        <col id="0" translatable="yes" context="purge_files" comments="Translators: Option for &quot;Purge 
After&quot; in &quot;Purge Trash &amp; Temporary Files&quot; dialog.">3 days</col>
+        <col id="1">3</col>
+      </row>
+      <row>
+        <col id="0" translatable="yes" context="purge_files" comments="Translators: Option for &quot;Purge 
After&quot; in &quot;Purge Trash &amp; Temporary Files&quot; dialog.">4 days</col>
+        <col id="1">4</col>
+      </row>
+      <row>
+        <col id="0" translatable="yes" context="purge_files" comments="Translators: Option for &quot;Purge 
After&quot; in &quot;Purge Trash &amp; Temporary Files&quot; dialog.">5 days</col>
+        <col id="1">5</col>
+      </row>
+      <row>
+        <col id="0" translatable="yes" context="purge_files" comments="Translators: Option for &quot;Purge 
After&quot; in &quot;Purge Trash &amp; Temporary Files&quot; dialog.">6 days</col>
+        <col id="1">6</col>
+      </row>
+      <row>
+        <col id="0" translatable="yes" context="purge_files" comments="Translators: Option for &quot;Purge 
After&quot; in &quot;Purge Trash &amp; Temporary Files&quot; dialog.">7 days</col>
+        <col id="1">7</col>
+      </row>
+      <row>
+        <col id="0" translatable="yes" context="purge_files" comments="Translators: Option for &quot;Purge 
After&quot; in &quot;Purge Trash &amp; Temporary Files&quot; dialog.">14 days</col>
+        <col id="1">14</col>
+      </row>
+      <row>
+        <col id="0" translatable="yes" context="purge_files" comments="Translators: Option for &quot;Purge 
After&quot; in &quot;Purge Trash &amp; Temporary Files&quot; dialog.">30 days</col>
+        <col id="1">30</col>
+      </row>
+    </data>
+  </object>
+
+  <template class="CcTrashPanel" parent="CcPanel">
+    <property name="visible">True</property>
+    <child>
+      <object class="GtkScrolledWindow">
+        <property name="visible">1</property>
+        <property name="hscrollbar-policy">never</property>
+        <child>
+          <object class="GtkBox">
+            <property name="visible">1</property>
+            <!-- Stub boxes to make the content cover 1/3 of the screen -->
+            <child>
+              <object class="GtkBox">
+                <property name="visible">1</property>
+                <property name="hexpand">1</property>
+              </object>
+            </child>
+            <child>
+              <object class="GtkBox">
+                <property name="visible">1</property>
+                <property name="hexpand">1</property>
+              </object>
+              <packing>
+                <property name="pack-type">end</property>
+              </packing>
+            </child>
+            <!-- Content -->
+            <child>
+              <object class="GtkBox">
+                <property name="visible">1</property>
+                <property name="orientation">vertical</property>
+                <property name="margin">32</property>
+                <property name="hexpand">1</property>
+                <child>
+                  <object class="GtkLabel">
+                    <property name="visible">1</property>
+                    <property name="margin-bottom">12</property>
+                    <property name="label" translatable="yes">Automatically purge the Trash and temporary 
files to help keep your computer free of unnecessary sensitive information.</property>
+                    <property name="wrap">1</property>
+                    <property name="max-width-chars">50</property>
+                    <property name="xalign">0</property>
+                  </object>
+                </child>
+                <child>
+                  <object class="GtkListBox" id="trash_list_box">
+                    <property name="visible">1</property>
+                    <property name="can-focus">1</property>
+                    <property name="selection-mode">none</property>
+                    <child>
+                      <object class="GtkListBoxRow">
+                        <property name="visible">1</property>
+                        <child>
+                          <object class="GtkBox">
+                            <property name="visible">1</property>
+                        <property name="margin_start">12</property>
+                        <property name="margin_end">12</property>
+                        <property name="margin_top">12</property>
+                        <property name="margin_bottom">12</property>
+                            <child>
+                              <object class="GtkLabel">
+                                <property name="visible">1</property>
+                                <property name="label" translatable="yes">Automatically empty 
_Trash</property>
+                                <property name="use_underline">1</property>
+                                <property name="mnemonic_widget">purge_trash_switch</property>
+                                <property name="xalign">0</property>
+                                <property name="valign">center</property>
+                              </object>
+                              <packing>
+                                <property name="expand">1</property>
+                              </packing>
+                            </child>
+                            <child>
+                              <object class="GtkSwitch" id="purge_trash_switch">
+                                <property name="visible">1</property>
+                                <property name="halign">end</property>
+                                <property name="valign">center</property>
+                              </object>
+                            </child>
+                          </object>
+                        </child>
+                      </object>
+                    </child>
+                    <child>
+                      <object class="GtkListBoxRow">
+                        <property name="visible">1</property>
+                        <child>
+                          <object class="GtkBox">
+                            <property name="visible">1</property>
+                        <property name="margin_start">12</property>
+                        <property name="margin_end">12</property>
+                        <property name="margin_top">12</property>
+                        <property name="margin_bottom">12</property>
+                            <child>
+                              <object class="GtkLabel">
+                                <property name="visible">1</property>
+                                <property name="label" translatable="yes">Automatically purge Temporary 
_Files</property>
+                                <property name="use_underline">1</property>
+                                <property name="mnemonic_widget">purge_temp_switch</property>
+                                <property name="xalign">0</property>
+                                <property name="valign">center</property>
+                              </object>
+                              <packing>
+                                <property name="expand">1</property>
+                              </packing>
+                            </child>
+                            <child>
+                              <object class="GtkSwitch" id="purge_temp_switch">
+                                <property name="visible">1</property>
+                                <property name="halign">end</property>
+                                <property name="valign">center</property>
+                              </object>
+                            </child>
+                          </object>
+                        </child>
+                      </object>
+                    </child>
+                    <child>
+                      <object class="GtkListBoxRow">
+                        <property name="visible">1</property>
+                        <child>
+                          <object class="GtkBox">
+                            <property name="visible">1</property>
+                        <property name="margin_start">12</property>
+                        <property name="margin_end">12</property>
+                        <property name="margin_top">12</property>
+                        <property name="margin_bottom">12</property>
+                            <child>
+                              <object class="GtkLabel">
+                                <property name="visible">1</property>
+                                <property name="label" translatable="yes">Purge _after</property>
+                                <property name="use_underline">1</property>
+                                <property name="mnemonic_widget">purge_after_combo</property>
+                                <property name="sensitive" bind-source="purge_after_combo" 
bind-property="sensitive"/>
+                                <property name="xalign">0</property>
+                                <property name="valign">center</property>
+                              </object>
+                              <packing>
+                                <property name="expand">1</property>
+                              </packing>
+                            </child>
+                            <child>
+                              <object class="GtkComboBoxText" id="purge_after_combo">
+                                <property name="visible">1</property>
+                                <property name="valign">center</property>
+                                <property name="entry_text_column">0</property>
+                                <property name="model">purge_after_model</property>
+                              </object>
+                            </child>
+                          </object>
+                        </child>
+                      </object>
+                    </child>
+                    <child>
+                      <object class="GtkListBoxRow">
+                        <property name="visible">1</property>
+                        <child>
+                          <object class="GtkBox">
+                            <property name="visible">1</property>
+                        <property name="margin_start">12</property>
+                        <property name="margin_end">12</property>
+                        <property name="margin_top">12</property>
+                        <property name="margin_bottom">12</property>
+                            <child>
+                              <object class="GtkLabel">
+                                <property name="visible">1</property>
+                                <property name="label" translatable="yes">Trash</property>
+                                <property name="xalign">0</property>
+                                <property name="valign">center</property>
+                              </object>
+                              <packing>
+                                <property name="expand">1</property>
+                              </packing>
+                            </child>
+                            <child>
+                              <object class="GtkButton" id="purge_trash_button">
+                                <property name="visible">1</property>
+                                <property name="halign">end</property>
+                                <property name="valign">center</property>
+                                <property name="label" translatable="yes">_Empty Trash…</property>
+                              </object>
+                            </child>
+                          </object>
+                        </child>
+                      </object>
+                    </child>
+                    <child>
+                      <object class="GtkListBoxRow">
+                        <property name="visible">1</property>
+                        <child>
+                          <object class="GtkBox">
+                            <property name="visible">1</property>
+                        <property name="margin_start">12</property>
+                        <property name="margin_end">12</property>
+                        <property name="margin_top">12</property>
+                        <property name="margin_bottom">12</property>
+                            <child>
+                              <object class="GtkLabel">
+                                <property name="visible">1</property>
+                                <property name="label" translatable="yes">Temporary Files</property>
+                                <property name="xalign">0</property>
+                                <property name="valign">center</property>
+                              </object>
+                              <packing>
+                                <property name="expand">1</property>
+                              </packing>
+                            </child>
+                            <child>
+                              <object class="GtkButton" id="purge_temp_button">
+                                <property name="visible">1</property>
+                                <property name="halign">end</property>
+                                <property name="valign">center</property>
+                                <property name="label" translatable="yes">_Purge Temporary Files…</property>
+                              </object>
+                            </child>
+                          </object>
+                        </child>
+                      </object>
+                    </child>
+                    <style>
+                      <class name="view"/>
+                      <class name="frame"/>
+                    </style>
+                  </object>
+                </child>
+              </object>
+            </child>
+          </object>
+        </child>
+      </object>
+    </child>
+  </template>
+</interface>
diff --git a/panels/trash/gnome-trash-panel.desktop.in.in b/panels/trash/gnome-trash-panel.desktop.in.in
new file mode 100644
index 000000000..2ae50a1e9
--- /dev/null
+++ b/panels/trash/gnome-trash-panel.desktop.in.in
@@ -0,0 +1,19 @@
+[Desktop Entry]
+Name=Trash & Temporary Files
+Comment=Take out the trash
+Exec=gnome-control-center trash
+# FIXME
+# Translators: Do NOT translate or transliterate this text (this is an icon file name)!
+Icon=user-trash
+Terminal=false
+Type=Application
+NoDisplay=true
+StartupNotify=true
+Categories=GNOME;GTK;Settings;DesktopSettings;X-GNOME-Settings-Panel;X-GNOME-PrivacySettings;
+OnlyShowIn=GNOME;Unity;
+X-GNOME-Bugzilla-Bugzilla=GNOME
+X-GNOME-Bugzilla-Product=gnome-control-center
+X-GNOME-Bugzilla-Component=privacy
+X-GNOME-Bugzilla-Version=@VERSION@
+# Translators: Search terms to find the Privacy panel. Do NOT translate or localize the semicolons! The list 
MUST also end with a semicolon!
+Keywords=screen;lock;diagnostics;crash;private;recent;temporary;tmp;index;name;network;identity;
diff --git a/panels/trash/meson.build b/panels/trash/meson.build
new file mode 100644
index 000000000..ebfbc23d4
--- /dev/null
+++ b/panels/trash/meson.build
@@ -0,0 +1,40 @@
+panels_list += cappletname
+desktop = 'gnome-@0@-panel.desktop'.format(cappletname)
+
+desktop_in = configure_file(
+  input: desktop + '.in.in',
+  output: desktop + '.in',
+  configuration: desktop_conf
+)
+
+i18n.merge_file(
+  desktop,
+  type: 'desktop',
+  input: desktop_in,
+  output: desktop,
+  po_dir: po_dir,
+  install: true,
+  install_dir: control_center_desktopdir
+)
+
+sources = files('cc-trash-panel.c')
+
+resource_data = files('cc-trash-panel.ui')
+
+sources += gnome.compile_resources(
+  'cc-' + cappletname + '-resources',
+  cappletname + '.gresource.xml',
+  c_name: 'cc_' + cappletname,
+  dependencies: resource_data,
+  export: true
+)
+
+cflags += '-DGNOMELOCALEDIR="@0@"'.format(control_center_localedir)
+
+panels_libs += static_library(
+  cappletname,
+  sources: sources,
+  include_directories: [top_inc, common_inc],
+  dependencies: common_deps,
+  c_args: cflags
+)
diff --git a/panels/trash/trash.gresource.xml b/panels/trash/trash.gresource.xml
new file mode 100644
index 000000000..70ba422f1
--- /dev/null
+++ b/panels/trash/trash.gresource.xml
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<gresources>
+  <gresource prefix="/org/gnome/control-center/trash">
+    <file preprocess="xml-stripblanks">cc-trash-panel.ui</file>
+  </gresource>
+</gresources>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]