[geary] Change helper methods to private in MainToolbar. Bug 773728.
- From: Michael Gratton <mjog src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [geary] Change helper methods to private in MainToolbar. Bug 773728.
- Date: Tue, 15 Nov 2016 10:44:43 +0000 (UTC)
commit 604a3b24d25741d3703830d5cd60a4523f3a644c
Author: Niels De Graef <nielsdegraef gmail com>
Date: Tue Nov 15 11:03:10 2016 +0100
Change helper methods to private in MainToolbar. Bug 773728.
Signed-off-by: Niels De Graef <nielsdegraef gmail com>
src/client/components/main-toolbar.vala | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/client/components/main-toolbar.vala b/src/client/components/main-toolbar.vala
index c907eb7..765cc8e 100644
--- a/src/client/components/main-toolbar.vala
+++ b/src/client/components/main-toolbar.vala
@@ -150,7 +150,7 @@ public class MainToolbar : Gtk.Box {
conversation_header.decoration_layout = ":" + buttons[1];
}
- public void setup_button(Gtk.Button b, string action_name, bool show_label = false) {
+ private void setup_button(Gtk.Button b, string action_name, bool show_label = false) {
Gtk.Action related_action = action_group.get_action(action_name);
b.focus_on_click = false;
b.use_underline = true;
@@ -185,7 +185,7 @@ public class MainToolbar : Gtk.Box {
/**
* Given an icon, menu, and action, creates a button that triggers the menu and the action.
*/
- public void setup_menu_button(Gtk.MenuButton b, Gtk.Menu menu, string action_name) {
+ private void setup_menu_button(Gtk.MenuButton b, Gtk.Menu menu, string action_name) {
setup_button(b, action_name);
menu.foreach(GtkUtil.show_menuitem_accel_labels);
b.popup = menu;
@@ -203,7 +203,7 @@ public class MainToolbar : Gtk.Box {
/**
* Given an icon, popover, and action, creates a button that triggers the popover and the action.
*/
- public void setup_popover_button(Gtk.MenuButton b, Gtk.Popover popover, string action_name) {
+ private void setup_popover_button(Gtk.MenuButton b, Gtk.Popover popover, string action_name) {
setup_button(b, action_name);
b.popover = popover;
b.clicked.connect(() => popover.show_all());
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]