summaryrefslogtreecommitdiff
path: root/gtk
diff options
context:
space:
mode:
authorHans Breuer <hans@breuer.org>2007-01-13 21:13:28 +0000
committerHans Breuer <hans@src.gnome.org>2007-01-13 21:13:28 +0000
commit3f403cde24615bd460e792d81c592ef71d2f01aa (patch)
tree6151959deed992303d3f8bc372110ae01b313042 /gtk
parentadcdfcd59f6d3dfe84a95e3d49a0b34f1c4dd4a3 (diff)
downloadgtk+-3f403cde24615bd460e792d81c592ef71d2f01aa.tar.gz
don't include "gtkprivate.h" to avoid differing definitions of
2007-01-13 Hans Breuer <hans@breuer.org> * gtk/gtkimmulticontext.c : don't include "gtkprivate.h" to avoid differing definitions of GTK_LOCALEDIR (bug #396175). * gtk/gtktreeview.c : use g_snprintf instead of snprintf, which is not available everywhere * gtk/makefile.msc.in : updated svn path=/trunk/; revision=17137
Diffstat (limited to 'gtk')
-rw-r--r--gtk/gtkimmulticontext.c10
-rw-r--r--gtk/gtktreeview.c8
-rw-r--r--gtk/makefile.msc.in32
3 files changed, 38 insertions, 12 deletions
diff --git a/gtk/gtkimmulticontext.c b/gtk/gtkimmulticontext.c
index b1b1c913c6..7129dfe637 100644
--- a/gtk/gtkimmulticontext.c
+++ b/gtk/gtkimmulticontext.c
@@ -27,9 +27,17 @@
#include "gtkmain.h"
#include "gtkradiomenuitem.h"
#include "gtkintl.h"
-#include "gtkprivate.h"
#include "gtkalias.h"
+/* Do *not* include "gtkprivate.h" in this file. If you do, the
+ * the two definitions of GTK_LOCALEDIR will trigger a wrong
+ * warning in gtk_im_multicontext_append_menuitems()
+ */
+
+#ifdef __GTK_PRIVATE_H__
+#error gtkprivate.h should not be included in this file
+#endif
+
struct _GtkIMMulticontextPrivate
{
GdkWindow *client_window;
diff --git a/gtk/gtktreeview.c b/gtk/gtktreeview.c
index 2a6a462f44..3a3cc8a927 100644
--- a/gtk/gtktreeview.c
+++ b/gtk/gtktreeview.c
@@ -4390,13 +4390,13 @@ gtk_tree_view_bin_expose (GtkWidget *widget,
* less messy way).
*/
if (is_first && is_last)
- snprintf (new_detail, 127, "%s", detail);
+ g_snprintf (new_detail, 127, "%s", detail);
else if (is_first)
- snprintf (new_detail, 127, "%s_start", detail);
+ g_snprintf (new_detail, 127, "%s_start", detail);
else if (is_last)
- snprintf (new_detail, 127, "%s_end", detail);
+ g_snprintf (new_detail, 127, "%s_end", detail);
else
- snprintf (new_detail, 128, "%s_middle", detail);
+ g_snprintf (new_detail, 128, "%s_middle", detail);
gtk_paint_flat_box (widget->style,
event->window,
diff --git a/gtk/makefile.msc.in b/gtk/makefile.msc.in
index b5c7d71171..6121ce4a7d 100644
--- a/gtk/makefile.msc.in
+++ b/gtk/makefile.msc.in
@@ -37,7 +37,9 @@ DEFINES = \
-DPANGO_ENABLE_BACKEND \
-DGTK_VERSION=\"$(GTK_VER)\" -DGTK_BINARY_VERSION=\"$(GTK_BINARY_VERSION)\" \
-DGTK_HOST=\"win32\" \
- -DGTK_FILE_SYSTEM_ENABLE_UNSUPPORTED
+ -DGTK_FILE_SYSTEM_ENABLE_UNSUPPORTED \
+ -DGTK_PRINT_BACKENDS=\"file,lpr\" \
+ -DGTK_PRINT_PREVIEW_COMMAND="\"evince --unlink-tempfile --preview %f\""
TOUCH = copy makefile.msc+nul
@@ -135,6 +137,7 @@ gtk_OBJECTS = \
gtkfilechooserdialog.obj \
gtkfilechooserembed.obj \
gtkfilechooserentry.obj \
+ gtkfilechoosersettings.obj \
gtkfilechooserutils.obj \
gtkfilechooserwidget.obj \
gtkfilefilter.obj \
@@ -194,12 +197,21 @@ gtk_OBJECTS = \
gtkobject.obj \
gtkoldeditable.obj \
gtkoptionmenu.obj \
+ gtkpagesetup.obj \
gtkpaned.obj \
+ gtkpapersize.obj \
gtkpathbar.obj \
gtkpixmap.obj \
gtkplug.obj \
gtkplug-win32.obj \
- gtkpreview.obj \
+ gtkpreview.obj \
+ gtkprint-win32.obj \
+ gtkprintcontext.obj \
+ gtkprintoperation.obj \
+ gtkprintoperationpreview.obj \
+ gtkprintoperation-win32.obj \
+ gtkprintsettings.obj \
+ gtkprintutils.obj \
gtkprogress.obj \
gtkprogressbar.obj \
gtkradioaction.obj \
@@ -289,6 +301,7 @@ gtk_OBJECTS = \
gtkvseparator.obj \
gtkwidget.obj \
gtkwin32embed.obj \
+ gtkwin32embedwidget.obj \
gtkwindow.obj \
gtkwindow-decorate.obj
@@ -399,10 +412,15 @@ gtk_public_h_sources = \
gtkobject.h \
gtkoldeditable.h \
gtkoptionmenu.h \
+ gtkpagesetup.h \
gtkpaned.h \
+ gtkpapersize.h \
gtkpixmap.h \
gtkplug.h \
gtkpreview.h \
+ gtkprintcontext.h \
+ gtkprintoperation.h \
+ gtkprintsettings.h \
gtkprivate.h \
gtkprogress.h \
gtkprogressbar.h \
@@ -503,8 +521,8 @@ generated : $(GENERATED)
gtk.def: gtk.symbols makefile.msc
echo EXPORTS > gtk.def
cl /EP -DINCLUDE_VARIABLES -DG_OS_WIN32 -DALL_FILES \
- -DG_GNUC_CONST= -DG_GNUC_NULL_TERMINATED= \
- gtk.symbols >> gtk.def
+ -DG_GNUC_MALLOC= -DG_GNUC_CONST= -DG_GNUC_NULL_TERMINATED= -DG_GNUC_NORETURN= \
+ -DG_GNUC_PRINTF=;G_GNUC_PRINTF gtk.symbols >> gtk.def
gtkalias.h: gtk.symbols
cl /EP -DG_OS_WIN32 -DGTK_WINDOWING_WIN32 -DINCLUDE_INTERNAL_SYMBOLS gtk.symbols | $(PERL) makegtkalias.pl > gtkalias.h
@@ -564,7 +582,7 @@ libgtk-win32-$(GTK_VER)-0.dll : $(gtk_OBJECTS) gtk.def gtk-win32.res
$(CC) $(CFLAGS) -LD -Fm -Fe$@ $(gtk_OBJECTS) gtk-win32.res \
$(GDK_LIBS) $(GDK_PIXBUF_LIBS) $(PANGO_LIBS) $(INTL_LIBS) $(GLIB_LIBS) $(GMODULE_LIBS) \
$(CAIRO_LIBS) $(PANGOCAIRO_LIBS) \
- gdi32.lib user32.lib advapi32.lib wsock32.lib shell32.lib ole32.lib \
+ gdi32.lib user32.lib advapi32.lib wsock32.lib shell32.lib ole32.lib comdlg32.lib winspool.lib comctl32.lib \
$(LDFLAGS) /implib:gtk-win32-$(GTK_VER).lib /def:gtk.def
gtk-win32-$(GTK_VER)s.lib : $(gtk_OBJECTS)
@@ -574,14 +592,14 @@ gtk-query-immodules-$(GTK_VER).exe : queryimmodules.obj
$(CC) $(CFLAGS) -Fe$@ queryimmodules.obj $(GTK_LIBS) $(GLIB_LIBS) $(PANGO_LIBS) $(LDFLAGS)
gtk-update-icon-cache.exe : updateiconcache.obj
- $(CC) $(CFLAGS) -Fe$@ updateiconcache.obj $(GDK_PIXBUF_LIBS) $(GLIB_LIBS) $(PANGO_LIBS) $(LDFLAGS)
+ $(CC) $(CFLAGS) -Fe$@ updateiconcache.obj $(GDK_PIXBUF_LIBS) $(GLIB_LIBS) $(INTL_LIBS) $(PANGO_LIBS) $(LDFLAGS)
gtk-x11-$(GTK_VER).dll : $(gtk_OBJECTS) gtk.def
$(CC) $(CFLAGS) -LD -Fm -Fegtk-x11-$(GTK_VER).dll $(gtk_OBJECTS) ../gdk/gdk-x11-$(GTK_VER).lib $(GDK_PIXBUF_LIBS) $(PANGO_LIBS) $(INTL_LIBS) $(GLIB_LIBS) gdi32.lib user32.lib advapi32.lib $(LDFLAGS) /def:gtk.def
# General rule for compiling the objects into the DLL
.c.obj :
- $(CC) $(CFLAGS) -Gf -Zm400 -GD -c -DGTK_COMPILATION -DG_LOG_DOMAIN=\"Gtk\" $<
+ $(CC) $(CFLAGS) -GF -Zm400 -GD -c -DGTK_COMPILATION -DG_LOG_DOMAIN=\"Gtk\" $<
$(EXAMPLE).obj : ..\examples\$(EXAMPLE)\$(EXAMPLE).c
$(CC) $(CFLAGS) -c -DG_LOG_DOMAIN=\"$(EXAMPLE)\" ..\examples\$(EXAMPLE)\$(EXAMPLE).c