mirror of
https://github.com/ZoiteChat/zoitechat.git
synced 2026-03-12 08:40:19 +00:00
Eliminate some more warnings
This commit is contained in:
@@ -573,7 +573,7 @@ fe_get_str (char *msg, char *def, void *callback, void *userdata)
|
||||
NULL);
|
||||
gtk_box_set_homogeneous (GTK_BOX (GTK_DIALOG (dialog)->vbox), TRUE);
|
||||
|
||||
if ((int*) userdata == 1) /* nick box is usually on the very bottom, make it centered */
|
||||
if ((int) userdata == 1) /* nick box is usually on the very bottom, make it centered */
|
||||
{
|
||||
gtk_window_set_position (GTK_WINDOW (dialog), GTK_WIN_POS_CENTER);
|
||||
}
|
||||
|
||||
@@ -2641,7 +2641,7 @@ static void
|
||||
mg_nickclick_cb (GtkWidget *button, gpointer userdata)
|
||||
{
|
||||
fe_get_str (_("Enter new nickname:"), current_sess->server->nick,
|
||||
mg_change_nick, 1);
|
||||
mg_change_nick, (void *) 1);
|
||||
}
|
||||
|
||||
/* make sure chanview and userlist positions are sane */
|
||||
|
||||
@@ -376,7 +376,7 @@ tray_toggle_visibility (gboolean force_hide)
|
||||
/* ph may have an invalid context now */
|
||||
hexchat_set_context (ph, hexchat_find_context (ph, NULL, NULL));
|
||||
|
||||
win = hexchat_get_info (ph, "gtkwin_ptr");
|
||||
win = GTK_WINDOW (hexchat_get_info (ph, "gtkwin_ptr"));
|
||||
|
||||
tray_stop_flash ();
|
||||
tray_reset_counts ();
|
||||
|
||||
@@ -2179,7 +2179,7 @@ gtk_xtext_set_clip_owner (GtkWidget * xtext, GdkEventButton * event)
|
||||
void
|
||||
gtk_xtext_copy_selection (GtkXText *xtext)
|
||||
{
|
||||
gtk_xtext_set_clip_owner (xtext, NULL);
|
||||
gtk_xtext_set_clip_owner (GTK_WIDGET (xtext), NULL);
|
||||
}
|
||||
|
||||
static void
|
||||
@@ -4057,7 +4057,7 @@ gtk_xtext_load_trans (GtkXText * xtext)
|
||||
ReleaseDC (hwnd, hdc);
|
||||
|
||||
gdk_drawable_get_size (GTK_WIDGET (xtext)->window, &width, &height);
|
||||
img = gdk_image_get (GTK_WIDGET (xtext)->window, 0, 0, width+128, height);
|
||||
img = gdk_drawable_get_image (GTK_WIDGET (xtext)->window, 0, 0, width+128, height);
|
||||
xtext->pixmap = win32_tint (xtext, img, img->width, img->height);
|
||||
|
||||
#else
|
||||
|
||||
Reference in New Issue
Block a user