Skip to content

Commit

Permalink
xstuff: add is_using_x11 ()
Browse files Browse the repository at this point in the history
  • Loading branch information
wmww authored and lukefromdc committed Jan 29, 2019
1 parent e3846eb commit ab19ac4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions mate-panel/xstuff.c
Expand Up @@ -46,6 +46,11 @@ static gboolean xstuff_display_is_dead = FALSE;
#define ZOOM_STEPS 14
#define ZOOM_DELAY 10

gboolean is_using_x11 ()
{
return GDK_IS_X11_DISPLAY (gdk_display_get_default ());
}

typedef struct {
int size;
int size_start;
Expand Down
2 changes: 2 additions & 0 deletions mate-panel/xstuff.h
Expand Up @@ -12,6 +12,8 @@

#include "panel-enums-gsettings.h"

gboolean is_using_x11 (void);

void xstuff_zoom_animate (GtkWidget *widget,
cairo_surface_t *surface,
PanelOrientation orientation,
Expand Down

0 comments on commit ab19ac4

Please sign in to comment.