summaryrefslogtreecommitdiffstats
path: root/src/tab.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/tab.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/tab.c')
-rw-r--r--src/tab.c20
1 files changed, 9 insertions, 11 deletions
diff --git a/src/tab.c b/src/tab.c
index 0c77425..fc6d414 100644
--- a/src/tab.c
+++ b/src/tab.c
@@ -123,21 +123,21 @@ append_sibling(MqTab *new_node, MqTab *prev_sibling)
}
static void
-reload_tab_clicked_cb(GtkWidget __attribute__((unused)) *button, MqTab *tab)
+reload_tab_clicked_cb(GtkWidget G_GNUC_UNUSED *button, MqTab *tab)
{
webkit_web_view_reload(tab->web_view);
gtk_widget_hide(tab->popover);
}
static void
-new_tab_clicked_cb(GtkWidget __attribute__((unused)) *button, MqTab *tab)
+new_tab_clicked_cb(GtkWidget G_GNUC_UNUSED *button, MqTab *tab)
{
mq_tab_new(NULL, tab);
gtk_widget_hide(tab->popover);
}
static void
-new_window_clicked_cb(GtkWidget __attribute__((unused)) *button, MqTab *tab)
+new_window_clicked_cb(GtkWidget G_GNUC_UNUSED *button, MqTab *tab)
{
mq_application_add_window(tab->application, NULL);
gtk_widget_hide(tab->popover);
@@ -180,10 +180,8 @@ create_tree_model(MqTab *tab)
}
static void
-row_activated_cb(GtkTreeView __attribute__((unused)) *tree_view,
- GtkTreePath *tree_path,
- GtkTreeViewColumn __attribute__((unused)) *tree_view_column,
- MqTab *tab)
+row_activated_cb(GtkTreeView G_GNUC_UNUSED *tree_view, GtkTreePath *tree_path,
+ GtkTreeViewColumn G_GNUC_UNUSED *tree_view_column, MqTab *tab)
{
gint *indices;
gint depth;
@@ -386,8 +384,8 @@ mq_tab_populate_tab(MqTab *tab)
}
static void
-favicon_cb(WebKitWebView __attribute__((unused)) *web_view,
- GParamSpec __attribute__((unused)) *paramspec, MqTab *tab)
+favicon_cb(WebKitWebView G_GNUC_UNUSED *web_view,
+ GParamSpec G_GNUC_UNUSED *paramspec, MqTab *tab)
{
cairo_surface_t *surface;
GdkPixbuf *pixbuf;
@@ -410,8 +408,8 @@ favicon_cb(WebKitWebView __attribute__((unused)) *web_view,
}
static void
-title_cb(WebKitWebView __attribute__((unused)) *web_view,
- GParamSpec __attribute__((unused)) *paramspec, MqTab *tab)
+title_cb(WebKitWebView G_GNUC_UNUSED *web_view,
+ GParamSpec G_GNUC_UNUSED *paramspec, MqTab *tab)
{
tab->title = webkit_web_view_get_title(tab->web_view);
if (tab->scrolling) {