Commit 3411287e authored by Matthias Clasen's avatar Matthias Clasen Committed by Matthias Clasen

Don't try to use xdgmime on Windows where we don't build it. (#157944, J.


2004-11-11  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtkfilefilter.c: Don't try to use xdgmime on
	Windows where we don't build it.   (#157944, J. Ali Harlow)
parent 73b0f2bc
2004-11-11 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkfilefilter.c: Don't try to use xdgmime on
Windows where we don't build it. (#157944, J. Ali Harlow)
* gtk/gtkstatusbar.c (gtk_statusbar_size_allocate): Also
reserve space for the resize grip if the grip_window is not
realized yet. (#158010, Christian Persch)
......
2004-11-11 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkfilefilter.c: Don't try to use xdgmime on
Windows where we don't build it. (#157944, J. Ali Harlow)
* gtk/gtkstatusbar.c (gtk_statusbar_size_allocate): Also
reserve space for the resize grip if the grip_window is not
realized yet. (#158010, Christian Persch)
......
2004-11-11 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkfilefilter.c: Don't try to use xdgmime on
Windows where we don't build it. (#157944, J. Ali Harlow)
* gtk/gtkstatusbar.c (gtk_statusbar_size_allocate): Also
reserve space for the resize grip if the grip_window is not
realized yet. (#158010, Christian Persch)
......
2004-11-11 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkfilefilter.c: Don't try to use xdgmime on
Windows where we don't build it. (#157944, J. Ali Harlow)
* gtk/gtkstatusbar.c (gtk_statusbar_size_allocate): Also
reserve space for the resize grip if the grip_window is not
realized yet. (#158010, Christian Persch)
......
......@@ -26,8 +26,10 @@
#include "gtkobject.h"
#include "gtkprivate.h"
#ifdef G_OS_UNIX
#define XDG_PREFIX _gtk_xdg
#include "xdgmime/xdgmime.h"
#endif
typedef struct _GtkFileFilterClass GtkFileFilterClass;
typedef struct _FilterRule FilterRule;
......@@ -406,7 +408,11 @@ gtk_file_filter_filter (GtkFileFilter *filter,
{
case FILTER_RULE_MIME_TYPE:
if (filter_info->mime_type != NULL
#ifdef G_OS_UNIX
&& xdg_mime_mime_type_subclass (filter_info->mime_type, rule->u.mime_type))
#else
&& strcmp (rule->u.mime_type, filter_info->mime_type) == 0)
#endif
return TRUE;
break;
case FILTER_RULE_PATTERN:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment