Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Kurtakov2012-04-12 20:00:41 +0000
committerCarolyn MacLeod2013-04-09 14:49:30 +0000
commit76ef2572607d3d3ef3b02afd8e7de690e2990777 (patch)
tree78d85e12234a8bf8cff17a425fc7b46f70d8e150
parenta1b522154c755d83744a94bb03bf7fcdaab92056 (diff)
downloadeclipse.platform.swt-76ef2572607d3d3ef3b02afd8e7de690e2990777.tar.gz
eclipse.platform.swt-76ef2572607d3d3ef3b02afd8e7de690e2990777.tar.xz
eclipse.platform.swt-76ef2572607d3d3ef3b02afd8e7de690e2990777.zip
Rename gnome_24_* to gnome_*.
This is a leftover from the gnome/gnome_24 unificaton.
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT Program/gtk/org/eclipse/swt/program/Program.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Program/gtk/org/eclipse/swt/program/Program.java b/bundles/org.eclipse.swt/Eclipse SWT Program/gtk/org/eclipse/swt/program/Program.java
index fe391fc2d8..d48368cf58 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT Program/gtk/org/eclipse/swt/program/Program.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT Program/gtk/org/eclipse/swt/program/Program.java
@@ -367,7 +367,7 @@ static String[] parseCommand(String cmd) {
/**
* GNOME 2.4 - Execute the program for the given file.
*/
-boolean gnome_24_execute(String fileName) {
+boolean gnome_execute(String fileName) {
byte[] mimeTypeBuffer = Converter.wcsToMbcs(null, name, true);
long /*int*/ ptr = GNOME.gnome_vfs_mime_get_default_application(mimeTypeBuffer);
byte[] fileNameBuffer = Converter.wcsToMbcs(null, fileName, true);
@@ -383,7 +383,7 @@ boolean gnome_24_execute(String fileName) {
/**
* GNOME 2.4 - Launch the default program for the given file.
*/
-static boolean gnome_24_launch(String fileName) {
+static boolean gnome_launch(String fileName) {
byte[] fileNameBuffer = Converter.wcsToMbcs(null, fileName, true);
long /*int*/ uri = GNOME.gnome_vfs_make_uri_from_input_with_dirs(fileNameBuffer, GNOME.GNOME_VFS_MAKE_URI_DIR_CURRENT);
int result = GNOME.gnome_vfs_url_show(uri);
@@ -980,7 +980,7 @@ static boolean launch (Display display, String fileName, String workingDir) {
case DESKTOP_GIO:
if (gio_launch (fileName)) return true;
case DESKTOP_GNOME:
- if (gnome_24_launch (fileName)) return true;
+ if (gnome_launch (fileName)) return true;
default:
int index = fileName.lastIndexOf ('.');
if (index != -1) {
@@ -1042,7 +1042,7 @@ public boolean execute(String fileName) {
int desktop = getDesktop(display);
switch (desktop) {
case DESKTOP_GIO: return gio_execute(fileName);
- case DESKTOP_GNOME: return gnome_24_execute(fileName);
+ case DESKTOP_GNOME: return gnome_execute(fileName);
case DESKTOP_CDE: return cde_execute(fileName);
}
return false;

Back to the top