Commit b50dcbec authored by Nick Schermer's avatar Nick Schermer

* Hide the ebox window, so you can see the panel background.

	* Don't crash when no icons were found.
	* Show a "No Data" label when nothing has been configured.
	* panel-plugin/sample.c: Hmm, chinese translation updates that
	  didn't get picked up by my previous commit. Should have been in
	  rc1, sorry.
	* ChangeLog: Update ChangeLog's for release
	* ChangeLog: Update ChangeLog's for release
	* ChangeLog: Update ChangeLogs
	* Makefile.in, aclocal.m4, config.h.in, configure, ltconfig,
	  ltmain.sh, panel-plugin/Makefile.in: libtool update
	* AUTHORS, COPYING, INSTALL, autogen.sh, config.guess, config.sub,
	  ltconfig, ltcf-c.sh, ltmain.sh, Makefile.in, aclocal.m4, compile,
	  config.h.in, depcomp, install-sh, missing, mkinstalldirs,
	  Makefile.am, README, configure, configure.ac, m4/debug.m4,
	  m4/depends.m4, m4/i18n.m4, panel-plugin/Makefile.am,
	  panel-plugin/Makefile.in, panel-plugin/sample.c: Initial import of
	  the sample panel plugin.
	* AUTHORS, COPYING, INSTALL, autogen.sh, config.guess, config.sub,
	  ltconfig, ltcf-c.sh, ltmain.sh, Makefile.in, aclocal.m4, compile,
	  config.h.in, depcomp, install-sh, missing, mkinstalldirs,
	  Makefile.am, README, configure, configure.ac, m4/debug.m4,
	  m4/depends.m4, m4/i18n.m4, panel-plugin/Makefile.am,

