public inbox for gdb-cvs@sourceware.org
help / color / mirror / Atom feed
* [binutils-gdb] gdb/tui: rename tui_layout_base::adjust_size to ::set_height
@ 2022-04-03 14:42 Andrew Burgess
  0 siblings, 0 replies; only message in thread
From: Andrew Burgess @ 2022-04-03 14:42 UTC (permalink / raw)
  To: gdb-cvs

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=4b52a3872b2ebfc85ef1700638f51f11e2ed7d2c

commit 4b52a3872b2ebfc85ef1700638f51f11e2ed7d2c
Author: Andrew Burgess <aburgess@redhat.com>
Date:   Mon Jan 24 17:49:12 2022 +0000

    gdb/tui: rename tui_layout_base::adjust_size to ::set_height
    
    Rename tui_layout_base::adjust_size to tui_layout_base::set_height,
    the new name more accurately reflects what this member function does,
    and makes it easier for a later commit to add a new
    tui_layout_base::set_width member function.
    
    There should be no user visible changes after this commit.

Diff:
---
 gdb/tui/tui-layout.c | 6 +++---
 gdb/tui/tui-layout.h | 8 ++++----
 2 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/gdb/tui/tui-layout.c b/gdb/tui/tui-layout.c
index 04e5ac24ef9..33e0d2f8cda 100644
--- a/gdb/tui/tui-layout.c
+++ b/gdb/tui/tui-layout.c
@@ -118,7 +118,7 @@ tui_apply_current_layout ()
 void
 tui_adjust_window_height (struct tui_win_info *win, int new_height)
 {
-  applied_layout->adjust_size (win->name (), new_height);
+  applied_layout->set_height (win->name (), new_height);
 }
 
 /* Set the current layout to LAYOUT.  */
@@ -570,7 +570,7 @@ tui_layout_split::set_weights_from_heights ()
 /* See tui-layout.h.  */
 
 tui_adjust_result
-tui_layout_split::adjust_size (const char *name, int new_height)
+tui_layout_split::set_height (const char *name, int new_height)
 {
   /* Look through the children.  If one is a layout holding the named
      window, we're done; or if one actually is the named window,
@@ -579,7 +579,7 @@ tui_layout_split::adjust_size (const char *name, int new_height)
   for (int i = 0; i < m_splits.size (); ++i)
     {
       tui_adjust_result adjusted
-	= m_splits[i].layout->adjust_size (name, new_height);
+	= m_splits[i].layout->set_height (name, new_height);
       if (adjusted == HANDLED)
 	return HANDLED;
       if (adjusted == FOUND)
diff --git a/gdb/tui/tui-layout.h b/gdb/tui/tui-layout.h
index b9a5d9b898d..acea7ac8f64 100644
--- a/gdb/tui/tui-layout.h
+++ b/gdb/tui/tui-layout.h
@@ -75,9 +75,9 @@ public:
     return nullptr;
   }
 
-  /* Adjust the size of the window named NAME to NEW_HEIGHT, updating
+  /* Set the height of the window named NAME to NEW_HEIGHT, updating
      the sizes of the other windows around it.  */
-  virtual tui_adjust_result adjust_size (const char *name, int new_height) = 0;
+  virtual tui_adjust_result set_height (const char *name, int new_height) = 0;
 
   /* Remove some windows from the layout, leaving the command window
      and the window being passed in here.  */
@@ -127,7 +127,7 @@ public:
     return m_contents.c_str ();
   }
 
-  tui_adjust_result adjust_size (const char *name, int new_height) override
+  tui_adjust_result set_height (const char *name, int new_height) override
   {
     return m_contents == name ? FOUND : NOT_FOUND;
   }
@@ -192,7 +192,7 @@ public:
 
   void apply (int x, int y, int width, int height) override;
 
-  tui_adjust_result adjust_size (const char *name, int new_height) override;
+  tui_adjust_result set_height (const char *name, int new_height) override;
 
   bool top_boxed_p () const override;


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-04-03 14:42 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-03 14:42 [binutils-gdb] gdb/tui: rename tui_layout_base::adjust_size to ::set_height Andrew Burgess

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).