~ubuntu-branches/ubuntu/trusty/blam/trusty

« back to all changes in this revision

Viewing changes to debian/patches/firefox.diff

  • Committer: Bazaar Package Importer
  • Author(s): Sebastian Dröge
  • Date: 2006-03-14 14:57:31 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20060314145731-8ksmc4mhwzk3bn1j
Tags: 1.8.2+cvs20060124-0ubuntu1
* New CVS snapshot
* egg-sharp.diff:
  + Fix the TrayIcon breakage by replacing it with generic TrayIcon
    implementation used by banshee, beagle, etc
* firefox.diff:
  + Fix build with firefox 1.5
    (Closes: Malone #4839, #5354, #5876, #32758, #34368, #34581)
* gtk-sharp2.diff:
  + Build with Gtk#2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
? blam.desktop.in
 
2
? libblam/bacon-message-connection.lo
 
3
? libblam/blam-gecko-utils.lo
 
4
? libblam/blam-utils.lo
 
5
? libblam/libblam.la
 
6
Index: libblam/blam-gecko-utils.cpp
 
7
===================================================================
 
8
RCS file: /cvs/gnome/blam/libblam/blam-gecko-utils.cpp,v
 
9
retrieving revision 1.5
 
10
diff -u -r1.5 blam-gecko-utils.cpp
 
11
--- libblam/blam-gecko-utils.cpp        6 May 2005 08:10:27 -0000       1.5
 
12
+++ libblam/blam-gecko-utils.cpp        22 Jan 2006 12:16:18 -0000
 
13
@@ -1,24 +1,27 @@
 
14
-/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
 
15
-/*
 
16
- * Copyright (C) 2004 Imendio AB
 
17
- * Copyright (C) 2004 Marco Pesenti Gritti
 
18
- *
 
19
- * This program is free software; you can redistribute it and/or
 
20
- * modify it under the terms of the GNU General Public License as
 
21
- * published by the Free Software Foundation; either version 2 of the
 
22
- * License, or (at your option) any later version.
 
23
- *
 
24
- * This program is distributed in the hope that it will be useful,
 
25
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
26
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
27
- * General Public License for more details.
 
28
- *
 
29
- * You should have received a copy of the GNU General Public
 
30
- * License along with this program; if not, write to the
 
31
- * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
 
32
- * Boston, MA 02111-1307, USA.
 
33
- *
 
34
- */
 
35
+
 
36
+// -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
 
37
+//
 
38
+// Copyright (C) 2004 Imendio AB
 
39
+// Copyright (C) 2004 Marco Pesenti Gritti
 
40
+//
 
41
+//
 
42
+// Permission is hereby granted, free of charge, to any person obtaining a
 
43
+// copy of this software and associated documentation files (the "Software"),
 
44
+// to deal in the Software without restriction, including without limitation
 
45
+// the rights to use, copy, modify, merge, publish, distribute, sublicense,
 
46
+// and/or sell copies of the Software, and to permit persons to whom the
 
47
+// Software is furnished to do so, subject to the following conditions:
 
48
+//
 
49
+// The above copyright notice and this permission notice shall be included in
 
50
+// all copies or substantial portions of the Software.
 
51
+//
 
52
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 
53
+// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 
54
+// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 
55
+// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 
56
+// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
 
57
+// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
 
58
+// DEALINGS IN THE SOFTWARE.
 
59
 
 
60
 #include <config.h>
 
61
 
 
62
@@ -29,6 +32,8 @@
 
63
 #include <nsEmbedString.h>
 
64
 #include <nsIPrefService.h>
 
65
 #include <nsIServiceManager.h>
 
66
+#include <nsCOMPtr.h>
 
67
+#include <nsServiceManagerUtils.h>
 
68
 
 
69
 #if defined (HAVE_CHROME_NSICHROMEREGISTRYSEA_H)
 
70
 #include <chrome/nsIChromeRegistrySea.h>
 
71
@@ -47,16 +52,23 @@
 
72
 static gboolean
 
73
 blam_util_split_font_string (const gchar *font_name, gchar **name, gint *size)
 
74
 {
 
75
-       gchar *ch;
 
76
+       gchar *tmp_name, *ch;
 
77
+       
 
78
+       tmp_name = g_strdup (font_name);
 
79
 
 
80
-       ch = g_utf8_strrchr (font_name, -1, ' ');
 
81
-       if (!ch || ch == font_name) {
 
82
+       ch = g_utf8_strrchr (tmp_name, -1, ' ');
 
83
+       if (!ch || ch == tmp_name) {
 
84
                return FALSE;
 
85
        }
 
86
 
 
87
-       *name = g_strndup (font_name, ch - font_name);
 
88
+       *ch = '\0';
 
89
+
 
90
+       *name = g_strdup (tmp_name);
 
91
        *size = strtol (ch + 1, (char **) NULL, 10);
 
92
 
 
93
+        /* Temporary hack to make the font a bit bigger ;) */
 
94
+        /* *size = *size + 3; */
 
95
+       
 
96
        return TRUE;
 
97
 }
 
98