2
? libblam/bacon-message-connection.lo
3
? libblam/blam-gecko-utils.lo
4
? libblam/blam-utils.lo
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
14
-/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
16
- * Copyright (C) 2004 Imendio AB
17
- * Copyright (C) 2004 Marco Pesenti Gritti
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.
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.
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.
36
+// -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
38
+// Copyright (C) 2004 Imendio AB
39
+// Copyright (C) 2004 Marco Pesenti Gritti
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:
49
+// The above copyright notice and this permission notice shall be included in
50
+// all copies or substantial portions of the Software.
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.
63
#include <nsEmbedString.h>
64
#include <nsIPrefService.h>
65
#include <nsIServiceManager.h>
66
+#include <nsCOMPtr.h>
67
+#include <nsServiceManagerUtils.h>
69
#if defined (HAVE_CHROME_NSICHROMEREGISTRYSEA_H)
70
#include <chrome/nsIChromeRegistrySea.h>
73
blam_util_split_font_string (const gchar *font_name, gchar **name, gint *size)
76
+ gchar *tmp_name, *ch;
78
+ tmp_name = g_strdup (font_name);
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) {
87
- *name = g_strndup (font_name, ch - font_name);
90
+ *name = g_strdup (tmp_name);
91
*size = strtol (ch + 1, (char **) NULL, 10);
93
+ /* Temporary hack to make the font a bit bigger ;) */
94
+ /* *size = *size + 3; */