gnome-panel r11099 - branches/gnome-2-22/applets/clock
- From: vuntz svn gnome org
- To: svn-commits-list gnome org
- Subject: gnome-panel r11099 - branches/gnome-2-22/applets/clock
- Date: Tue, 13 May 2008 12:54:00 +0100 (BST)
Author: vuntz
Date: Tue May 13 11:54:00 2008
New Revision: 11099
URL: http://svn.gnome.org/viewvc/gnome-panel?rev=11099&view=rev
Log:
2008-05-13 Vincent Untz <vuntz gnome org>
* clock.c: (run_prefs_locations_add), (edit_tree_row): put the focus in
the name entry
Modified:
branches/gnome-2-22/applets/clock/ChangeLog
branches/gnome-2-22/applets/clock/clock.c
Modified: branches/gnome-2-22/applets/clock/clock.c
==============================================================================
--- branches/gnome-2-22/applets/clock/clock.c (original)
+++ branches/gnome-2-22/applets/clock/clock.c Tue May 13 11:54:00 2008
@@ -3865,6 +3865,7 @@
run_prefs_locations_add (GtkButton *button, ClockData *cd)
{
GtkWidget *edit_window = glade_xml_get_widget (cd->glade_xml, "edit-location-window");
+ GtkWidget *name_entry = glade_xml_get_widget (cd->glade_xml, "edit-location-name-entry");
GtkWidget *zone_combo = glade_xml_get_widget (cd->glade_xml, "edit-location-timezone-combo");
fill_timezone_combo_from_location (cd, zone_combo, NULL);
@@ -3879,6 +3880,9 @@
GINT_TO_POINTER (g_signal_connect (edit_window, "delete_event", G_CALLBACK (edit_delete), cd)));
}
+ gtk_widget_grab_focus (name_entry);
+ gtk_editable_set_position (GTK_EDITABLE (name_entry), -1);
+
gtk_window_present_with_time (GTK_WINDOW (edit_window), gtk_get_current_event_time ());
}
@@ -3943,6 +3947,9 @@
g_object_set_data (G_OBJECT (edit_window), "clock-location", loc);
+ gtk_widget_grab_focus (name_entry);
+ gtk_editable_set_position (GTK_EDITABLE (name_entry), -1);
+
gtk_window_present (GTK_WINDOW (edit_window));
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]