[ABRT PATCH 3/5] GUI config: add Silent shortened reporting support
Jakub Filak
jfilak at redhat.com
Wed Aug 14 12:43:07 UTC 2013
Closes rhbz#953927
Signed-off-by: Jakub Filak <jfilak at redhat.com>
---
src/configuration-gui/abrt-config-widget.c | 6 ++++
src/configuration-gui/abrt-config-widget.ui | 48 +++++++++++++++++++++++++++++
2 files changed, 54 insertions(+)
diff --git a/src/configuration-gui/abrt-config-widget.c b/src/configuration-gui/abrt-config-widget.c
index 1a1dbc5..847c70a 100644
--- a/src/configuration-gui/abrt-config-widget.c
+++ b/src/configuration-gui/abrt-config-widget.c
@@ -45,6 +45,7 @@ struct AbrtConfigWidgetPrivate {
AbrtConfigWidgetOption opt_steal_directory;
AbrtConfigWidgetOption opt_send_ureport;
AbrtConfigWidgetOption opt_shortened_reporting;
+ AbrtConfigWidgetOption opt_silent_shortened_reporting;
};
G_DEFINE_TYPE(AbrtConfigWidget, abrt_config_widget, GTK_TYPE_BOX)
@@ -180,6 +181,9 @@ abrt_config_widget_init(AbrtConfigWidget *self)
self->priv->opt_shortened_reporting.name = "ShortenedReporting";
self->priv->opt_shortened_reporting.config = self->priv->abrt_applet_conf;
+ self->priv->opt_silent_shortened_reporting.name = "SilentShortenedReporting";
+ self->priv->opt_silent_shortened_reporting.config = self->priv->abrt_applet_conf;
+
/* Connect widgets with options */
connect_switch_with_option(GTK_SWITCH(WID("switch_upload_coredump")), self,
&(self->priv->opt_upload_coredump), /* default: */ FALSE);
@@ -189,6 +193,8 @@ abrt_config_widget_init(AbrtConfigWidget *self)
&(self->priv->opt_send_ureport), g_settings_autoreporting);
connect_switch_with_option(GTK_SWITCH(WID("switch_shortened_reporting")), self,
&(self->priv->opt_shortened_reporting), g_settings_shortenedreporting);
+ connect_switch_with_option(GTK_SWITCH(WID("switch_silent_shortened_reporting")), self,
+ &(self->priv->opt_silent_shortened_reporting), FALSE);
gtk_widget_reparent(WID("grid"), GTK_WIDGET(self));
diff --git a/src/configuration-gui/abrt-config-widget.ui b/src/configuration-gui/abrt-config-widget.ui
index bc52c1a..2b8f010 100644
--- a/src/configuration-gui/abrt-config-widget.ui
+++ b/src/configuration-gui/abrt-config-widget.ui
@@ -205,6 +205,54 @@
<property name="height">1</property>
</packing>
</child>
+ <child>
+ <object class="GtkSwitch" id="switch_silent_shortened_reporting">
+ <property name="visible">True</property>
+ <property name="can_focus">True</property>
+ <property name="halign">end</property>
+ <property name="valign">center</property>
+ </object>
+ <packing>
+ <property name="left_attach">1</property>
+ <property name="top_attach">8</property>
+ <property name="width">1</property>
+ <property name="height">1</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkLabel" id="label9">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="halign">start</property>
+ <property name="ypad">10</property>
+ <property name="label" translatable="yes">Silent shortened reporting</property>
+ <attributes>
+ <attribute name="weight" value="bold"/>
+ </attributes>
+ </object>
+ <packing>
+ <property name="left_attach">0</property>
+ <property name="top_attach">8</property>
+ <property name="width">1</property>
+ <property name="height">1</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkLabel" id="label10">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="halign">start</property>
+ <property name="valign">start</property>
+ <property name="label" translatable="yes"> With this option enabled ABRT never shows notifications of reported problems. Takes effect only if Shortened reporting is enabled.</property>
+ <property name="wrap">True</property>
+ </object>
+ <packing>
+ <property name="left_attach">0</property>
+ <property name="top_attach">9</property>
+ <property name="width">2</property>
+ <property name="height">1</property>
+ </packing>
+ </child>
</object>
</child>
</object>
--
1.8.3.1
More information about the Crash-catcher
mailing list