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

« back to all changes in this revision

Viewing changes to gtk/gtkmm/image.cc

  • Committer: Package Import Robot
  • Author(s): Sebastien Bacher
  • Date: 2012-03-01 23:42:36 UTC
  • mfrom: (1.1.8)
  • Revision ID: package-import@ubuntu.com-20120301234236-12w6m0hkomhi7h53
Tags: 3.3.16-0ubuntu1
* New upstream version
* debian/control.in: updated the glib requirement

Show diffs side-by-side

added added

removed removed

Lines of Context:
234
234
 
235
235
void Image::set(const std::string& filename)
236
236
{
237
 
gtk_image_set_from_file(gobj(), filename.c_str()); 
 
237
  gtk_image_set_from_file(gobj(), filename.c_str()); 
238
238
}
239
239
 
240
240
void Image::set(const Glib::RefPtr<Gdk::Pixbuf>& pixbuf)
241
241
{
242
 
gtk_image_set_from_pixbuf(gobj(), Glib::unwrap(pixbuf)); 
 
242
  gtk_image_set_from_pixbuf(gobj(), Glib::unwrap(pixbuf)); 
243
243
}
244
244
 
245
245
void Image::set(const Gtk::StockID& stock_id, IconSize size)
246
246
{
247
 
gtk_image_set_from_stock(gobj(), (stock_id).get_c_str(), static_cast<GtkIconSize>(int(size))); 
 
247
  gtk_image_set_from_stock(gobj(), (stock_id).get_c_str(), static_cast<GtkIconSize>(int(size))); 
248
248
}
249
249
 
250
250
void Image::set(const Glib::RefPtr<IconSet>& icon_set, IconSize size)
251
251
{
252
 
gtk_image_set_from_icon_set(gobj(), Glib::unwrap(icon_set), static_cast<GtkIconSize>(int(size))); 
 
252
  gtk_image_set_from_icon_set(gobj(), Glib::unwrap(icon_set), static_cast<GtkIconSize>(int(size))); 
253
253
}
254
254
 
255
255
void Image::set(const Glib::RefPtr<Gdk::PixbufAnimation>& animation)
256
256
{
257
 
gtk_image_set_from_animation(gobj(), Glib::unwrap(animation)); 
 
257
  gtk_image_set_from_animation(gobj(), Glib::unwrap(animation)); 
258
258
}
259
259
 
260
260
void Image::set(const Glib::RefPtr<const Gio::Icon>& icon, IconSize size)
261
261
{
262
 
gtk_image_set_from_gicon(gobj(), const_cast<GIcon*>(Glib::unwrap<Gio::Icon>(icon)), static_cast<GtkIconSize>(int(size))); 
 
262
  gtk_image_set_from_gicon(gobj(), const_cast<GIcon*>(Glib::unwrap<Gio::Icon>(icon)), static_cast<GtkIconSize>(int(size))); 
263
263
}
264
264
 
265
265
void Image::set_from_icon_name(const Glib::ustring& icon_name, IconSize size)
266
266
{
267
 
gtk_image_set_from_icon_name(gobj(), icon_name.c_str(), static_cast<GtkIconSize>(int(size))); 
 
267
  gtk_image_set_from_icon_name(gobj(), icon_name.c_str(), static_cast<GtkIconSize>(int(size))); 
268
268
}
269
269
 
270
270
void Image::clear()
271
271
{
272
 
gtk_image_clear(gobj()); 
 
272
  gtk_image_clear(gobj()); 
273
273
}
274
274
 
275
275
ImageType Image::get_storage_type() const
314
314
 
315
315
void Image::set_pixel_size(int pixel_size)
316
316
{
317
 
gtk_image_set_pixel_size(gobj(), pixel_size); 
 
317
  gtk_image_set_pixel_size(gobj(), pixel_size); 
318
318
}
319
319
 
320
320
 
 
321
#ifndef GTKMM_DISABLE_DEPRECATED
 
