[gnome-bluetooth] Remove useless BlingColor code
- From: Bastien Nocera <hadess src gnome org>
- To: svn-commits-list gnome org
- Subject: [gnome-bluetooth] Remove useless BlingColor code
- Date: Tue, 21 Jul 2009 01:54:26 +0000 (UTC)
commit 4acafdc2ba0f8ae2ca168a25939e89d2311ce158
Author: Bastien Nocera <hadess hadess net>
Date: Tue Jul 21 01:42:25 2009 +0100
Remove useless BlingColor code
lib/Makefile.am | 2 -
lib/bling-color.c | 86 ---------------------------------------------------
lib/bling-color.h | 35 ---------------------
lib/bling-spinner.c | 18 +----------
4 files changed, 1 insertions(+), 140 deletions(-)
---
diff --git a/lib/Makefile.am b/lib/Makefile.am
index 0a6ecf2..5a8d6c4 100644
--- a/lib/Makefile.am
+++ b/lib/Makefile.am
@@ -14,7 +14,6 @@ libcommon_la_SOURCES = \
obex-agent.h obex-agent.c \
bluetooth-plugin-manager.c \
bluetooth-plugin-manager.h \
- bling-color.c bling-color.h \
bling-spinner.c bling-spinner.h \
bluetooth-enums.h
libcommon_la_LIBADD = $(COMMON_LIBS)
@@ -27,7 +26,6 @@ libgnome_bluetooth_la_SOURCES = \
marshal.h marshal.c \
gnome-bluetooth-enum-types.h \
gnome-bluetooth-enum-types.c \
- bling-color.c bling-color.h \
bling-spinner.c bling-spinner.h \
bluetooth-chooser.c bluetooth-chooser.h \
bluetooth-chooser-button.c bluetooth-chooser-button.h
diff --git a/lib/bling-spinner.c b/lib/bling-spinner.c
index 4bcffe5..32702b5 100644
--- a/lib/bling-spinner.c
+++ b/lib/bling-spinner.c
@@ -31,7 +31,6 @@
#include <math.h>
#include "bling-spinner.h"
-#include "bling-color.h"
#define BLING_SPINNER_GET_PRIVATE(obj) (G_TYPE_INSTANCE_GET_PRIVATE ((obj), BLING_TYPE_SPINNER, BlingSpinnerPrivate))
@@ -40,7 +39,6 @@ G_DEFINE_TYPE (BlingSpinner, bling_spinner, GTK_TYPE_DRAWING_AREA);
enum
{
PROP_0,
- PROP_COLOR,
PROP_NUM_LINES
};
@@ -48,12 +46,10 @@ enum
struct _BlingSpinnerPrivate
{
/* state */
- gboolean have_alpha;
guint current;
guint timeout;
/* appearance */
- BlingColor color;
guint lines;
};
@@ -141,12 +137,6 @@ bling_spinner_class_init(BlingSpinnerClass *klass)
widget_class->expose_event = bling_spinner_expose;
widget_class->screen_changed = bling_spinner_screen_changed;
- g_object_class_install_property(gobject_class, PROP_COLOR,
- g_param_spec_string("color", "Color",
- "Main color",
- "454545C8",
- G_PARAM_CONSTRUCT | G_PARAM_WRITABLE));
-
g_object_class_install_property(gobject_class, PROP_NUM_LINES,
g_param_spec_uint("lines", "Num Lines",
"The number of lines to animate",
@@ -206,11 +196,8 @@ bling_spinner_screen_changed (GtkWidget* widget, GdkScreen* old_screen)
new_screen = gtk_widget_get_screen (widget);
colormap = gdk_screen_get_rgba_colormap (new_screen);
- if (!colormap) {
+ if (!colormap)
colormap = gdk_screen_get_rgb_colormap (new_screen);
- priv->have_alpha = FALSE;
- } else
- priv->have_alpha = TRUE;
gtk_widget_set_colormap (widget, colormap);
}
@@ -247,9 +234,6 @@ bling_spinner_set_property(GObject *gobject, guint prop_id,
switch (prop_id)
{
- case PROP_COLOR:
- bling_color_parse_string (&priv->color, g_value_get_string(value));
- break;
case PROP_NUM_LINES:
priv->lines = g_value_get_uint(value);
break;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]