[Xfce4-commits] <xfce-utils:master> No need to select the text manually.

Jérôme Guelfucci noreply at xfce.org
Thu Dec 23 23:48:01 CET 2010


Updating branch refs/heads/master
         to 5adbefb41d5b384584dce9deae41f06bb904b98f (commit)
       from 40533b1cfedeec8cb8a41f4184b0d31f0d800605 (commit)

commit 5adbefb41d5b384584dce9deae41f06bb904b98f
Author: Jérôme Guelfucci <jeromeg at xfce.org>
Date:   Thu Dec 23 23:44:00 2010 +0100

    No need to select the text manually.
    
    We already make sure it is selected previously.

 xfrun/xfrun-dbus.c   |    1 -
 xfrun/xfrun-dialog.c |    7 -------
 xfrun/xfrun-dialog.h |    2 --
 3 files changed, 0 insertions(+), 10 deletions(-)

diff --git a/xfrun/xfrun-dbus.c b/xfrun/xfrun-dbus.c
index 06ee12d..783c1a1 100644
--- a/xfrun/xfrun-dbus.c
+++ b/xfrun/xfrun-dbus.c
@@ -184,7 +184,6 @@ xfrun_handle_dbus_message(DBusConnection *connection,
 
                 /* this handles setting the dialog to the right screen */
                 xfce_gtk_window_center_on_active_screen(GTK_WINDOW(dialog));
-                xfrun_dialog_select_text(XFRUN_DIALOG(dialog));
                 gtk_widget_show(dialog);
 
                 reply = dbus_message_new_method_return(message);
diff --git a/xfrun/xfrun-dialog.c b/xfrun/xfrun-dialog.c
index 5e2f334..8dbcdcb 100644
--- a/xfrun/xfrun-dialog.c
+++ b/xfrun/xfrun-dialog.c
@@ -702,10 +702,3 @@ xfrun_dialog_set_environment(XfrunDialog *dialog,
     g_strfreev(dialog->priv->envp);
     dialog->priv->envp = g_strdupv(envp);
 }
-
-void
-xfrun_dialog_select_text(XfrunDialog *dialog)
-{
-    gtk_editable_select_region(GTK_EDITABLE(XFRUN_DIALOG(dialog)->priv->entry),
-                               0, -1);
-}
diff --git a/xfrun/xfrun-dialog.h b/xfrun/xfrun-dialog.h
index bfb4fa4..549e666 100644
--- a/xfrun/xfrun-dialog.h
+++ b/xfrun/xfrun-dialog.h
@@ -65,8 +65,6 @@ void xfrun_dialog_set_working_directory            (XfrunDialog *dialog,
 void xfrun_dialog_set_environment                  (XfrunDialog *dialog,
                                                     gchar **envp);
 
-void xfrun_dialog_select_text                      (XfrunDialog *dialog);
-
 G_CONST_RETURN gchar *xfrun_dialog_get_working_directory
                                                    (XfrunDialog *dialog);
 



More information about the Xfce4-commits mailing list