summaryrefslogtreecommitdiff
path: root/src/gui/gui-window.c
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2023-01-27 21:45:49 +0100
committerSébastien Helleu <flashcode@flashtux.org>2023-01-28 15:14:24 +0100
commitfbeab26a3510680a5ad1753bf554b70b9a78a336 (patch)
tree9930db9909e86ae01c20ab06aba7b803018a3652 /src/gui/gui-window.c
parentc07cf691adb4740759e9fd128a2f6702c912d70f (diff)
downloadweechat-fbeab26a3510680a5ad1753bf554b70b9a78a336.zip
core, plugins: replace calls to string_str(n)cmp by str(n)cmp (issue #1872)
Diffstat (limited to 'src/gui/gui-window.c')
-rw-r--r--src/gui/gui-window.c46
1 files changed, 23 insertions, 23 deletions
diff --git a/src/gui/gui-window.c b/src/gui/gui-window.c
index 6abd65584..6cb8fc007 100644
--- a/src/gui/gui-window.c
+++ b/src/gui/gui-window.c
@@ -771,33 +771,33 @@ gui_window_get_integer (struct t_gui_window *window, const char *property)
if (!window || !property)
return 0;
- if (string_strcmp (property, "number") == 0)
+ if (strcmp (property, "number") == 0)
return window->number;
- if (string_strcmp (property, "win_x") == 0)
+ if (strcmp (property, "win_x") == 0)
return window->win_x;
- if (string_strcmp (property, "win_y") == 0)
+ if (strcmp (property, "win_y") == 0)
return window->win_y;
- if (string_strcmp (property, "win_width") == 0)
+ if (strcmp (property, "win_width") == 0)
return window->win_width;
- if (string_strcmp (property, "win_height") == 0)
+ if (strcmp (property, "win_height") == 0)
return window->win_height;
- if (string_strcmp (property, "win_width_pct") == 0)
+ if (strcmp (property, "win_width_pct") == 0)
return window->win_width_pct;
- if (string_strcmp (property, "win_height_pct") == 0)
+ if (strcmp (property, "win_height_pct") == 0)
return window->win_height_pct;
- if (string_strcmp (property, "win_chat_x") == 0)
+ if (strcmp (property, "win_chat_x") == 0)
return window->win_chat_x;
- if (string_strcmp (property, "win_chat_y") == 0)
+ if (strcmp (property, "win_chat_y") == 0)
return window->win_chat_y;
- if (string_strcmp (property, "win_chat_width") == 0)
+ if (strcmp (property, "win_chat_width") == 0)
return window->win_chat_width;
- if (string_strcmp (property, "win_chat_height") == 0)
+ if (strcmp (property, "win_chat_height") == 0)
return window->win_chat_height;
- if (string_strcmp (property, "first_line_displayed") == 0)
+ if (strcmp (property, "first_line_displayed") == 0)
return window->scroll->first_line_displayed;
- if (string_strcmp (property, "scrolling") == 0)
+ if (strcmp (property, "scrolling") == 0)
return window->scroll->scrolling;
- if (string_strcmp (property, "lines_after") == 0)
+ if (strcmp (property, "lines_after") == 0)
return window->scroll->lines_after;
return 0;
@@ -823,16 +823,16 @@ gui_window_get_string (struct t_gui_window *window, const char *property)
void *
gui_window_get_pointer (struct t_gui_window *window, const char *property)
{
- if (property)
- {
- if (string_strcmp (property, "current") == 0)
- return gui_current_window;
+ if (!property)
+ return NULL;
- if (window)
- {
- if (string_strcmp (property, "buffer") == 0)
- return window->buffer;
- }
+ if (strcmp (property, "current") == 0)
+ return gui_current_window;
+
+ if (window)
+ {
+ if (strcmp (property, "buffer") == 0)
+ return window->buffer;
}
return NULL;