[gtkparasite] window: Make the title a bit more informative



commit 3196ce81fbccab169289aed0908beca72f2bb800
Author: Benjamin Otte <otte redhat com>
Date:   Sat Mar 16 00:31:04 2013 +0100

    window: Make the title a bit more informative

 src/window.c |   15 ++++++++++++++-
 1 files changed, 14 insertions(+), 1 deletions(-)
---
diff --git a/src/window.c b/src/window.c
index 25701e3..f47bc2a 100644
--- a/src/window.c
+++ b/src/window.c
@@ -355,6 +355,16 @@ gtkparasite_window_create()
     GtkWidget *vpaned;
     GtkWidget *notebook;
     char *title;
+    char *title_prefixes[] = {
+      "Parasite",
+      "Parasite",
+      "Parasite",
+      "Parasite",
+      "Parasite",
+      "GTK Parasite",
+      "I want to eat your brain",
+      "So cute"
+    };
 
     window = g_new0(ParasiteWindow, 1);
 
@@ -366,7 +376,10 @@ gtkparasite_window_create()
     gtk_container_set_border_width(GTK_CONTAINER(window->window), 12);
     gtk_widget_show(window->window);
 
-    title = g_strdup_printf("Parasite - %s", g_get_application_name());
+    title = g_strconcat (title_prefixes[g_random_int_range (0, G_N_ELEMENTS (title_prefixes))],
+                         " - ",
+                         g_get_application_name(),
+                         NULL);
     gtk_window_set_title(GTK_WINDOW(window->window), title);
     g_free(title);
 


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