[Xfce4-commits] <xfce4-weather-plugin:master> Add const qualifiers where appropriate: weather-summary
Harald Judt
noreply at xfce.org
Thu Aug 2 23:08:14 CEST 2012
Updating branch refs/heads/master
to e954444226aad2ef2cc33736e4c9ed3e06a979b0 (commit)
from e5f3ad83d25c3df1be763cc36985c242e2cb657d (commit)
commit e954444226aad2ef2cc33736e4c9ed3e06a979b0
Author: Harald Judt <h.judt at gmx.at>
Date: Thu Aug 2 22:56:35 2012 +0200
Add const qualifiers where appropriate: weather-summary
panel-plugin/weather-summary.c | 24 ++++++++++++------------
1 files changed, 12 insertions(+), 12 deletions(-)
diff --git a/panel-plugin/weather-summary.c b/panel-plugin/weather-summary.c
index c6de5cc..d129c3d 100644
--- a/panel-plugin/weather-summary.c
+++ b/panel-plugin/weather-summary.c
@@ -217,9 +217,9 @@ get_logo_path(void)
static void
-logo_fetched (gboolean succeed,
+logo_fetched (const gboolean succeed,
gchar *result,
- size_t len,
+ const size_t len,
gpointer user_data)
{
if (succeed && result) {
@@ -485,8 +485,8 @@ create_summary_tab(xfceweather_data *data)
static GtkWidget *
-add_forecast_cell(GtkWidget *widget,
- GdkColor *color)
+add_forecast_cell(const GtkWidget *widget,
+ const GdkColor *color)
{
GtkWidget *ebox;
@@ -503,9 +503,9 @@ add_forecast_cell(GtkWidget *widget,
static GtkWidget *
-add_forecast_header(gchar *text,
- gdouble angle,
- GdkColor *color)
+add_forecast_header(const gchar *text,
+ const gdouble angle,
+ const GdkColor *color)
{
GtkWidget *label, *align;
gchar *str;
@@ -532,9 +532,9 @@ make_forecast(xfceweather_data *data)
GtkWidget *table, *ebox, *box, *align;
GtkWidget *forecast_box, *label, *image;
GdkPixbuf *icon;
- GdkColor black = {0, 0x0000, 0x0000, 0x0000};
- GdkColor lightbg = {0, 0xeaea, 0xeaea, 0xeaea};
- GdkColor darkbg = {0, 0x6666, 0x6666, 0x6666};
+ const GdkColor black = {0, 0x0000, 0x0000, 0x0000};
+ const GdkColor lightbg = {0, 0xeaea, 0xeaea, 0xeaea};
+ const GdkColor darkbg = {0, 0x6666, 0x6666, 0x6666};
gint i, weekday, daytime;
gchar *dayname, *wind_speed, *wind_direction, *value, *rawvalue;
xml_time *fcdata;
@@ -729,8 +729,8 @@ create_forecast_tab(xfceweather_data *data,
static void
-summary_dialog_response(GtkWidget *dlg,
- gint response,
+summary_dialog_response(const GtkWidget *dlg,
+ const gint response,
GtkWidget *window)
{
if (response == GTK_RESPONSE_ACCEPT)
More information about the Xfce4-commits
mailing list