Skip to content

Commit 6bd7f99

Browse files
committed
Bug 1138295 - Don't define unused types and static variable when building with Gtk+3. r=karlt
1 parent 2e06852 commit 6bd7f99

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

toolkit/xre/nsNativeAppSupportUnix.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ typedef enum {
6767
GNOME_DIALOG_NORMAL
6868
} GnomeDialogType;
6969

70+
#if defined(MOZ_X11) && (MOZ_WIDGET_GTK == 2)
7071
typedef GnomeProgram * (*_gnome_program_init_fn)(const char *, const char *,
7172
const GnomeModuleInfo *, int,
7273
char **, const char *, ...);
@@ -76,6 +77,7 @@ typedef GnomeClient * (*_gnome_master_client_fn)(void);
7677
typedef void (*_gnome_client_set_restart_command_fn)(GnomeClient*, gint, gchar*[]);
7778

7879
static _gnome_client_set_restart_command_fn gnome_client_set_restart_command;
80+
#endif
7981

8082
gboolean save_yourself_cb(GnomeClient *client, gint phase,
8183
GnomeSaveStyle style, gboolean shutdown,

0 commit comments

Comments
 (0)