]> Dogcows Code - chaz/openbox/commitdiff
some simpler code
authorDana Jansens <danakj@orodu.net>
Mon, 8 Sep 2003 17:30:55 +0000 (17:30 +0000)
committerDana Jansens <danakj@orodu.net>
Mon, 8 Sep 2003 17:30:55 +0000 (17:30 +0000)
openbox/client.c

index aec05d6f96fb7f28a0755cb13c42d6c020a5ec78..83ced0103c01e7f6e8ba4fa2a2603ec8e5864766 100644 (file)
@@ -1336,10 +1336,8 @@ void client_update_title(ObClient *self)
         }
     /* dont display the number for the first window */
     if (self->title_count > 1) {
-        char *vdata, *ndata;
-        ndata = g_strdup_printf(" - [%u]", self->title_count);
-        vdata = g_strconcat(data, ndata, NULL);
-        g_free(ndata);
+        char *ndata;
+        ndata = g_strdup_printf("%s - [%u]", data, self->title_count);
         g_free(data);
         data = vdata;
     }
This page took 0.025804 seconds and 4 git commands to generate.