summaryrefslogtreecommitdiff
path: root/gui/glabel.c
diff options
context:
space:
mode:
authorWerner Almesberger <werner@almesberger.net>2016-08-25 12:08:47 -0300
committerWerner Almesberger <werner@almesberger.net>2016-08-25 12:08:47 -0300
commitaeffb42b88bf866861120e17b0796667a26434f7 (patch)
tree015a7fe438c5d1489db4b26358f9aa4ae13ccfdd /gui/glabel.c
parent56f3eeff1a9d074967630476fc0e47553d1bf27d (diff)
downloadeeshow-aeffb42b88bf866861120e17b0796667a26434f7.tar.gz
eeshow-aeffb42b88bf866861120e17b0796667a26434f7.tar.bz2
eeshow-aeffb42b88bf866861120e17b0796667a26434f7.zip
gui/: "struct gui_ctx" is now "struct gui"; also s/gui_ctx/gui/ in aoi_ctx
Diffstat (limited to 'gui/glabel.c')
-rw-r--r--gui/glabel.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/gui/glabel.c b/gui/glabel.c
index fb0cc82..9b8481d 100644
--- a/gui/glabel.c
+++ b/gui/glabel.c
@@ -43,7 +43,7 @@ struct glabel_aoi_ctx {
/* ----- Tools ------------------------------------------------------------- */
-static void eeschema_coord(const struct gui_ctx *gui,
+static void eeschema_coord(const struct gui *gui,
int x, int y, int *rx, int *ry)
{
GtkAllocation alloc;
@@ -65,7 +65,7 @@ static void glabel_dest_click(void *user)
}
-void dehover_glabel(struct gui_ctx *gui)
+void dehover_glabel(struct gui *gui)
{
overlay_remove_all(&gui->pop_overlays);
overlay_remove_all(&gui->pop_underlays);
@@ -74,7 +74,7 @@ void dehover_glabel(struct gui_ctx *gui)
}
-static void add_dest_header(struct gui_ctx *gui, const char *label)
+static void add_dest_header(struct gui *gui, const char *label)
{
struct overlay_style style = {
.font = BOLD_FONT,
@@ -96,7 +96,7 @@ static void add_dest_header(struct gui_ctx *gui, const char *label)
}
-static void add_dest_overlay(struct gui_ctx *gui, const char *label,
+static void add_dest_overlay(struct gui *gui, const char *label,
struct gui_sheet *sheet, unsigned n)
{
struct overlay_style style = {
@@ -134,7 +134,7 @@ static void add_dest_overlay(struct gui_ctx *gui, const char *label,
static bool pop_hover(void *user, bool on, int dx, int dy)
{
- struct gui_ctx *gui = user;
+ struct gui *gui = user;
if (!on)
dehover_glabel(gui);
@@ -142,7 +142,7 @@ static bool pop_hover(void *user, bool on, int dx, int dy)
}
-static void add_dest_frame(struct gui_ctx *gui)
+static void add_dest_frame(struct gui *gui)
{
int w, h;
@@ -187,7 +187,7 @@ static void add_dest_frame(struct gui_ctx *gui)
static bool hover_glabel(void *user, bool on, int dx, int dy)
{
struct glabel_aoi_ctx *aoi_ctx = user;
- struct gui_ctx *gui = aoi_ctx->sheet->gui;
+ struct gui *gui = aoi_ctx->sheet->gui;
const struct gui_sheet *curr_sheet = gui->curr_sheet;
const struct dwg_bbox *bbox = &aoi_ctx->bbox;