(Old svn revision: 2555)
parent ef5caaca
2007-03-14 Nick Schermer <nick@xfce.org>
* Hide the ebox window, so you can see the panel background.
* Don't crash when no icons were found.
* Show a "No Data" label when nothing has been configured.
2007-01-19 Nick Schermer <nick@xfce.org>
* Remove line in the translations. Was a typo.
......@@ -116,43 +122,43 @@
* update with version from Jasper - now compatible with Xfce-4.4
2003-07-11 Jasper Huijsmans <jasper@xfce.org>
* panel-plugin/sample.c: Hmm, chinese translation updates that
didn't get picked up by my previous commit. Should have been in
rc1, sorry.
* panel-plugin/sample.c: Hmm, chinese translation updates that
didn't get picked up by my previous commit. Should have been in
rc1, sorry.
2003-07-11 Jasper Huijsmans <jasper@xfce.org>
* ChangeLog: Update ChangeLog's for release
* ChangeLog: Update ChangeLog's for release
2003-07-10 Jasper Huijsmans <jasper@xfce.org>
* ChangeLog: Update ChangeLog's for release
* ChangeLog: Update ChangeLog's for release
2003-07-06 Jasper Huijsmans <jasper@xfce.org>
* ChangeLog: Update ChangeLogs
* ChangeLog: Update ChangeLogs
2003-07-06 Jasper Huijsmans <jasper@xfce.org>
* Makefile.in, aclocal.m4, config.h.in, configure, ltconfig,
ltmain.sh, panel-plugin/Makefile.in: libtool update
* Makefile.in, aclocal.m4, config.h.in, configure, ltconfig,
ltmain.sh, panel-plugin/Makefile.in: libtool update
2003-07-02 Benedikt Meurer <benny@xfce.org>
* AUTHORS, COPYING, INSTALL, autogen.sh, config.guess, config.sub,
ltconfig, ltcf-c.sh, ltmain.sh, Makefile.in, aclocal.m4, compile,
config.h.in, depcomp, install-sh, missing, mkinstalldirs,
Makefile.am, README, configure, configure.ac, m4/debug.m4,
m4/depends.m4, m4/i18n.m4, panel-plugin/Makefile.am,
panel-plugin/Makefile.in, panel-plugin/sample.c: Initial import of
the sample panel plugin.
* AUTHORS, COPYING, INSTALL, autogen.sh, config.guess, config.sub,
ltconfig, ltcf-c.sh, ltmain.sh, Makefile.in, aclocal.m4, compile,
config.h.in, depcomp, install-sh, missing, mkinstalldirs,
Makefile.am, README, configure, configure.ac, m4/debug.m4,
m4/depends.m4, m4/i18n.m4, panel-plugin/Makefile.am,
panel-plugin/Makefile.in, panel-plugin/sample.c: Initial import of
the sample panel plugin.
2003-07-02 Benedikt Meurer <benny@xfce.org>
* AUTHORS, COPYING, INSTALL, autogen.sh, config.guess, config.sub,
ltconfig, ltcf-c.sh, ltmain.sh, Makefile.in, aclocal.m4, compile,
config.h.in, depcomp, install-sh, missing, mkinstalldirs,
Makefile.am, README, configure, configure.ac, m4/debug.m4,
m4/depends.m4, m4/i18n.m4, panel-plugin/Makefile.am,
* AUTHORS, COPYING, INSTALL, autogen.sh, config.guess, config.sub,
ltconfig, ltcf-c.sh, ltmain.sh, Makefile.in, aclocal.m4, compile,
config.h.in, depcomp, install-sh, missing, mkinstalldirs,
Makefile.am, README, configure, configure.ac, m4/debug.m4,
m4/depends.m4, m4/i18n.m4, panel-plugin/Makefile.am,
panel-plugin/Makefile.in, panel-plugin/sample.c: Initial revision
/* $Id$
*
* Copyright (c) 2003-2007 Xfce Development Team
*
*
* 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
* the Free Software Foundation; either version 2 of the License, or
......@@ -46,13 +46,12 @@ get_icon (const gchar *number,
THEMESDIR, G_DIR_SEPARATOR_S,
DEFAULT_W_THEME, G_DIR_SEPARATOR_S, number);
image = gdk_pixbuf_new_from_file_at_scale (filename,
width, height, TRUE, NULL);
image = gdk_pixbuf_new_from_file_at_scale (filename, width, height, TRUE, NULL);
g_free (filename);
if (G_UNLIKELY (!image))
g_warning ("Unable to open image: %s", filename);
if (!image)
g_warning ("Weather Plugin: No image found");
g_free (filename);
return image;
}
/* $Id$
*
* Copyright (c) 2003-2007 Xfce Development Team
*
*
* 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
* the Free Software Foundation; either version 2 of the License, or
......@@ -359,7 +359,9 @@ gtk_scrollbox_finalize (GObject *gobject)
{
lbl = (Label *) g_ptr_array_index (self->labels, i);
g_object_unref (G_OBJECT (lbl->pixmap));
if (lbl->pixmap)
g_object_unref (G_OBJECT (lbl->pixmap));
g_free (lbl->msg);
}
g_ptr_array_free (self->labels, TRUE);
......@@ -415,8 +417,6 @@ gtk_scrollbox_instance_init (GTypeInstance *instance,
{
GtkScrollbox *self = (GtkScrollbox *) instance;
/* GTK_WIDGET_SET_FLAGS (GTK_WIDGET(self), GTK_NO_WINDOW);*/
self->draw_timeout = 0;
self->labels = g_ptr_array_new ();
self->pixmap = NULL;
......
/* $Id$
*
* Copyright (c) 2003-2007 Xfce Development Team
*
*
* 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
* the Free Software Foundation; either version 2 of the License, or
......@@ -193,16 +193,20 @@ make_forecast (xml_dayf *weatherdata,
icon = get_icon (get_data_f (weatherdata, ICON_D), GTK_ICON_SIZE_DIALOG);
icon_d = gtk_image_new_from_pixbuf (icon);
g_object_unref (G_OBJECT (icon));
box_d = gtk_event_box_new ();
gtk_container_add (GTK_CONTAINER (box_d), icon_d);
if (G_LIKELY (icon))
g_object_unref (G_OBJECT (icon));
icon = get_icon (get_data_f (weatherdata, ICON_N), GTK_ICON_SIZE_DIALOG);
icon_n = gtk_image_new_from_pixbuf (icon);
g_object_unref (G_OBJECT (icon));
box_n = gtk_event_box_new ();
gtk_container_add (GTK_CONTAINER (box_n), icon_n);
if (G_LIKELY (icon))
g_object_unref (G_OBJECT (icon));
if (G_UNLIKELY (!tooltips))
tooltips = gtk_tooltips_new ();
......@@ -386,7 +390,9 @@ create_summary_window (xml_weather *data,
icon = get_icon ("99", GTK_ICON_SIZE_DIALOG);
gtk_window_set_icon (GTK_WINDOW (window), icon);
g_object_unref (G_OBJECT (icon));
if (G_LIKELY (icon))
g_object_unref (G_OBJECT (icon));
notebook = gtk_notebook_new ();
gtk_container_set_border_width (GTK_CONTAINER (notebook), BORDER);
......
/* $Id$
*
* Copyright (c) 2003-2007 Xfce Development Team
*
*
* 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
* the Free Software Foundation; either version 2 of the License, or
......@@ -213,7 +213,9 @@ set_icon_error (xfceweather_data *data)
GdkPixbuf *icon = get_icon ("99", data->iconsize);
gtk_image_set_from_pixbuf (GTK_IMAGE (data->iconimage), icon);
g_object_unref (G_OBJECT (icon));
if (G_LIKELY (icon))
g_object_unref (G_OBJECT (icon));
if (data->weatherdata)
{
......@@ -221,6 +223,9 @@ set_icon_error (xfceweather_data *data)
data->weatherdata = NULL;
}
gtk_scrollbox_set_label (GTK_SCROLLBOX (data->scrollbox), -1, "<span size=\"small\">No Data</span>");
gtk_scrollbox_enablecb (GTK_SCROLLBOX (data->scrollbox), TRUE);
gtk_tooltips_set_tip (data->tooltips, data->tooltipbox,
_("Cannot update weather data"), NULL);
}
......@@ -250,7 +255,8 @@ set_icon_current (xfceweather_data *data)
icon = get_icon (get_data (data->weatherdata, WICON), data->iconsize);
gtk_image_set_from_pixbuf (GTK_IMAGE (data->iconimage), icon);
g_object_unref (G_OBJECT (icon));
if (G_LIKELY (icon))
g_object_unref (G_OBJECT (icon));
gtk_tooltips_set_tip (data->tooltips, data->tooltipbox,
translate_desc (get_data (data->weatherdata, TRANS)),
......@@ -705,7 +711,9 @@ xfceweather_create_control (XfcePanelPlugin *plugin)
icon = get_icon ("99", GTK_ICON_SIZE_SMALL);
data->iconimage = gtk_image_new_from_pixbuf (icon);
gtk_misc_set_alignment (GTK_MISC (data->iconimage), 0.5, 1);
g_object_unref (G_OBJECT (icon));
if (G_LIKELY (icon))
g_object_unref (G_OBJECT (icon));
data->labels = g_array_new (FALSE, TRUE, sizeof (datas));
......@@ -717,6 +725,7 @@ xfceweather_create_control (XfcePanelPlugin *plugin)
data->tooltipbox = gtk_event_box_new ();
gtk_container_add (GTK_CONTAINER (data->tooltipbox), vbox);
gtk_widget_show_all (data->tooltipbox);
GTK_WIDGET_SET_FLAGS (GTK_WIDGET(data->tooltipbox), GTK_NO_WINDOW);
xfce_panel_plugin_add_action_widget (plugin, data->tooltipbox);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment