~syst3mfailur3/granite/tooltips-in-modebutton

« back to all changes in this revision

Viewing changes to lib/Widgets/ModeButton.vala

  • Committer: Shawn McTear
  • Date: 2015-11-26 22:50:46 UTC
  • Revision ID: syst3mfailur3@gmail.com-20151126225046-ulvclcj4vodf7kc7
Added tooltip @param.

Show diffs side-by-side

added added

removed removed

Lines of Context:
79
79
         * Appends Pixbuf to ModeButton
80
80
         *
81
81
         * @param pixbuf Gdk.Pixbuf to append to ModeButton
 
82
         * @param tooltip text to set as tooltip
82
83
         */
83
84
        public int append_pixbuf (Gdk.Pixbuf pixbuf, string tooltip = "") {
84
85
            return append (new Gtk.Image.from_pixbuf (pixbuf), tooltip);
88
89
         * Appends text to ModeButton
89
90
         *
90
91
         * @param text text to append to ModeButton
 
92
         * @param tooltip text to set as tooltip
91
93
         * @return index of new item
92
94
         */
93
95
        public int append_text (string text, string tooltip = "") {
99
101
         *
100
102
         * @param icon_name name of icon to append
101
103
         * @param size desired size of icon
 
104
         * @param tooltip text to set as tooltip
102
105
         * @return index of appended item
103
106
         */
104
107
        public int append_icon (string icon_name, Gtk.IconSize size, string tooltip = "") {
109
112
         * Appends given widget to ModeButton
110
113
         *
111
114
         * @param w widget to add to ModeButton
 
115
         * @param tooltip text to set as tooltip
112
116
         * @return index of new item
113
117
         */
114
118
        public int append (Gtk.Widget w, string tooltip = "") {