gnome-panel r11059 - trunk/applets/clock
- From: matthiasc svn gnome org
- To: svn-commits-list gnome org
- Subject: gnome-panel r11059 - trunk/applets/clock
- Date: Thu, 17 Apr 2008 03:13:59 +0100 (BST)
Author: matthiasc
Date: Thu Apr 17 03:13:59 2008
New Revision: 11059
URL: http://svn.gnome.org/viewvc/gnome-panel?rev=11059&view=rev
Log:
Make the help buttons work
Modified:
trunk/applets/clock/ChangeLog
trunk/applets/clock/clock.c
Modified: trunk/applets/clock/clock.c
==============================================================================
--- trunk/applets/clock/clock.c (original)
+++ trunk/applets/clock/clock.c Thu Apr 17 03:13:59 2008
@@ -2954,21 +2954,6 @@
}
static void
-properties_response_cb (GtkWidget *widget,
- int id,
- ClockData *cd)
-{
- /* FMQ: was used from old preferences dialog; fix this up */
-
- if (id == GTK_RESPONSE_HELP)
- clock_utils_display_help (cd->applet,
- "clock", "clock", "clock-settings");
-
- else
- gtk_widget_destroy (widget);
-}
-
-static void
prefs_locations_changed (GtkTreeSelection *selection, ClockData *cd)
{
gint n;
@@ -3693,6 +3678,13 @@
return TRUE;
}
+static void
+prefs_help (GtkWidget *widget, ClockData *cd)
+{
+ clock_utils_display_help (cd->applet,
+ "clock", "clock", "clock-settings");
+}
+
typedef struct {
const gchar *name;
const gchar *country_code;
@@ -4147,6 +4139,7 @@
{
GtkWidget *edit_window;
GtkWidget *prefs_close_button;
+ GtkWidget *prefs_help_button;
GtkWidget *edit_cancel_button;
GtkWidget *edit_ok_button;
GtkWidget *zone_combo;
@@ -4163,6 +4156,7 @@
gtk_window_set_icon_name (GTK_WINDOW (cd->prefs_window), CLOCK_ICON);
prefs_close_button = glade_xml_get_widget (cd->glade_xml, "prefs-close-button");
+ prefs_help_button = glade_xml_get_widget (cd->glade_xml, "prefs-help-button");
cd->prefs_locations = GTK_TREE_VIEW (glade_xml_get_widget (cd->glade_xml, "cities_list"));
selection = gtk_tree_view_get_selection (cd->prefs_locations);
@@ -4175,6 +4169,9 @@
g_signal_connect (G_OBJECT (prefs_close_button), "clicked",
G_CALLBACK (prefs_hide), cd);
+ g_signal_connect (G_OBJECT (prefs_help_button), "clicked",
+ G_CALLBACK (prefs_help), cd);
+
cd->prefs_location_remove_button = glade_xml_get_widget (cd->glade_xml, "prefs-locations-remove-button");
g_signal_connect (G_OBJECT (cd->prefs_location_remove_button), "clicked",
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]