322
 
321
323
#ifdef GLIBMM_PROPERTIES_ENABLED
322
324
Glib::PropertyProxy< Glib::RefPtr<Gdk::Pixbuf> > Image::property_pixbuf() 
323
325
{
324
326
  return Glib::PropertyProxy< Glib::RefPtr<Gdk::Pixbuf> >(this, "pixbuf");
325
327
}
 
328
#endif // GTKMM_DISABLE_DEPRECATED
 
329
 
326
330
#endif //GLIBMM_PROPERTIES_ENABLED
327
331
 
328
332
#ifdef GLIBMM_PROPERTIES_ENABLED
332
336
}
333
337
#endif //GLIBMM_PROPERTIES_ENABLED
334
338
 
 
339
#ifndef GTKMM_DISABLE_DEPRECATED
 
340
 
335
341
#ifdef GLIBMM_PROPERTIES_ENABLED
336
342
Glib::PropertyProxy< Glib::ustring > Image::property_file() 
337
343
{
338
344
  return Glib::PropertyProxy< Glib::ustring >(this, "file");
339
345
}
 
346
#endif // GTKMM_DISABLE_DEPRECATED
 
347
 
340
348
#endif //GLIBMM_PROPERTIES_ENABLED
341
349
 
342
350
#ifdef GLIBMM_PROPERTIES_ENABLED
346
354
}
347
355
#endif //GLIBMM_PROPERTIES_ENABLED
348
356
 
 
357
#ifndef GTKMM_DISABLE_DEPRECATED
 
358
 
349
359
#ifdef GLIBMM_PROPERTIES_ENABLED
350
360
Glib::PropertyProxy< Glib::ustring > Image::property_stock() 
351
361
{
352
362
  return Glib::PropertyProxy< Glib::ustring >(this, "stock");
353
363
}
 
364
#endif // GTKMM_DISABLE_DEPRECATED
 
365
 
354
366
#endif //GLIBMM_PROPERTIES_ENABLED
355
367
 
356
368
#ifdef GLIBMM_PROPERTIES_ENABLED
360
372
}
361
373
#endif //GLIBMM_PROPERTIES_ENABLED
362
374
 
 
375
#ifndef GTKMM_DISABLE_DEPRECATED
 
376
 
363
377
#ifdef GLIBMM_PROPERTIES_ENABLED
364
378
Glib::PropertyProxy< Glib::RefPtr<IconSet> > Image::property_icon_set() 
365
379
{
366
380
  return Glib::PropertyProxy< Glib::RefPtr<IconSet> >(this, "icon-set");
367
381
}
 
382
#endif // GTKMM_DISABLE_DEPRECATED
 
383
 
368
384
#endif //GLIBMM_PROPERTIES_ENABLED
369
385
 
370
386
#ifdef GLIBMM_PROPERTIES_ENABLED
374
390
}
375
391
#endif //GLIBMM_PROPERTIES_ENABLED
376
392
 
 
393
#ifndef GTKMM_DISABLE_DEPRECATED
 
394
 
377
395
#ifdef GLIBMM_PROPERTIES_ENABLED
378
396
Glib::PropertyProxy< int > Image::property_icon_size() 
379
397
{
380
398
  return Glib::PropertyProxy< int >(this, "icon-size");
381
399
}
 
400
#endif // GTKMM_DISABLE_DEPRECATED
 
401
 
382
402
#endif //GLIBMM_PROPERTIES_ENABLED
383
403
 
384
404
#ifdef GLIBMM_PROPERTIES_ENABLED
388
408
}
389
409
#endif //GLIBMM_PROPERTIES_ENABLED
390
410
 
 
411
#ifndef GTKMM_DISABLE_DEPRECATED
 
412
 
391
413
#ifdef GLIBMM_PROPERTIES_ENABLED
392
414
Glib::PropertyProxy< int > Image::property_pixel_size() 
393
415
{
394
416
  return Glib::PropertyProxy< int >(this, "pixel-size");
395
417
}
 
