]> git.pld-linux.org Git - packages/libview.git/commitdiff
- readded a one parameter constructor (needed by VMware)
authorAdam Gołębiowski <adamg@pld-linux.org>
Sun, 11 Dec 2005 02:32:23 +0000 (02:32 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    libview-constructor.patch -> 1.1

libview-constructor.patch [new file with mode: 0644]

diff --git a/libview-constructor.patch b/libview-constructor.patch
new file mode 100644 (file)
index 0000000..057d7a4
--- /dev/null
@@ -0,0 +1,39 @@
+diff -burN libview-0.5.5.orig/libview/header.cc libview-0.5.5/libview/header.cc
+--- libview-0.5.5.orig/libview/header.cc       2005-12-11 03:18:42.089466232 +0100
++++ libview-0.5.5/libview/header.cc    2005-12-11 03:21:01.540266488 +0100
+@@ -69,6 +69,22 @@
+    select();
+ }
++/*
++ * one parameter constructor for compatiblity with VMware
++ */
++Header::Header(const Glib::ustring &markup) 
++      : Gtk::MenuItem(),
++      mLabel()
++{
++   mLabel.show();
++   add(mLabel);
++   mLabel.set_alignment(0, 0.5);   
++   mLabel.set_justify(Gtk::JUSTIFY_LEFT);
++
++   SetMarkup(markup);
++
++   select();
++}
+ /*
+  *-----------------------------------------------------------------------------
+diff -burN libview-0.5.5.orig/libview/header.hh libview-0.5.5/libview/header.hh
+--- libview-0.5.5.orig/libview/header.hh       2005-12-11 03:18:42.072468816 +0100
++++ libview-0.5.5/libview/header.hh    2005-12-11 03:28:15.719261248 +0100
+@@ -44,7 +44,8 @@
+ public:
+    enum Alignment { LEFT, CENTER, RIGHT };
+-   Header(const Glib::ustring &markup, Alignment align = LEFT);
++   Header(const Glib::ustring &markup, Alignment align);
++   Header(const Glib::ustring &markup);
+    void SetMarkup(const Glib::ustring &markup);
+    void SetAlignment(Alignment align);
This page took 0.061889 seconds and 4 git commands to generate.