diff options
author | 2010-10-02 22:03:23 +0200 | |
---|---|---|
committer | 2010-10-02 22:03:23 +0200 | |
commit | 16fffae444ad5632b446525894b892928c1a1a39 (patch) | |
tree | cf521f2f0ebc0c472adbaa9b6fbd231bdae06b38 /plugins/gtkui/ddbequalizer.c | |
parent | b830fbb8b91ea8d2946aba4209ef2a9c39ec7220 (diff) |
regenerated vala sources with valac 0.10.0
Diffstat (limited to 'plugins/gtkui/ddbequalizer.c')
-rw-r--r-- | plugins/gtkui/ddbequalizer.c | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/plugins/gtkui/ddbequalizer.c b/plugins/gtkui/ddbequalizer.c index cf1c10eb..201277ad 100644 --- a/plugins/gtkui/ddbequalizer.c +++ b/plugins/gtkui/ddbequalizer.c @@ -1,4 +1,4 @@ -/* ddbequalizer.c generated by valac, the Vala compiler +/* ddbequalizer.c generated by valac 0.10.0, the Vala compiler * generated from ddbequalizer.vala, do not modify */ /* @@ -45,8 +45,8 @@ typedef struct _DdbEqualizerClass DdbEqualizerClass; typedef struct _DdbEqualizerPrivate DdbEqualizerPrivate; #define _gdk_cursor_unref0(var) ((var == NULL) ? NULL : (var = (gdk_cursor_unref (var), NULL))) #define _g_free0(var) (var = (g_free (var), NULL)) -#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL))) #define _pango_font_description_free0(var) ((var == NULL) ? NULL : (var = (pango_font_description_free (var), NULL))) +#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL))) struct _DdbEqualizer { GtkDrawingArea parent_instance; @@ -73,7 +73,7 @@ struct _DdbEqualizerPrivate { static gpointer ddb_equalizer_parent_class = NULL; -GType ddb_equalizer_get_type (void); +GType ddb_equalizer_get_type (void) G_GNUC_CONST; #define DDB_EQUALIZER_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), DDB_TYPE_EQUALIZER, DdbEqualizerPrivate)) enum { DDB_EQUALIZER_DUMMY_PROPERTY @@ -82,8 +82,8 @@ enum { #define DDB_EQUALIZER_spot_size 3 static gboolean ddb_equalizer_real_configure_event (GtkWidget* base, GdkEventConfigure* event); static void ddb_equalizer_real_realize (GtkWidget* base); -static inline double ddb_equalizer_scale (DdbEqualizer* self, double val); static gboolean ddb_equalizer_real_expose_event (GtkWidget* base, GdkEventExpose* event); +static inline double ddb_equalizer_scale (DdbEqualizer* self, double val); static gboolean ddb_equalizer_in_curve_area (DdbEqualizer* self, double x, double y); static void ddb_equalizer_update_eq_drag (DdbEqualizer* self, double x, double y); static gboolean ddb_equalizer_real_button_press_event (GtkWidget* base, GdkEventButton* event); @@ -137,8 +137,8 @@ static gboolean ddb_equalizer_real_expose_event (GtkWidget* base, GdkEventExpose gint width; gint height; GdkDrawable* d; - GdkGCValues _tmp3_; GdkGCValues _tmp2_ = {0}; + GdkGCValues _tmp3_; GdkGC* gc; double step; gint i = 0; @@ -154,14 +154,14 @@ static gboolean ddb_equalizer_real_expose_event (GtkWidget* base, GdkEventExpose char* _tmp10_; const char* _tmp11_; char* _tmp12_; - GdkRectangle _tmp14_; GdkRectangle _tmp13_ = {0}; + GdkRectangle _tmp14_; gint count; - GdkRectangle _tmp17_; GdkRectangle _tmp16_ = {0}; + GdkRectangle _tmp17_; gint bar_w; - GdkRectangle _tmp23_; GdkRectangle _tmp22_ = {0}; + GdkRectangle _tmp23_; self = (DdbEqualizer*) base; fore_bright_color = (gtkui_get_bar_foreground_color (&_tmp0_), _tmp0_); c1 = fore_bright_color; @@ -328,8 +328,8 @@ static gboolean ddb_equalizer_real_expose_event (GtkWidget* base, GdkEventExpose i = 0; _tmp18_ = TRUE; while (TRUE) { - GdkRectangle _tmp20_; GdkRectangle _tmp19_ = {0}; + GdkRectangle _tmp20_; if (!_tmp18_) { i++; } @@ -363,12 +363,12 @@ static gboolean ddb_equalizer_real_expose_event (GtkWidget* base, GdkEventExpose gdk_gc_set_line_attributes (gc, 1, GDK_LINE_ON_OFF_DASH, GDK_CAP_NOT_LAST, GDK_JOIN_MITER); gdk_draw_line (d, gc, self->priv->margin_left + 1, self->priv->mouse_y, width, self->priv->mouse_y); result = FALSE; - _g_object_unref0 (d); - _g_object_unref0 (gc); - _g_object_unref0 (l); - _g_object_unref0 (ctx); - _pango_font_description_free0 (fd); _g_free0 (tmp); + _pango_font_description_free0 (fd); + _g_object_unref0 (ctx); + _g_object_unref0 (l); + _g_object_unref0 (gc); + _g_object_unref0 (d); return result; } |