~ubuntu-branches/ubuntu/oneiric/rhythmbox/oneiric

« back to all changes in this revision

Viewing changes to plugins/iradio/rb-station-properties-dialog.c

  • Committer: Bazaar Package Importer
  • Author(s): Rico Tzschichholz
  • Date: 2011-07-29 16:41:38 UTC
  • mto: This revision was merged to the branch mainline in revision 191.
  • Revision ID: james.westby@ubuntu.com-20110729164138-wwicy8nqalm18ck7
Tags: upstream-2.90.1~20110802
ImportĀ upstreamĀ versionĀ 2.90.1~20110802

Show diffs side-by-side

added added

removed removed

Lines of Context:
39
39
#include "rb-builder-helpers.h"
40
40
#include "rb-dialog.h"
41
41
#include "rb-rating.h"
42
 
#include "rb-plugin.h"
43
42
#include "rb-util.h"
44
43
 
45
44
static void rb_station_properties_dialog_class_init (RBStationPropertiesDialogClass *klass);
80
79
 
81
80
struct RBStationPropertiesDialogPrivate
82
81
{
83
 
        RBPlugin    *plugin;
 
82
        GObject     *plugin;
84
83
        RBEntryView *entry_view;
85
84
        RhythmDB    *db;
86
85
        RhythmDBEntry *current_entry;
107
106
        PROP_PLUGIN
108
107
};
109
108
 
110
 
G_DEFINE_TYPE (RBStationPropertiesDialog,
111
 
               rb_station_properties_dialog,
112
 
               GTK_TYPE_DIALOG)
 
109
G_DEFINE_DYNAMIC_TYPE (RBStationPropertiesDialog, rb_station_properties_dialog, GTK_TYPE_DIALOG)
113
110
 
114
111
static void
115
112
rb_station_properties_dialog_class_init (RBStationPropertiesDialogClass *klass)
133
130
        g_object_class_install_property (object_class,
134
131
                                         PROP_PLUGIN,
135
132
                                         g_param_spec_object ("plugin",
136
 
                                                              "RBPlugin",
137
 
                                                              "RBPlugin to use to find files",
138
 
                                                              RB_TYPE_PLUGIN,
 
133
                                                              "plugin instance",
 
134
                                                              "plugin instance to use to find files",
 
135
                                                              G_TYPE_OBJECT,
139
136
                                                              G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY));
140
137
 
141
138
        object_class->dispose = rb_station_properties_dialog_dispose;
145
142
}
146
143
 
147
144
static void
 
145
rb_station_properties_dialog_class_finalize (RBStationPropertiesDialogClass *klass)
 
146
{
 
147
}
 
148
 
 
149
static void
148
150
rb_station_properties_dialog_init (RBStationPropertiesDialog *dialog)
149
151
{
150
152
        dialog->priv = RB_STATION_PROPERTIES_DIALOG_GET_PRIVATE (dialog);
172
174
        gtk_container_set_border_width (GTK_CONTAINER (dialog), 5);
173
175
        gtk_box_set_spacing (GTK_BOX (content_area), 2);
174
176
 
175
 
        builder_file = rb_plugin_find_file (dialog->priv->plugin, "station-properties.ui");
 
177
        builder_file = rb_find_plugin_data_file (dialog->priv->plugin, "station-properties.ui");
176
178
        g_assert (builder_file != NULL);
177
179
        builder = rb_builder_load (builder_file, dialog);
178
180
        g_free (builder_file);
310
312
}
311
313
 
312
314
GtkWidget *
313
 
rb_station_properties_dialog_new (RBPlugin *plugin, RBEntryView *entry_view)
 
315
rb_station_properties_dialog_new (GObject *plugin, RBEntryView *entry_view)
314
316
{
315
317
        RBStationPropertiesDialog *dialog;
316
318
 
600
602
                                                  RBStationPropertiesDialog *dialog)
601
603
{
602
604
}
 
605
 
 
606
void
 
607
_rb_station_properties_dialog_register_type (GTypeModule *module)
 
608
{
 
609
        rb_station_properties_dialog_register_type (module);
 
610
}