mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-05 16:20:10 +00:00
missing #include <ctype.h>.
2007-05-23 Yevgen Muntyan <muntyan@tamu.edu> * gtk/gtkprintunixdialog.c: missing #include <ctype.h>. * gtk/gtkhandlebox.c (gtk_handle_box_paint): * gtk/gtkpagesetupunixdialog.c (_gtk_load_custom_papers): * gtk/gtkstatusbar.c (gtk_statusbar_get_context_id): * gtk/gtkiconcache.c (_gtk_icon_cache_new_for_path): * gtk/gtktrayicon-x11.c (gtk_tray_icon_send_dock_request): * gtk/gtkpreview.c (gtk_preview_finalize): * gtk/gtknotebook.c (gtk_notebook_set_group_id): * tests/testnotebookdnd.c (window_creation_function): * tests/testiconview.c (do_popup_menu): Fixed some compiler warnings (#440689). svn path=/trunk/; revision=17898
This commit is contained in:
parent
c3bbd06de3
commit
1a534510aa
15
ChangeLog
15
ChangeLog
@ -1,3 +1,18 @@
|
||||
2007-05-23 Yevgen Muntyan <muntyan@tamu.edu>
|
||||
|
||||
* gtk/gtkprintunixdialog.c: missing #include <ctype.h>.
|
||||
|
||||
* gtk/gtkhandlebox.c (gtk_handle_box_paint):
|
||||
* gtk/gtkpagesetupunixdialog.c (_gtk_load_custom_papers):
|
||||
* gtk/gtkstatusbar.c (gtk_statusbar_get_context_id):
|
||||
* gtk/gtkiconcache.c (_gtk_icon_cache_new_for_path):
|
||||
* gtk/gtktrayicon-x11.c (gtk_tray_icon_send_dock_request):
|
||||
* gtk/gtkpreview.c (gtk_preview_finalize):
|
||||
* gtk/gtknotebook.c (gtk_notebook_set_group_id):
|
||||
* tests/testnotebookdnd.c (window_creation_function):
|
||||
* tests/testiconview.c (do_popup_menu):
|
||||
Fixed some compiler warnings (#440689).
|
||||
|
||||
2007-05-23 Kristian Rietveld <kris@imendio.com>
|
||||
|
||||
* gtk/gtktooltip.c (find_widget_under_pointer): translate coordinates
|
||||
|
@ -858,7 +858,7 @@ gtk_handle_box_paint (GtkWidget *widget,
|
||||
{
|
||||
GtkBin *bin;
|
||||
GtkHandleBox *hb;
|
||||
guint width, height;
|
||||
gint width, height;
|
||||
GdkRectangle rect;
|
||||
GdkRectangle dest;
|
||||
gint handle_position;
|
||||
|
@ -89,7 +89,6 @@ _gtk_icon_cache_new_for_path (const gchar *path)
|
||||
gint fd = -1;
|
||||
struct stat st;
|
||||
struct stat path_st;
|
||||
gchar *buffer = NULL;
|
||||
CacheInfo info;
|
||||
|
||||
/* Check if we have a cache file */
|
||||
|
@ -7275,7 +7275,6 @@ void
|
||||
gtk_notebook_set_group_id (GtkNotebook *notebook,
|
||||
gint group_id)
|
||||
{
|
||||
GtkNotebookPrivate *priv;
|
||||
gpointer group;
|
||||
|
||||
g_return_if_fail (GTK_IS_NOTEBOOK (notebook));
|
||||
|
@ -206,7 +206,6 @@ _gtk_load_custom_papers (void)
|
||||
for (i = 0; i < n_groups; ++i)
|
||||
{
|
||||
GtkPageSetup *page_setup;
|
||||
GtkTreeIter iter;
|
||||
|
||||
page_setup = gtk_page_setup_new_from_key_file (keyfile, groups[i], NULL);
|
||||
if (!page_setup)
|
||||
|
@ -416,7 +416,6 @@ gtk_preview_finalize (GObject *object)
|
||||
|
||||
preview = GTK_PREVIEW (object);
|
||||
g_free (preview->buffer);
|
||||
preview->type = (GtkPreviewType) -1;
|
||||
|
||||
G_OBJECT_CLASS (gtk_preview_parent_class)->finalize (object);
|
||||
}
|
||||
|
@ -21,6 +21,7 @@
|
||||
#include "config.h"
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <ctype.h>
|
||||
#include <stdio.h>
|
||||
#include <math.h>
|
||||
|
||||
|
@ -268,7 +268,7 @@ gtk_statusbar_get_context_id (GtkStatusbar *statusbar,
|
||||
const gchar *context_description)
|
||||
{
|
||||
gchar *string;
|
||||
guint *id;
|
||||
guint id;
|
||||
|
||||
g_return_val_if_fail (GTK_IS_STATUSBAR (statusbar), 0);
|
||||
g_return_val_if_fail (context_description != NULL, 0);
|
||||
|
@ -305,8 +305,8 @@ static void
|
||||
gtk_tray_icon_send_dock_request (GtkTrayIcon *icon)
|
||||
{
|
||||
GTK_NOTE (PLUGSOCKET,
|
||||
g_print ("GtkStatusIcon %p: sending dock request to manager window %x\n",
|
||||
icon, icon->priv->manager_window));
|
||||
g_print ("GtkStatusIcon %p: sending dock request to manager window %lx\n",
|
||||
icon, (gulong) icon->priv->manager_window));
|
||||
|
||||
gtk_tray_icon_send_manager_message (icon,
|
||||
SYSTEM_TRAY_REQUEST_DOCK,
|
||||
@ -323,8 +323,8 @@ gtk_tray_icon_update_manager_window (GtkTrayIcon *icon)
|
||||
g_return_if_fail (GTK_WIDGET_REALIZED (icon));
|
||||
|
||||
GTK_NOTE (PLUGSOCKET,
|
||||
g_print ("GtkStatusIcon %p: updating tray icon manager window, current manager window: %x\n",
|
||||
icon, icon->priv->manager_window));
|
||||
g_print ("GtkStatusIcon %p: updating tray icon manager window, current manager window: %lx\n",
|
||||
icon, (gulong) icon->priv->manager_window));
|
||||
|
||||
if (icon->priv->manager_window != None)
|
||||
return;
|
||||
@ -351,8 +351,8 @@ gtk_tray_icon_update_manager_window (GtkTrayIcon *icon)
|
||||
GdkWindow *gdkwin;
|
||||
|
||||
GTK_NOTE (PLUGSOCKET,
|
||||
g_print ("GtkStatusIcon %p: is being managed by window %x\n",
|
||||
icon, icon->priv->manager_window));
|
||||
g_print ("GtkStatusIcon %p: is being managed by window %lx\n",
|
||||
icon, (gulong) icon->priv->manager_window));
|
||||
|
||||
gdkwin = gdk_window_lookup_for_display (gtk_widget_get_display (GTK_WIDGET (icon)),
|
||||
icon->priv->manager_window);
|
||||
@ -392,8 +392,8 @@ gtk_tray_icon_delete (GtkWidget *widget,
|
||||
GtkTrayIcon *icon = GTK_TRAY_ICON (widget);
|
||||
|
||||
GTK_NOTE (PLUGSOCKET,
|
||||
g_print ("GtkStatusIcon %p: delete notify, tray manager window %x\n",
|
||||
icon, icon->priv->manager_window));
|
||||
g_print ("GtkStatusIcon %p: delete notify, tray manager window %lx\n",
|
||||
icon, (gulong) icon->priv->manager_window));
|
||||
|
||||
gtk_widget_hide (widget);
|
||||
gtk_widget_unrealize (widget);
|
||||
@ -416,11 +416,11 @@ gtk_tray_icon_realize (GtkWidget *widget)
|
||||
GTK_WIDGET_CLASS (gtk_tray_icon_parent_class)->realize (widget);
|
||||
|
||||
GTK_NOTE (PLUGSOCKET,
|
||||
g_print ("GtkStatusIcon %p: realized, window: %x, socket window: %x\n",
|
||||
g_print ("GtkStatusIcon %p: realized, window: %lx, socket window: %lx\n",
|
||||
widget,
|
||||
GDK_WINDOW_XWINDOW (widget->window),
|
||||
(gulong) GDK_WINDOW_XWINDOW (widget->window),
|
||||
GTK_PLUG (icon)->socket_window ?
|
||||
GDK_WINDOW_XWINDOW (GTK_PLUG (icon)->socket_window) : 0));
|
||||
(gulong) GDK_WINDOW_XWINDOW (GTK_PLUG (icon)->socket_window) : 0UL));
|
||||
|
||||
screen = gtk_widget_get_screen (widget);
|
||||
display = gdk_screen_get_display (screen);
|
||||
|
@ -346,7 +346,7 @@ do_popup_menu (GtkWidget *icon_list,
|
||||
if (list)
|
||||
{
|
||||
path = (GtkTreePath*)list->data;
|
||||
g_list_foreach (list->next, gtk_tree_path_free, NULL);
|
||||
g_list_foreach (list->next, (GFunc) gtk_tree_path_free, NULL);
|
||||
g_list_free (list);
|
||||
}
|
||||
}
|
||||
|
@ -79,8 +79,8 @@ window_creation_function (GtkNotebook *source_notebook,
|
||||
window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
|
||||
notebook = gtk_notebook_new ();
|
||||
|
||||
gtk_notebook_set_group_id (GTK_NOTEBOOK (notebook),
|
||||
gtk_notebook_get_group_id (source_notebook));
|
||||
gtk_notebook_set_group (GTK_NOTEBOOK (notebook),
|
||||
gtk_notebook_get_group (source_notebook));
|
||||
|
||||
gtk_container_add (GTK_CONTAINER (window), notebook);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user