aboutsummaryrefslogtreecommitdiffstats
path: root/embed/mozilla/MozillaPrivate.cpp
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2005-07-25 05:37:01 +0800
committerChristian Persch <chpe@src.gnome.org>2005-07-25 05:37:01 +0800
commitae57c2b4273588704f9065b1cd0d445a8cd4a48f (patch)
treeeb78f9b7266623e044d603f6a4d6ddce0ea96297 /embed/mozilla/MozillaPrivate.cpp
parentdadad030dc244a53b6e275cb5b022ed676eaf51c (diff)
downloadgsoc2013-epiphany-ae57c2b4273588704f9065b1cd0d445a8cd4a48f.tar
gsoc2013-epiphany-ae57c2b4273588704f9065b1cd0d445a8cd4a48f.tar.gz
gsoc2013-epiphany-ae57c2b4273588704f9065b1cd0d445a8cd4a48f.tar.bz2
gsoc2013-epiphany-ae57c2b4273588704f9065b1cd0d445a8cd4a48f.tar.lz
gsoc2013-epiphany-ae57c2b4273588704f9065b1cd0d445a8cd4a48f.tar.xz
gsoc2013-epiphany-ae57c2b4273588704f9065b1cd0d445a8cd4a48f.tar.zst
gsoc2013-epiphany-ae57c2b4273588704f9065b1cd0d445a8cd4a48f.zip
Remove code to get the printer list, and fix a compile warning.
2005-07-24 Christian Persch <chpe@cvs.gnome.org> * embed/ephy-embed-single.c: (ephy_embed_single_open_window): * embed/ephy-embed-single.h: * embed/mozilla/EphyUtils.cpp: * embed/mozilla/MozillaPrivate.cpp: * embed/mozilla/MozillaPrivate.h: * embed/mozilla/mozilla-embed-single.cpp: Remove code to get the printer list, and fix a compile warning.
Diffstat (limited to 'embed/mozilla/MozillaPrivate.cpp')
-rw-r--r--embed/mozilla/MozillaPrivate.cpp45
1 files changed, 1 insertions, 44 deletions
diff --git a/embed/mozilla/MozillaPrivate.cpp b/embed/mozilla/MozillaPrivate.cpp
index 23e8a391b..a3dc3483f 100644
--- a/embed/mozilla/MozillaPrivate.cpp
+++ b/embed/mozilla/MozillaPrivate.cpp
@@ -24,11 +24,8 @@
#include "MozillaPrivate.h"
-#include <nsIPrintSettingsService.h>
-#include <nsIPrintOptions.h>
#include <nsIServiceManager.h>
-#include <nsISimpleEnumerator.h>
-#include <nsISupportsPrimitives.h>
+#include <nsString.h>
#include <nsPromiseFlatString.h>
#include "ephy-debug.h"
@@ -37,43 +34,3 @@
* example) in this file. Note that you cannot use embed strings here,
* the header inclusions will conflict.
*/
-
-GList *
-MozillaPrivate::GetPrinterList ()
-{
- GList *printers = NULL;
- nsresult rv = NS_OK;
-
- nsCOMPtr<nsIPrintSettingsService> pss =
- do_GetService("@mozilla.org/gfx/printsettings-service;1", &rv);
- NS_ENSURE_SUCCESS(rv, nsnull);
-
- nsCOMPtr<nsIPrintOptions> po = do_QueryInterface(pss, &rv);
- NS_ENSURE_SUCCESS(rv, nsnull);
-
- nsCOMPtr<nsISimpleEnumerator> avPrinters;
- rv = po->AvailablePrinters(getter_AddRefs(avPrinters));
- NS_ENSURE_SUCCESS(rv, nsnull);
-
- PRBool more = PR_FALSE;
-
- for (avPrinters->HasMoreElements(&more);
- more == PR_TRUE;
- avPrinters->HasMoreElements(&more))
- {
- nsCOMPtr<nsISupports> i;
- rv = avPrinters->GetNext(getter_AddRefs(i));
- NS_ENSURE_SUCCESS(rv, nsnull);
-
- nsCOMPtr<nsISupportsString> printer = do_QueryInterface(i, &rv);
- NS_ENSURE_SUCCESS(rv, nsnull);
-
- nsAutoString data;
- rv = printer->GetData(data);
- NS_ENSURE_SUCCESS(rv, nsnull);
-
- printers = g_list_prepend (printers, g_strdup (NS_ConvertUCS2toUTF8 (data).get()));
- }
-
- return g_list_reverse (printers);
-}