~ubuntu-branches/debian/squeeze/inkscape/squeeze

« back to all changes in this revision

Viewing changes to src/ui/widget/style-swatch.h

  • Committer: Bazaar Package Importer
  • Author(s): Thomas Viehmann
  • Date: 2008-09-09 23:29:02 UTC
  • mfrom: (1.1.7 upstream)
  • Revision ID: james.westby@ubuntu.com-20080909232902-c50iujhk1w79u8e7
Tags: 0.46-2.1
* Non-maintainer upload.
* Add upstream patch fixing a crash in the open dialog
  in the zh_CN.utf8 locale. Closes: #487623.
  Thanks to Luca Bruno for the patch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
#include <glibmm/i18n.h>
22
22
 
23
23
#include <desktop.h>
 
24
#include <verbs.h>
24
25
 
25
26
#include "button.h"
26
27
 
41
42
class StyleSwatch : public Gtk::HBox
42
43
{
43
44
public:
44
 
    StyleSwatch (SPCSSAttr *attr);
 
45
    StyleSwatch (SPCSSAttr *attr, gchar const *main_tip);
45
46
 
46
47
    ~StyleSwatch();
47
48
 
52
53
    void setWatched (Inkscape::XML::Node *watched, Inkscape::XML::Node *secondary);
53
54
    void setWatchedTool (const char *path, bool synthesize);
54
55
 
 
56
    void setClickVerb(sp_verb_t verb_t);
 
57
    void setDesktop(SPDesktop *desktop);
 
58
    bool on_click(GdkEventButton *event);
 
59
 
55
60
    char *_tool_path;
56
61
 
57
62
protected:
 
63
    SPDesktop *_desktop;
 
64
 
 
65
    sp_verb_t _verb_t;
 
66
 
58
67
    SPCSSAttr *_css;
59
68
 
60
69
    Inkscape::XML::Node *_watched;
61
70
    Inkscape::XML::Node *_watched_tool;
62
71
 
 
72
    Gtk::EventBox _swatch;
 
73
 
63
74
    Gtk::Table _table;
64
75
 
65
76
    Gtk::Label _label[2];