~ubuntu-branches/ubuntu/quantal/gtkmm3.0/quantal

« back to all changes in this revision

Viewing changes to gtk/gtkmm/scrollable.cc

  • Committer: Package Import Robot
  • Author(s): Robert Ancell
  • Date: 2012-09-28 09:25:06 UTC
  • mfrom: (1.1.14)
  • Revision ID: package-import@ubuntu.com-20120928092506-9h63ais5o750a8sk
Tags: 3.5.13-0ubuntu1
* New upstream release
* debian/control:
  - Bump build-depends on libglibmm-2.4-dev, libgtk-3-dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
145
145
 
146
146
Glib::RefPtr<Adjustment> Scrollable::get_hadjustment()
147
147
{
148
 
 
149
148
  Glib::RefPtr<Adjustment> retvalue = Glib::wrap(gtk_scrollable_get_hadjustment(gobj()));
150
149
  if(retvalue)
151
150
    retvalue->reference(); //The function does not do a ref for us.
152
151
  return retvalue;
153
 
 
154
152
}
155
153
 
156
154
Glib::RefPtr<const Adjustment> Scrollable::get_hadjustment() const
160
158
 
161
159
void Scrollable::set_hadjustment(const Glib::RefPtr<Adjustment>& hadjustment)
162
160
{
163
 
  gtk_scrollable_set_hadjustment(gobj(), Glib::unwrap(hadjustment)); 
 
161
  gtk_scrollable_set_hadjustment(gobj(), Glib::unwrap(hadjustment));
164
162
}
165
163
 
166
164
Glib::RefPtr<Adjustment> Scrollable::get_vadjustment()
167
165
{
168
 
 
169
166
  Glib::RefPtr<Adjustment> retvalue = Glib::wrap(gtk_scrollable_get_vadjustment(gobj()));
170
167
  if(retvalue)
171
168
    retvalue->reference(); //The function does not do a ref for us.
172
169
  return retvalue;
173
 
 
174
170
}
175
171
 
176
172
Glib::RefPtr<const Adjustment> Scrollable::get_vadjustment() const
177
173
{
178
 
 
179
174
  Glib::RefPtr<const Adjustment> retvalue = Glib::wrap(gtk_scrollable_get_vadjustment(const_cast<GtkScrollable*>(gobj())));
180
175
  if(retvalue)
181
176
    retvalue->reference(); //The function does not do a ref for us.
182
177
  return retvalue;
183
 
 
184
178
}
185
179
 
186
180
void Scrollable::set_vadjustment(const Glib::RefPtr<Adjustment>& hadjustment)
187
181
{
188
 
  gtk_scrollable_set_vadjustment(gobj(), Glib::unwrap(hadjustment)); 
 
182
  gtk_scrollable_set_vadjustment(gobj(), Glib::unwrap(hadjustment));
189
183
}
190
184
 
191
185
ScrollablePolicy Scrollable::get_hscroll_policy() const
195
189
 
196
190
void Scrollable::set_hscroll_policy(ScrollablePolicy policy)
197
191
{
198
 
  gtk_scrollable_set_hscroll_policy(gobj(), ((GtkScrollablePolicy)(policy))); 
 
192
  gtk_scrollable_set_hscroll_policy(gobj(), ((GtkScrollablePolicy)(policy)));
199
193
}
200
194
 
201
195
ScrollablePolicy Scrollable::get_vscroll_policy() const
205
199
 
206
200
void Scrollable::set_vscroll_policy(ScrollablePolicy policy)
207
201
{
208
 
  gtk_scrollable_set_vscroll_policy(gobj(), ((GtkScrollablePolicy)(policy))); 
 
202
  gtk_scrollable_set_vscroll_policy(gobj(), ((GtkScrollablePolicy)(policy)));
209
203
}
210
204
 
211
205