[evolution-patches] address book : patch for changing timeout value in search page of config druid
- From: Siva <snallagatla novell com>
- To: evolution-patches ximian com
- Subject: [evolution-patches] address book : patch for changing timeout value in search page of config druid
- Date: Fri, 16 Jan 2004 11:46:54 +0530
Hi,
i just noticed that in Search page of address book config druid, when i
change the timeout value , the lable which displays the currently
selected value does not display the correct selected value. Instead it
always displays "2.30" . The attached small patch displays the correct
value. Also this timeout value looks like not stored in ESource. What is
the propertly name to be used to store this value?
Thanks,
Siva
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/evolution/addressbook/ChangeLog,v
retrieving revision 1.1527
diff -u -r1.1527 ChangeLog
--- ChangeLog 16 Jan 2004 03:15:18 -0000 1.1527
+++ ChangeLog 16 Jan 2004 06:08:03 -0000
@@ -1,3 +1,9 @@
+2004-01-16 Sivaiah Nallagatla <snallagatla novell com>
+ * gui/component/addressbook-config.c :
+ (timeout_value_changed_cb) (setup_searching_tab): added changes
+ to make the selected value label change when the time value is
+ changed in searching page
+
2004-01-15 Hans Petter Jansson <hpj ximian com>
* gui/widgets/e-addressbook-view.c (set_paned_position): Implement.
Index: addressbook-config.c
===================================================================
RCS file: /cvs/gnome/evolution/addressbook/gui/component/addressbook-config.c,v
retrieving revision 1.62
diff -u -r1.62 addressbook-config.c
--- addressbook-config.c 3 Dec 2003 15:38:32 -0000 1.62
+++ addressbook-config.c 16 Jan 2004 06:08:32 -0000
@@ -886,6 +886,19 @@
}
static void
+timeout_value_changed_cb (GtkWidget *range,
+ gpointer dialog)
+{
+ GtkWidget *label;
+ gchar *message;
+
+ message = g_strdup_printf ("%.2f", gtk_range_get_value (GTK_RANGE (range)));
+ label = glade_xml_get_widget (((AddressbookSourceDialog*) dialog)->gui, "label461");
+ gtk_label_set_label (GTK_LABEL(label), message);
+ g_free (message);
+}
+
+static void
setup_searching_tab (AddressbookSourceDialog *dialog, ModifyFunc modify_func)
{
GtkWidget *menu;
@@ -909,6 +922,9 @@
dialog->timeout_scale = glade_xml_get_widget (dialog->gui, "timeout-scale");
add_focus_handler (dialog->timeout_scale, searching_tab_help, 2);
+
+ g_signal_connect (G_OBJECT (dialog->timeout_scale), "value_changed", G_CALLBACK (timeout_value_changed_cb), dialog);
+
if (modify_func)
g_signal_connect (GTK_RANGE(dialog->timeout_scale)->adjustment,
"value_changed",
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]