|
24 | 24 | #include <string.h>
|
25 | 25 | #include <stdlib.h>
|
26 | 26 | #include <stdint.h>
|
27 |
| -#include <math.h> |
| 27 | +#include "cairo.h" |
28 | 28 | #include "main.h"
|
29 | 29 | #include "input.h"
|
30 | 30 | #include "callbacks.h"
|
@@ -162,7 +162,6 @@ void on_monitors_changed ( GdkScreen *screen,
|
162 | 162 | }
|
163 | 163 |
|
164 | 164 |
|
165 |
| - |
166 | 165 | void on_composited_changed ( GdkScreen *screen,
|
167 | 166 | gpointer user_data)
|
168 | 167 | {
|
@@ -197,7 +196,6 @@ void on_composited_changed ( GdkScreen *screen,
|
197 | 196 | }
|
198 | 197 |
|
199 | 198 |
|
200 |
| - |
201 | 199 | void on_clientapp_selection_get (GtkWidget *widget,
|
202 | 200 | GtkSelectionData *selection_data,
|
203 | 201 | guint info,
|
@@ -569,7 +567,6 @@ void on_mainapp_selection_get (GtkWidget *widget,
|
569 | 567 | else
|
570 | 568 | uri = "NOK";
|
571 | 569 |
|
572 |
| - |
573 | 570 | gtk_selection_data_set (selection_data,
|
574 | 571 | gtk_selection_data_get_target(selection_data),
|
575 | 572 | 8, (guchar*)uri, strlen (uri));
|
@@ -729,6 +726,7 @@ void on_mainapp_selection_received (GtkWidget *widget,
|
729 | 726 | style.width, style.arrowsize,
|
730 | 727 | style.minwidth, style.maxwidth);
|
731 | 728 |
|
| 729 | + cairo_destroy(context->paint_ctx); |
732 | 730 | g_free(context->paint_color);
|
733 | 731 | *context = *new_context;
|
734 | 732 | g_free(new_context);
|
@@ -777,7 +775,6 @@ void on_device_added (GdkDeviceManager *device_manager,
|
777 | 775 | }
|
778 | 776 |
|
779 | 777 |
|
780 |
| - |
781 | 778 | gboolean on_toggle_paint(GtkWidget *widget,
|
782 | 779 | GdkEventButton *ev,
|
783 | 780 | gpointer user_data)
|
|
0 commit comments