/gpump/trunk

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/gpump/trunk

« back to all changes in this revision

Viewing changes to src/user_button.js

  • Committer: Gustav Hartvigsson
  • Date: 2014-11-19 22:05:36 UTC
  • mto: This revision was merged to the branch mainline in revision 53.
  • Revision ID: gustav.hartvigsson@gmail.com-20141119220536-982uyozuq4d0f13h
* Strted work on changing how the SettingsData class works,
  should be better when I am done.
* Started commenting my code so it will be easier to mentain in the future.
  Not that there is much code, but anyway.

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
  Name: "UserButton",
18
18
  Extends: Gtk.Button,
19
19
  Properties: {
 
20
    /** @property user_avatar
 
21
     *
 
22
     */
20
23
    "user_avatar": GObject.param_spec_object ("user_avatar",
21
24
                                     "avatar",
22
25
                                     "A Gtk.Image that is shown in the button",
24
27
                                     GObject.ParamFlags.READABLE |
25
28
                                     GObject.ParamFlags.WRITABLE),
26
29
    
 
30
    /** @property user_name
 
31
     *
 
32
     */
27
33
    "user_name": GObject.param_spec_string ("user_name",
28
34
                                     "name",
29
35
                                     "The text to be shown on the button",
31
37
                                     GObject.ParamFlags.READABLE |
32
38
                                     GObject.ParamFlags.WRITABLE),
33
39
    
 
40
    /** @property show_avatar_only
 
41
     *
 
42
     */
34
43
    "show_avatar_only": GObject.param_spec_boolean ("show_avatar_only",
35
44
                                     "show only avatar",
36
45
                                     "When set, only the avatar will be shown" +