/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/preferences_ui.js

  • Committer: Gustav Hartvigsson
  • Date: 2014-11-18 20:11:21 UTC
  • mto: This revision was merged to the branch mainline in revision 53.
  • Revision ID: gustav.hartvigsson@gmail.com-20141118201121-o0rwh33ra0lmldxp
* Made the Pref. dialoug look waaaay better

Show diffs side-by-side

added added

removed removed

Lines of Context:
54
54
    /*this.get_content_area ().pack_start ()),
55
55
                                         true, true, 25);*/
56
56
    this.get_content_area ().set_center_widget (
 
57
      (this.layout = new Gtk.Box ({
 
58
        orientation: Gtk.Orientation.VERTICAL,
 
59
        spacing: 8,
 
60
        border_width: 8,
 
61
        margin: 50
 
62
      }))
 
63
    );
 
64
    
 
65
    
 
66
    
 
67
    this.layout.pack_start (
57
68
      new Gtk.Frame ({child:
58
69
        (this.list_box = new Gtk.ListBox ({
59
70
          width_request: 400,
60
71
          selection_mode: Gtk.SelectionMode.NONE,
61
72
          expand: false
62
73
        })),
63
 
        expand: false,
64
 
        margin: 50
65
 
      })
 
74
        expand: false
 
75
      }),
 
76
      true,
 
77
      true,
 
78
      null
66
79
    );
67
80
    
68
81
    let settings_object = SettingsData.get_settings ();
156
169
    //this.list_box.add ((new Gtk.Label ()));
157
170
    
158
171
    /* Reset all settings */
159
 
    this.list_box.add ((this.reset_all_btn = new Gtk.Button ({
160
 
      label: _("Reset all settings"),
161
 
      margin_left: 50,
162
 
      margin_right: 50,
163
 
      margin_top: 20
164
 
    })));
 
172
    this.layout.pack_end (
 
173
      (this.reset_all_btn = new Gtk.Button ({
 
174
        label: _("Reset all settings")
 
175
      })),
 
176
      false,
 
177
      false,
 
178
      null
 
179
    );
165
180
    
166
181
    this.reset_all_btn.connect ("clicked", Lang.bind(this, this._reset_all));
167
182
  },