]> pilppa.com Git - familiar-h63xx-build.git/commitdiff
dillo: remove "Dillo:" prefix from title.
authorRene Wagner <rw@handhelds.org>
Fri, 20 Oct 2006 22:45:49 +0000 (00:45 +0200)
committerRene Wagner <rw@handhelds.org>
Fri, 20 Oct 2006 22:45:49 +0000 (00:45 +0200)
Signed-off-by: Rene Wagner <rw@handhelds.org>
org.handhelds.familiar/packages/dillo/dillo2-0.6.6/no-title-prefix.patch [new file with mode: 0644]
org.handhelds.familiar/packages/dillo/dillo2_0.6.6.bb

diff --git a/org.handhelds.familiar/packages/dillo/dillo2-0.6.6/no-title-prefix.patch b/org.handhelds.familiar/packages/dillo/dillo2-0.6.6/no-title-prefix.patch
new file mode 100644 (file)
index 0000000..79d4eb6
--- /dev/null
@@ -0,0 +1,34 @@
+--- dillo-0.6.6/src/interface.c.orig   2006-10-21 00:38:41.000000000 +0200
++++ dillo-0.6.6/src/interface.c        2006-10-21 00:39:25.000000000 +0200
+@@ -598,7 +598,7 @@
+    gtk_window_add_accel_group(GTK_WINDOW(bw->main_window), bw->accel_group);
+    /* set window title */
+-   g_snprintf(buf, 64, "Version %s", VERSION);
++   g_snprintf(buf, 64, "Dillo Version %s", VERSION);
+    a_Interface_set_page_title(bw, buf);
+    box1 = gtk_vbox_new(FALSE, 0);
+@@ -804,19 +804,14 @@
+ }
+ /*
+- * Set the title of the browser window to start with "Dillo: "
+- * prepended to it.
++ * Set the title of the browser window
++ * "Dillo: " prefix removed in compliance with modern standards
+  */
+ void a_Interface_set_page_title(BrowserWindow *bw, char *title)
+ {
+-   GString *buf;
+-
+    g_return_if_fail (bw != NULL && title != NULL);
+-   buf = g_string_new("");
+-   g_string_sprintfa(buf, "Dillo: %s", title);
+-   gtk_window_set_title(GTK_WINDOW(bw->main_window), buf->str);
+-   g_string_free(buf, TRUE);
++   gtk_window_set_title(GTK_WINDOW(bw->main_window), title);
+ }
+ /*
index d5b74fdd04c3bafd348bc985e0bd365f07702fa8..5847a0c7f49e232b0c58390c052825b2454926b3 100644 (file)
@@ -2,7 +2,7 @@ SECTION = "x11/network"
 DESCRIPTION = "Lightweight gtk+2 browser."
 LICENSE = "GPL"
 PRIORITY = "optional"
-PR = "r1"
+PR = "r2"
 
 DEPENDS = "gtk+"
 RDEPENDS = "gdk-pixbuf-loader-xpm"
@@ -10,6 +10,7 @@ RDEPENDS = "gdk-pixbuf-loader-xpm"
 SRC_URI="http://www.dillo.org/download/dillo-${PV}.tar.gz \
          file://gtk2.patch;patch=1;pnum=1 \
         file://fix_about_syntax.patch;patch=1;pnum=1 \
+        file://no-title-prefix.patch;patch=1;pnum=1 \
         file://dillo.desktop \
         file://dillo.png \
         file://dillorc"