~ubuntu-branches/ubuntu/wily/me-tv/wily-proposed

« back to all changes in this revision

Viewing changes to src/engine.cc

  • Committer: Bazaar Package Importer
  • Author(s): Scott Evans
  • Date: 2009-06-27 00:46:22 UTC
  • mfrom: (1.1.7 upstream)
  • Revision ID: james.westby@ubuntu.com-20090627004622-q0zvsie6ioa60vh3
Tags: 0.9.4-0ubuntu1
* New upstream release (LP: #379706)
  - Fix to stop EPG update crashing the application
    after faulty save (LP: #72872)
  - Fixed spin buttons from GtkBuilder conversion (LP: #382197) 
  - Fixed icon on application popup menu (LP: #379685)
  - Fixed compiling of me-tv-0.8.12 fails on Fedora 11 (LP: #377020)
  - Fixed Failed to lock to channel at boot (LP: #377050)
  - Increased timeout to 5 seconds again (LP: #371165)
  - Fixed me-tv unusually slow, often freezes (LP: #351510)
  - Fixed channel persistence (LP: #361514)
  - Fix for forward slashes in description (LP: #359710)
  - Fixed Must create .me-tv directory manually (LP: #353796)
  - Fixed audio stream can't be changed (LP: #350402)
* debian/control:
  - Removed dependency libxine1-ffmpeg, libxine1-x
  - Removed libglademm-2.4-dev Build-Depends.

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
#include "me-tv-i18n.h"
24
24
#include <gdk/gdkx.h>
25
25
 
26
 
gint Engine::get_window_id()
 
26
Engine::Engine()
27
27
{
28
 
        int window_id = GDK_WINDOW_XID(get_drawing_area_video()->get_window()->gobj());
 
28
        get_application().get_builder()->get_widget("drawing_area_video", drawing_area_video);
29
29
 
 
30
        window_id = GDK_WINDOW_XID(drawing_area_video->get_window()->gobj());
30
31
        if (window_id == 0)
31
32
        {
32
33
                throw Exception(_("Window ID was 0"));
33
34
        }
 
35
}
34
36
 
 
37
gint Engine::get_window_id()
 
38
{
35
39
        return window_id;
36
40
}
37
41
 
38
42
Gtk::DrawingArea* Engine::get_drawing_area_video()
39
43
{
40
 
        return dynamic_cast<Gtk::DrawingArea*>(get_application().get_glade()->get_widget("drawing_area_video"));
 
44
        return drawing_area_video;
41
45
}