summaryrefslogtreecommitdiffstats
path: root/src/window.c
diff options
context:
space:
mode:
authorPatrick McDermott <pj@pehjota.net>2017-10-07 15:41:01 (EDT)
committer Patrick McDermott <pj@pehjota.net>2017-10-07 15:41:01 (EDT)
commitffa635fee01ea832b956700c3d7ab62a80b8b6f8 (patch)
treef09140e7555c6683acb55f1048ee30aeb46332a5 /src/window.c
parent961ae14eda6918cc10f12c1e82b2109b5de377b8 (diff)
downloadmarquee-ffa635fee01ea832b956700c3d7ab62a80b8b6f8.zip
marquee-ffa635fee01ea832b956700c3d7ab62a80b8b6f8.tar.gz
marquee-ffa635fee01ea832b956700c3d7ab62a80b8b6f8.tar.bz2
s/__attribute__((unused))/G_GNUC_UNUSED/
And rewrap lines. G_GNUC_UNUSED expands to nothing on compilers other than GCC 2.4+.
Diffstat (limited to 'src/window.c')
-rw-r--r--src/window.c21
1 files changed, 10 insertions, 11 deletions
diff --git a/src/window.c b/src/window.c
index 8c756e9..65d2dc1 100644
--- a/src/window.c
+++ b/src/window.c
@@ -28,8 +28,8 @@
#include "tab.h"
static void
-is_maximized_cb(GtkWindow *window,
- GParamSpec __attribute__((unused)) *paramspec, MqConfig *config)
+is_maximized_cb(GtkWindow *window, GParamSpec G_GNUC_UNUSED *paramspec,
+ MqConfig *config)
{
mq_config_set_boolean(config, "window.maximized",
gtk_window_is_maximized(window));
@@ -37,8 +37,8 @@ is_maximized_cb(GtkWindow *window,
}
static void
-configure_event_cb(GtkWindow __attribute__((unused)) *window,
- GdkEventConfigure *event, MqConfig *config)
+configure_event_cb(GtkWindow G_GNUC_UNUSED *window, GdkEventConfigure *event,
+ MqConfig *config)
{
mq_config_set_integer(config, "window.width", event->width);
mq_config_set_integer(config, "window.height", event->height);
@@ -46,7 +46,7 @@ configure_event_cb(GtkWindow __attribute__((unused)) *window,
}
static void
-destroy_cb(GtkWidget __attribute__((unused)) *widget, MqWindow *window)
+destroy_cb(GtkWidget G_GNUC_UNUSED *widget, MqWindow *window)
{
mq_application_delete_window(window->application, window);
}
@@ -62,9 +62,8 @@ set_title(MqWindow *window, const gchar *title)
}
static void
-switch_page_cb(GtkNotebook __attribute__((unused)) *notebook,
- GtkWidget __attribute__((unused)) *page, guint page_num,
- MqWindow *window)
+switch_page_cb(GtkNotebook G_GNUC_UNUSED *notebook,
+ GtkWidget G_GNUC_UNUSED *page, guint page_num, MqWindow *window)
{
window->current_tab = ++page_num;
@@ -73,9 +72,9 @@ switch_page_cb(GtkNotebook __attribute__((unused)) *notebook,
}
static void
-update_positions(GtkNotebook __attribute__((unused)) *notebook,
- GtkWidget __attribute__((unused)) *child,
- guint __attribute__((unused)) page_num, MqWindow *window)
+update_positions(GtkNotebook G_GNUC_UNUSED *notebook,
+ GtkWidget G_GNUC_UNUSED *child, guint G_GNUC_UNUSED page_num,
+ MqWindow *window)
{
/* TODO: Once MqWindow has a data structure for tabs, loop through them
* all and call mq_tab_update_position(). */