diff --git a/gdm.spec b/gdm.spec index 3635846..9393035 100644 --- a/gdm.spec +++ b/gdm.spec @@ -16,7 +16,7 @@ Summary: The GNOME Display Manager Name: gdm Version: 2.28.1 -Release: 21%{?dist} +Release: 22%{?dist} Epoch: 1 License: GPLv2+ Group: User Interface/X @@ -108,6 +108,7 @@ Patch24: fix-computer-info.patch Patch25: fix-run-dir-permissions.patch Patch26: make-user-list-animation-smoother.patch Patch27: 0001-Don-t-show-lock-screen-option-if-locked-down.patch +Patch28: hide-search-entry.patch Patch96: gdm-multistack.patch Patch100: gdm-2.28.1-eviction-notice.patch @@ -163,6 +164,7 @@ The GDM fingerprint plugin provides functionality necessary to use a fingerprint %patch25 -p1 -b .fix-run-dir-permission %patch26 -p1 -b .make-user-list-animation-smoother %patch27 -p1 -b .dont-show-lock-screen-if-locked-down +%patch28 -p1 -b .hide-search-entry %patch96 -p1 -b .multistack %patch100 -p1 -b .eviction-notice @@ -421,6 +423,10 @@ fi %{_libdir}/gdm/simple-greeter/plugins/fingerprint.so %changelog +* Tue Nov 03 2009 Ray Strode 2.28.1-22 +- Hide search entry. It's too easy to show others your + password. + * Tue Nov 03 2009 Ray Strode 2.28.1-21 - Evict Log In button from its house diff --git a/hide-search-entry.patch b/hide-search-entry.patch new file mode 100644 index 0000000..f9b9240 --- /dev/null +++ b/hide-search-entry.patch @@ -0,0 +1,34 @@ +diff --git a/gui/simple-greeter/gdm-chooser-widget.c b/gui/simple-greeter/gdm-chooser-widget.c +index ee5eeb0..9206fcc 100644 +--- a/gui/simple-greeter/gdm-chooser-widget.c ++++ b/gui/simple-greeter/gdm-chooser-widget.c +@@ -1770,6 +1770,17 @@ search_equal_func (GtkTreeModel *model, + } + + static void ++search_position_func (GtkTreeView *tree_view, ++ GtkWidget *search_dialog, ++ gpointer user_data) ++{ ++ /* Move it offscreen. ++ * FIXME: This is pretty inelegant. ++ */ ++ gtk_window_move (GTK_WINDOW (search_dialog), -24000, -24000); ++} ++ ++static void + on_selection_changed (GtkTreeSelection *selection, + GdmChooserWidget *widget) + { +@@ -1826,6 +1837,11 @@ gdm_chooser_widget_init (GdmChooserWidget *widget) + widget, + NULL); + ++ gtk_tree_view_set_search_position_func (GTK_TREE_VIEW (widget->priv->items_view), ++ (GtkTreeViewSearchPositionFunc)search_position_func, ++ widget, ++ NULL); ++ + /* hack to make single-click activate work + */ + g_signal_connect_after (widget->priv->items_view,