]> git.pld-linux.org Git - packages/libview.git/blob - libview-constructor.patch
- rebuild with current glib2 and gdk-pixbuf2
[packages/libview.git] / libview-constructor.patch
1 diff -burN libview-0.5.5.orig/libview/header.cc libview-0.5.5/libview/header.cc
2 --- libview-0.5.5.orig/libview/header.cc        2005-12-11 03:18:42.089466232 +0100
3 +++ libview-0.5.5/libview/header.cc     2005-12-11 03:21:01.540266488 +0100
4 @@ -69,6 +69,22 @@
5     select();
6  }
7  
8 +/*
9 + * one parameter constructor for compatiblity with VMware
10 + */
11 +Header::Header(const Glib::ustring &markup) 
12 +       : Gtk::MenuItem(),
13 +       mLabel()
14 +{
15 +   mLabel.show();
16 +   add(mLabel);
17 +   mLabel.set_alignment(0, 0.5);   
18 +   mLabel.set_justify(Gtk::JUSTIFY_LEFT);
19 +
20 +   SetMarkup(markup);
21 +
22 +   select();
23 +}
24  
25  /*
26   *-----------------------------------------------------------------------------
27 diff -burN libview-0.5.5.orig/libview/header.hh libview-0.5.5/libview/header.hh
28 --- libview-0.5.5.orig/libview/header.hh        2005-12-11 03:18:42.072468816 +0100
29 +++ libview-0.5.5/libview/header.hh     2005-12-11 03:28:15.719261248 +0100
30 @@ -44,7 +44,8 @@
31  public:
32     enum Alignment { LEFT, CENTER, RIGHT };
33  
34 -   Header(const Glib::ustring &markup, Alignment align = LEFT);
35 +   Header(const Glib::ustring &markup, Alignment align);
36 +   Header(const Glib::ustring &markup);
37  
38     void SetMarkup(const Glib::ustring &markup);
39     void SetAlignment(Alignment align);
This page took 0.080205 seconds and 3 git commands to generate.