summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorNick Schermer <nick@xfce.org>2010-02-26 14:08:35 +0100
committerNick Schermer <nick@xfce.org>2010-02-26 14:11:57 +0100
commit5362a49a7129e15763689c205dc1c8fd6ba2bf8d (patch)
tree0432ad2dc676fc96826a6a67ab8cb637a73fbb93 /common
parentdcea6980f5f90c2c5dfc5f08698fb812f720c6f8 (diff)
downloadxfce4-panel-5362a49a7129e15763689c205dc1c8fd6ba2bf8d.tar.gz
Rename panel-builder to panel-utils.
Diffstat (limited to 'common')
-rw-r--r--common/Makefile.am4
-rw-r--r--common/panel-utils.c (renamed from common/panel-builder.c)26
-rw-r--r--common/panel-utils.h (renamed from common/panel-builder.h)6
3 files changed, 18 insertions, 18 deletions
diff --git a/common/Makefile.am b/common/Makefile.am
index 331e57f0..18fecf34 100644
--- a/common/Makefile.am
+++ b/common/Makefile.am
@@ -12,8 +12,8 @@ noinst_LTLIBRARIES = \
libpanel_common_la_SOURCES = \
panel-debug.c \
panel-debug.h \
- panel-builder.c \
- panel-builder.h \
+ panel-utils.c \
+ panel-utils.h \
panel-xfconf.c \
panel-xfconf.h
diff --git a/common/panel-builder.c b/common/panel-utils.c
index e911c336..b90541c5 100644
--- a/common/panel-builder.c
+++ b/common/panel-utils.c
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2009 Nick Schermer <nick@xfce.org>
+ * Copyright (C) 2009-2010 Nick Schermer <nick@xfce.org>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -28,13 +28,13 @@
#include <exo/exo.h>
#include <common/panel-private.h>
-#include <common/panel-builder.h>
+#include <common/panel-utils.h>
static void
-panel_builder_help_button_clicked (GtkWidget *button,
- XfcePanelPlugin *panel_plugin)
+panel_utils_help_button_clicked (GtkWidget *button,
+ XfcePanelPlugin *panel_plugin)
{
GtkWidget *toplevel;
@@ -42,7 +42,7 @@ panel_builder_help_button_clicked (GtkWidget *button,
panel_return_if_fail (GTK_IS_WIDGET (button));
toplevel = gtk_widget_get_toplevel (button);
- panel_builder_show_help (GTK_WINDOW (toplevel),
+ panel_utils_show_help (GTK_WINDOW (toplevel),
xfce_panel_plugin_get_name (panel_plugin),
"properties");
}
@@ -50,10 +50,10 @@ panel_builder_help_button_clicked (GtkWidget *button,
GtkBuilder *
-panel_builder_new (XfcePanelPlugin *panel_plugin,
- const gchar *buffer,
- gsize length,
- GObject **dialog_return)
+panel_utils_builder_new (XfcePanelPlugin *panel_plugin,
+ const gchar *buffer,
+ gsize length,
+ GObject **dialog_return)
{
GError *error = NULL;
GtkBuilder *builder;
@@ -84,7 +84,7 @@ panel_builder_new (XfcePanelPlugin *panel_plugin,
button = gtk_builder_get_object (builder, "help-button");
if (G_LIKELY (button != NULL))
g_signal_connect (G_OBJECT (button), "clicked",
- G_CALLBACK (panel_builder_help_button_clicked), panel_plugin);
+ G_CALLBACK (panel_utils_help_button_clicked), panel_plugin);
if (G_LIKELY (dialog_return != NULL))
*dialog_return = dialog;
@@ -110,9 +110,9 @@ panel_builder_new (XfcePanelPlugin *panel_plugin,
void
-panel_builder_show_help (GtkWindow *parent,
- const gchar *page,
- const gchar *offset)
+panel_utils_show_help (GtkWindow *parent,
+ const gchar *page,
+ const gchar *offset)
{
GdkScreen *screen;
gchar *filename;
diff --git a/common/panel-builder.h b/common/panel-utils.h
index d53f3dd7..b10565be 100644
--- a/common/panel-builder.h
+++ b/common/panel-utils.h
@@ -23,16 +23,16 @@
#include <libxfce4panel/libxfce4panel.h>
/* Hook to make sure GtkBuilder knows are the XfceTitledDialog object */
-#define PANEL_BUILDER_LINK_4UI \
+#define PANEL_UTILS_LINK_4UI \
if (xfce_titled_dialog_get_type () == 0) \
return;
-GtkBuilder *panel_builder_new (XfcePanelPlugin *panel_plugin,
+GtkBuilder *panel_utils_builder_new (XfcePanelPlugin *panel_plugin,
const gchar *buffer,
gsize length,
GObject **dialog_return) G_GNUC_MALLOC G_GNUC_WARN_UNUSED_RESULT;
-void panel_builder_show_help (GtkWindow *parent,
+void panel_utils_show_help (GtkWindow *parent,
const gchar *page,
const gchar *offset);