gnome-terminal r2704 - trunk/src



Author: chpe
Date: Thu May 29 19:46:45 2008
New Revision: 2704
URL: http://svn.gnome.org/viewvc/gnome-terminal?rev=2704&view=rev

Log:
Remove debug spew.
Use gtk_entry_get_text so we don't strdup.


Modified:
   trunk/src/terminal-screen.c

Modified: trunk/src/terminal-screen.c
==============================================================================
--- trunk/src/terminal-screen.c	(original)
+++ trunk/src/terminal-screen.c	Thu May 29 19:46:45 2008
@@ -1727,9 +1727,9 @@
                      TerminalScreen *screen)
 {
   TerminalScreenPrivate *priv = screen->priv;
-  char *text;
+  const char *text;
 
-  text = gtk_editable_get_chars (GTK_EDITABLE (entry), 0, -1);
+  text = gtk_entry_get_text (GTK_ENTRY (entry));
 
   /* The user set the title to nothing, let's understand that as a
      request to revert to dynamically setting the title again. */
@@ -1741,8 +1741,6 @@
       terminal_screen_set_dynamic_title (screen, text, TRUE);
       terminal_screen_set_dynamic_icon_title (screen, text, TRUE);
     }
-
-  g_free (text);
 }
 
 void
@@ -1903,10 +1901,7 @@
          * chooser incorrectly drops application/x-color with format 8.
          */
         if (selection_data->length != 8)
-          {
-            g_warning ("Received invalid color data\n");
-            return;
-          }
+          return;
 
         color.red = data[0];
         color.green = data[1];



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]