Skip to content

Commit

Permalink
Enclose pgtk changes within #ifdef
Browse files Browse the repository at this point in the history
* src/emacsgtkfixed.c:
* src/emacsgtkfixed.h:
  • Loading branch information
Yuuki Harano committed Nov 23, 2021
1 parent bc53310 commit a68575a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/emacsgtkfixed.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ static void emacs_fixed_get_preferred_width (GtkWidget *widget,
static void emacs_fixed_get_preferred_height (GtkWidget *widget,
gint *minimum,
gint *natural);
#ifndef HAVE_PGTK
static GType emacs_fixed_get_type (void);
#endif
G_DEFINE_TYPE (EmacsFixed, emacs_fixed, GTK_TYPE_FIXED)

static EmacsFixed *
Expand Down
4 changes: 4 additions & 0 deletions src/emacsgtkfixed.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,10 @@ struct frame;

G_BEGIN_DECLS

#ifdef HAVE_PGTK
#define EMACS_TYPE_FIXED (emacs_fixed_get_type ())
#define EMACS_IS_FIXED(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), EMACS_TYPE_FIXED))
#endif

struct frame;

Expand All @@ -47,7 +49,9 @@ struct _EmacsFixedClass
GtkFixedClass parent_class;
};

#ifdef HAVE_PGTK
extern GType emacs_fixed_get_type (void);
#endif

extern GtkWidget *emacs_fixed_new (struct frame *f);

Expand Down

0 comments on commit a68575a

Please sign in to comment.