~ubuntu-branches/ubuntu/maverick/awn-extras-applets/maverick

« back to all changes in this revision

Viewing changes to applets/maintained/garbage/prefs.c

  • Committer: Bazaar Package Importer
  • Author(s): Julien Lavergne
  • Date: 2010-08-29 14:29:52 UTC
  • mto: This revision was merged to the branch mainline in revision 21.
  • Revision ID: james.westby@ubuntu.com-20100829142952-rhvuetyms9bv5uu7
Tags: upstream-0.4.0+bzr1372
ImportĀ upstreamĀ versionĀ 0.4.0+bzr1372

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* prefs.c generated by valac, the Vala compiler
 
1
/* prefs.c generated by valac 0.9.7, the Vala compiler
2
2
 * generated from prefs.vala, do not modify */
3
3
 
4
4
/*
71
71
 
72
72
static gpointer garbage_prefs_parent_class = NULL;
73
73
 
74
 
GType garbage_prefs_get_type (void);
75
 
GType garbage_applet_get_type (void);
 
74
GType garbage_prefs_get_type (void) G_GNUC_CONST;
 
75
GType garbage_applet_get_type (void) G_GNUC_CONST;
76
76
#define GARBAGE_PREFS_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_GARBAGE_PREFS, GarbagePrefsPrivate))
77
77
enum  {
78
78
        GARBAGE_PREFS_DUMMY_PROPERTY
79
79
};
80
 
static void garbage_prefs_create_ui (GarbagePrefs* self);
81
80
GarbagePrefs* garbage_prefs_new (GarbageApplet* applet);
82
81
GarbagePrefs* garbage_prefs_construct (GType object_type, GarbageApplet* applet);
 
82
static void garbage_prefs_create_ui (GarbagePrefs* self);
83
83
gboolean garbage_applet_get_confirm_empty (GarbageApplet* self);
84
84
static void garbage_prefs_on_empty_toggled (GarbagePrefs* self, GtkToggleButton* button);
85
85
static void _garbage_prefs_on_empty_toggled_gtk_toggle_button_toggled (GtkToggleButton* _sender, gpointer self);
100
100
 
101
101
 
102
102
GarbagePrefs* garbage_prefs_construct (GType object_type, GarbageApplet* applet) {
103
 
        GParameter * __params;
104
 
        GParameter * __params_it;
105
103
        GarbagePrefs * self;
 
104
        char* _tmp0_ = NULL;
 
105
        char* _tmp1_;
106
106
        char* _tmp2_;
107
 
        char* _tmp1_;
108
 
        char* _tmp0_ = NULL;
109
107
        GarbageApplet* _tmp3_;
110
108
        g_return_val_if_fail (applet != NULL, NULL);
111
 
        __params = g_new0 (GParameter, 1);
112
 
        __params_it = __params;
113
 
        __params_it->name = "type";
114
 
        g_value_init (&__params_it->value, GTK_TYPE_WINDOW_TYPE);
115
 
        g_value_set_enum (&__params_it->value, GTK_WINDOW_TOPLEVEL);
116
 
        __params_it++;
117
 
        self = g_object_newv (object_type, __params_it - __params, __params);
 
109
        self = (GarbagePrefs*) g_object_new (object_type, "type", GTK_WINDOW_TOPLEVEL, NULL);
118
110
        gtk_window_set_title ((GtkWindow*) self, _tmp2_ = g_strdup_printf (_ ("%s Preferences"), _tmp1_ = (g_object_get ((AwnApplet*) applet, "display-name", &_tmp0_, NULL), _tmp0_)));
119
111
        _g_free0 (_tmp2_);
120
112
        _g_free0 (_tmp1_);
121
113
        gtk_window_set_icon_name ((GtkWindow*) self, "gtk-preferences");
122
114
        self->priv->_applet = (_tmp3_ = _g_object_ref0 (applet), _g_object_unref0 (self->priv->_applet), _tmp3_);
123
115
        garbage_prefs_create_ui (self);
124
 
        while (__params_it > __params) {
125
 
                --__params_it;
126
 
                g_value_unset (&__params_it->value);
127
 
        }
128
 
        g_free (__params);
129
116
        return self;
130
117
}
131
118
 
169
156
        gtk_container_add ((GtkContainer*) ((GtkDialog*) self)->vbox, (GtkWidget*) count_button);
170
157
        gtk_dialog_add_button ((GtkDialog*) self, GTK_STOCK_CLOSE, (gint) GTK_RESPONSE_CLOSE);
171
158
        g_signal_connect_object ((GtkDialog*) self, "response", (GCallback) _garbage_prefs_on_response_gtk_dialog_response, self, 0);
 
159
        _g_object_unref0 (count_button);
172
160
        _g_object_unref0 (empty_button);
173
 
        _g_object_unref0 (count_button);
174
161
}
175
162
 
176
163