418
#endif // GTKMM_DISABLE_DEPRECATED
 
419
 
396
420
#endif //GLIBMM_PROPERTIES_ENABLED
397
421
 
398
422
#ifdef GLIBMM_PROPERTIES_ENABLED
402
426
}
403
427
#endif //GLIBMM_PROPERTIES_ENABLED
404
428
 
 
429
#ifndef GTKMM_DISABLE_DEPRECATED
 
430
 
405
431
#ifdef GLIBMM_PROPERTIES_ENABLED
406
432
Glib::PropertyProxy< Glib::RefPtr<Gdk::PixbufAnimation> > Image::property_pixbuf_animation() 
407
433
{
408
434
  return Glib::PropertyProxy< Glib::RefPtr<Gdk::PixbufAnimation> >(this, "pixbuf-animation");
409
435
}
 
436
#endif // GTKMM_DISABLE_DEPRECATED
 
437
 
410
438
#endif //GLIBMM_PROPERTIES_ENABLED
411
439
 
412
440
#ifdef GLIBMM_PROPERTIES_ENABLED
416
444
}
417
445
#endif //GLIBMM_PROPERTIES_ENABLED
418
446
 
 
447
#ifndef GTKMM_DISABLE_DEPRECATED
 
448
 
419
449
#ifdef GLIBMM_PROPERTIES_ENABLED
420
450
Glib::PropertyProxy< Glib::ustring > Image::property_icon_name() 
421
451
{
422
452
  return Glib::PropertyProxy< Glib::ustring >(this, "icon-name");
423
453
}
 
454
#endif // GTKMM_DISABLE_DEPRECATED
 
455
 
424
456
#endif //GLIBMM_PROPERTIES_ENABLED
425
457
 
426
458
#ifdef GLIBMM_PROPERTIES_ENABLED
430
462
}
431
463
#endif //GLIBMM_PROPERTIES_ENABLED
432
464
 
 
465
#ifndef GTKMM_DISABLE_DEPRECATED
 
466
 
433
467
#ifdef GLIBMM_PROPERTIES_ENABLED
434
468
Glib::PropertyProxy_ReadOnly< ImageType > Image::property_storage_type() const
435
469
{
436
470
  return Glib::PropertyProxy_ReadOnly< ImageType >(this, "storage-type");
437
471
}
 
472
#endif // GTKMM_DISABLE_DEPRECATED
 
473
 
438
474
#endif //GLIBMM_PROPERTIES_ENABLED
439
475
 
 
476
#ifndef GTKMM_DISABLE_DEPRECATED
 
477
 
440
478
#ifdef GLIBMM_PROPERTIES_ENABLED
441
479
Glib::PropertyProxy< Glib::RefPtr<Gio::Icon> > Image::property_gicon() 
442
480
{
443
481
  return Glib::PropertyProxy< Glib::RefPtr<Gio::Icon> >(this, "gicon");
444
482
}
 
483
#endif // GTKMM_DISABLE_DEPRECATED
 
484
 
445
485
#endif //GLIBMM_PROPERTIES_ENABLED
446
486
 
447
487
#ifdef GLIBMM_PROPERTIES_ENABLED
451
491
}
452
492
#endif //GLIBMM_PROPERTIES_ENABLED
453
493
 
 
494
#ifndef GTKMM_DISABLE_DEPRECATED
 
495
 
454
496
#ifdef GLIBMM_PROPERTIES_ENABLED
455
497
Glib::PropertyProxy< bool > Image::property_use_fallback() 
456
498
{
457
499
  return Glib::PropertyProxy< bool >(this, "use-fallback");
458
500
}
 
501
#endif // GTKMM_DISABLE_DEPRECATED
 
502
 
459
503
#endif //GLIBMM_PROPERTIES_ENABLED
460
504
 
461
505
#ifdef GLIBMM_PROPERTIES_ENABLED