aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2021-04-20 22:03:31 +0200
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2021-04-20 22:38:33 +0200
commitade4d68c4573b0e2686a012055dff3cc1186c408 (patch)
tree6241afe831f7a1fabb107d5e1b256d2d7a4be6bd
parentad0e92274dc2623e68ecc0416f6d55478661f5f5 (diff)
downloadlibayatana-indicator-ade4d68c4573b0e2686a012055dff3cc1186c408.tar.gz
libayatana-indicator-ade4d68c4573b0e2686a012055dff3cc1186c408.tar.bz2
libayatana-indicator-ade4d68c4573b0e2686a012055dff3cc1186c408.zip
libayatana-indicator/indicator-ng.c: Stricter type usage when comparing Integer like variable.
-rw-r--r--libayatana-indicator/indicator-ng.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libayatana-indicator/indicator-ng.c b/libayatana-indicator/indicator-ng.c
index d39a073..f057600 100644
--- a/libayatana-indicator/indicator-ng.c
+++ b/libayatana-indicator/indicator-ng.c
@@ -303,7 +303,7 @@ static void indicator_ng_menu_size_allocate(__attribute__((unused)) GtkWidget *p
gint nHeightNat;
gtk_widget_get_preferred_width(pMenuItem->data, NULL, &nWidthNat);
gtk_widget_get_preferred_height(pMenuItem->data, NULL, &nHeightNat);
- nWidth = MAX(nWidth, nWidthNat);
+ nWidth = MAX((gint)nWidth, nWidthNat);
nHeight += nHeightNat;
GtkBorder cPadding;
GtkStyleContext *pContext = gtk_widget_get_style_context(GTK_WIDGET(pMenuItem->data));
@@ -327,12 +327,12 @@ static void indicator_ng_menu_size_allocate(__attribute__((unused)) GtkWidget *p
GdkMonitor *pMonitor = gdk_display_get_primary_monitor(pDisplay);
gdk_monitor_get_workarea(pMonitor, &cRectangle);
- if (nHeight <= cRectangle.height)
+ if ((gint)nHeight <= cRectangle.height)
{
gdk_window_move_resize(pWindowBin, 0, 0, nWidth, nHeight);
}
- nHeight = MIN(nHeight, cRectangle.height);
+ nHeight = MIN((gint)nHeight, cRectangle.height);
GdkWindow *pWindow = gtk_widget_get_parent_window(GTK_WIDGET(self->entry.menu));
gdk_window_resize(pWindow, nWidth, nHeight);
@@ -434,7 +434,7 @@ static void indicator_ng_menu_shown(__attribute__((unused)) GtkWidget *pWidget,
{
guint nSections = g_menu_model_get_n_items(self->lMenuSections[0]);
- for (gint nSection = 0; nSection < nSections; nSection++)
+ for (guint nSection = 0; nSection < nSections; nSection++)
{
self->lMenuSections[++nSectionCount] = g_menu_model_get_item_link(self->lMenuSections[0], nSection, G_MENU_LINK_SECTION);