[Xfce4-commits] [apps/xfce4-notifyd] 01/01: Add a help button to the settings dialog and fix subtitle
noreply at xfce.org
noreply at xfce.org
Sun Aug 7 00:03:45 CEST 2016
This is an automated email from the git hooks/post-receive script.
ochosi pushed a commit to branch master
in repository apps/xfce4-notifyd.
commit 05f71d274538ae8b8d441d53456693098bd50e6f
Author: Simon Steinbeiss <simon.steinbeiss at elfenbeinturm.at>
Date: Sun Aug 7 00:03:25 2016 +0200
Add a help button to the settings dialog and fix subtitle
---
xfce4-notifyd-config/main.c | 12 +++++++++++-
xfce4-notifyd-config/xfce4-notifyd-config.glade | 25 +++++++++++++++++++++----
2 files changed, 32 insertions(+), 5 deletions(-)
diff --git a/xfce4-notifyd-config/main.c b/xfce4-notifyd-config/main.c
index c91dc70..61b8c85 100644
--- a/xfce4-notifyd-config/main.c
+++ b/xfce4-notifyd-config/main.c
@@ -230,11 +230,17 @@ xfce_notifyd_config_preview_clicked(GtkButton *button,
xfce_notifyd_config_show_notification_preview(GTK_WINDOW(dialog));
}
+static void xfce4_notifyd_show_help(GtkButton *button,
+ GtkWidget *dialog)
+{
+ xfce_dialog_show_help_with_version(GTK_WINDOW(dialog), "notifyd", "start", NULL, NULL);
+}
+
static GtkWidget *
xfce4_notifyd_config_setup_dialog(GtkBuilder *builder)
{
XfconfChannel *channel;
- GtkWidget *dlg, *btn, *sbtn, *slider, *theme_combo, *position_combo;
+ GtkWidget *dlg, *btn, *sbtn, *slider, *theme_combo, *position_combo, *help_button;
GtkAdjustment *adj;
GError *error = NULL;
gchar *current_theme;
@@ -294,6 +300,10 @@ xfce4_notifyd_config_setup_dialog(GtkBuilder *builder)
if(gtk_combo_box_get_active(GTK_COMBO_BOX(position_combo)) == -1)
gtk_combo_box_set_active(GTK_COMBO_BOX(position_combo), GTK_CORNER_TOP_RIGHT);
+ help_button = GTK_WIDGET(gtk_builder_get_object(builder, "help_btn"));
+ g_signal_connect(G_OBJECT(help_button), "clicked",
+ G_CALLBACK(xfce4_notifyd_show_help), dlg);
+
return dlg;
}
diff --git a/xfce4-notifyd-config/xfce4-notifyd-config.glade b/xfce4-notifyd-config/xfce4-notifyd-config.glade
index 90b7990..7861973 100644
--- a/xfce4-notifyd-config/xfce4-notifyd-config.glade
+++ b/xfce4-notifyd-config/xfce4-notifyd-config.glade
@@ -44,6 +44,7 @@
<property name="window_position">center-on-parent</property>
<property name="icon_name">xfce4-notifyd</property>
<property name="type_hint">dialog</property>
+ <property name="subtitle" translatable="yes">Customize how notifications appear on your screen</property>
<child internal-child="vbox">
<object class="GtkBox" id="dialog-vbox1">
<property name="visible">True</property>
@@ -54,6 +55,23 @@
<object class="GtkButtonBox" id="dialog-action_area1">
<property name="visible">True</property>
<property name="can_focus">False</property>
+ <property name="hexpand">True</property>
+ <property name="homogeneous">True</property>
+ <child>
+ <object class="GtkButton" id="help_btn">
+ <property name="label">gtk-help</property>
+ <property name="visible">True</property>
+ <property name="can_focus">True</property>
+ <property name="receives_default">True</property>
+ <property name="use_stock">True</property>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">False</property>
+ <property name="position">0</property>
+ <property name="secondary">True</property>
+ </packing>
+ </child>
<child>
<object class="GtkButton" id="close_btn">
<property name="label">gtk-close</property>
@@ -64,17 +82,16 @@
<property name="use_stock">True</property>
</object>
<packing>
- <property name="expand">False</property>
- <property name="fill">False</property>
+ <property name="expand">True</property>
+ <property name="fill">True</property>
<property name="pack_type">end</property>
<property name="position">1</property>
</packing>
</child>
</object>
<packing>
- <property name="expand">False</property>
+ <property name="expand">True</property>
<property name="fill">True</property>
- <property name="pack_type">end</property>
<property name="position">0</property>
</packing>
</child>
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list