mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-10 10:50:10 +00:00
use g_file_test() instead of long deprecated g_scanner_stat_mode().
Sun Jul 29 17:14:01 2001 Tim Janik <timj@gtk.org> * gtk/gtkitemfactory.c (gtk_item_factory_parse_rc): use g_file_test() instead of long deprecated g_scanner_stat_mode().
This commit is contained in:
parent
da155bb731
commit
2d90383caa
@ -1,3 +1,8 @@
|
||||
Sun Jul 29 17:14:01 2001 Tim Janik <timj@gtk.org>
|
||||
|
||||
* gtk/gtkitemfactory.c (gtk_item_factory_parse_rc): use g_file_test()
|
||||
instead of long deprecated g_scanner_stat_mode().
|
||||
|
||||
2001-07-29 Hans Breuer <hans@breuer.org>
|
||||
|
||||
* gdk/makefile.msc : build in the backend dir after
|
||||
|
@ -1,3 +1,8 @@
|
||||
Sun Jul 29 17:14:01 2001 Tim Janik <timj@gtk.org>
|
||||
|
||||
* gtk/gtkitemfactory.c (gtk_item_factory_parse_rc): use g_file_test()
|
||||
instead of long deprecated g_scanner_stat_mode().
|
||||
|
||||
2001-07-29 Hans Breuer <hans@breuer.org>
|
||||
|
||||
* gdk/makefile.msc : build in the backend dir after
|
||||
|
@ -1,3 +1,8 @@
|
||||
Sun Jul 29 17:14:01 2001 Tim Janik <timj@gtk.org>
|
||||
|
||||
* gtk/gtkitemfactory.c (gtk_item_factory_parse_rc): use g_file_test()
|
||||
instead of long deprecated g_scanner_stat_mode().
|
||||
|
||||
2001-07-29 Hans Breuer <hans@breuer.org>
|
||||
|
||||
* gdk/makefile.msc : build in the backend dir after
|
||||
|
@ -1,3 +1,8 @@
|
||||
Sun Jul 29 17:14:01 2001 Tim Janik <timj@gtk.org>
|
||||
|
||||
* gtk/gtkitemfactory.c (gtk_item_factory_parse_rc): use g_file_test()
|
||||
instead of long deprecated g_scanner_stat_mode().
|
||||
|
||||
2001-07-29 Hans Breuer <hans@breuer.org>
|
||||
|
||||
* gdk/makefile.msc : build in the backend dir after
|
||||
|
@ -1,3 +1,8 @@
|
||||
Sun Jul 29 17:14:01 2001 Tim Janik <timj@gtk.org>
|
||||
|
||||
* gtk/gtkitemfactory.c (gtk_item_factory_parse_rc): use g_file_test()
|
||||
instead of long deprecated g_scanner_stat_mode().
|
||||
|
||||
2001-07-29 Hans Breuer <hans@breuer.org>
|
||||
|
||||
* gdk/makefile.msc : build in the backend dir after
|
||||
|
@ -1,3 +1,8 @@
|
||||
Sun Jul 29 17:14:01 2001 Tim Janik <timj@gtk.org>
|
||||
|
||||
* gtk/gtkitemfactory.c (gtk_item_factory_parse_rc): use g_file_test()
|
||||
instead of long deprecated g_scanner_stat_mode().
|
||||
|
||||
2001-07-29 Hans Breuer <hans@breuer.org>
|
||||
|
||||
* gdk/makefile.msc : build in the backend dir after
|
||||
|
@ -1,3 +1,8 @@
|
||||
Sun Jul 29 17:14:01 2001 Tim Janik <timj@gtk.org>
|
||||
|
||||
* gtk/gtkitemfactory.c (gtk_item_factory_parse_rc): use g_file_test()
|
||||
instead of long deprecated g_scanner_stat_mode().
|
||||
|
||||
2001-07-29 Hans Breuer <hans@breuer.org>
|
||||
|
||||
* gdk/makefile.msc : build in the backend dir after
|
||||
|
@ -384,6 +384,12 @@ Use to get the value of a GtkArg whose GtkType is GTK_TYPE_C_FOREIGN
|
||||
|
||||
@a:
|
||||
|
||||
<!-- ##### ARG GtkAccelLabel:accel-widget ##### -->
|
||||
<para>
|
||||
The widget whose accelerators are to be shown by the #GtkAccelLabel.
|
||||
</para>
|
||||
|
||||
|
||||
<!-- ##### ARG GtkAccelLabel:accel-width ##### -->
|
||||
<para>
|
||||
|
||||
|
@ -19,10 +19,6 @@ Keyboard Accelerators
|
||||
|
||||
</para>
|
||||
|
||||
@ref_count:
|
||||
@lock_count:
|
||||
@modifier_mask:
|
||||
@attach_objects:
|
||||
|
||||
<!-- ##### STRUCT GtkAccelEntry ##### -->
|
||||
<para>
|
||||
|
@ -94,7 +94,7 @@ Creates a new #GtkAccelLabel.
|
||||
@Returns: a new #GtkAccelLabel.
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gtk_accel_label_set_accel_widget ##### -->
|
||||
<!-- ##### MACRO gtk_accel_label_set_accel_widget ##### -->
|
||||
<para>
|
||||
Sets the widget whose accelerators are to be shown.
|
||||
</para>
|
||||
@ -125,8 +125,8 @@ accelerators are added or removed from the associated widget.
|
||||
@Returns: always returns FALSE.
|
||||
|
||||
|
||||
<!-- ##### ARG GtkAccelLabel:accel-widget ##### -->
|
||||
<!-- ##### ARG GtkAccelLabel:accel-object ##### -->
|
||||
<para>
|
||||
The widget whose accelerators are to be shown by the #GtkAccelLabel.
|
||||
|
||||
</para>
|
||||
|
||||
|
@ -96,9 +96,9 @@ Creates a new #GtkMenu.
|
||||
Adds a new #GtkMenuItem to the end of the menu's item list.
|
||||
</para>
|
||||
|
||||
<!-- # Unused Parameters # -->
|
||||
@m:
|
||||
@c:
|
||||
<!-- # Unused Parameters # -->
|
||||
@menu: a #GtkMenu.
|
||||
@child: The #GtkMenuItem to add.
|
||||
|
||||
@ -108,9 +108,9 @@ Adds a new #GtkMenuItem to the end of the menu's item list.
|
||||
Adds a new #GtkMenuItem to the beginning of the menu's item list.
|
||||
</para>
|
||||
|
||||
<!-- # Unused Parameters # -->
|
||||
@m:
|
||||
@c:
|
||||
<!-- # Unused Parameters # -->
|
||||
@menu: a #GtkMenu.
|
||||
@child: The #GtkMenuItem to add.
|
||||
|
||||
|
@ -495,6 +495,7 @@ This can later be composited together with other
|
||||
#GtkRcStyle structures to form a #GtkStyle.
|
||||
</para>
|
||||
|
||||
@parent_instance:
|
||||
@name:
|
||||
@bg_pixmap_name:
|
||||
@font_desc:
|
||||
|
@ -495,6 +495,8 @@ Styles
|
||||
@state_type:
|
||||
@x:
|
||||
@y:
|
||||
@expander_style:
|
||||
<!-- # Unused Parameters # -->
|
||||
@is_open:
|
||||
|
||||
|
||||
@ -866,6 +868,8 @@ Styles
|
||||
@detail:
|
||||
@x:
|
||||
@y:
|
||||
@expander_style:
|
||||
<!-- # Unused Parameters # -->
|
||||
@is_open:
|
||||
|
||||
|
||||
|
@ -45,7 +45,6 @@
|
||||
#include "gtk/gtkstock.h"
|
||||
#include "gtk/gtkiconfactory.h"
|
||||
#include <string.h>
|
||||
#include <sys/stat.h>
|
||||
#include <fcntl.h>
|
||||
#ifdef HAVE_UNISTD_H
|
||||
#include <unistd.h>
|
||||
@ -1754,7 +1753,7 @@ gtk_item_factory_parse_rc (const gchar *file_name)
|
||||
|
||||
g_return_if_fail (file_name != NULL);
|
||||
|
||||
if (!S_ISREG (g_scanner_stat_mode (file_name)))
|
||||
if (!g_file_test (file_name, G_FILE_TEST_IS_REGULAR))
|
||||
return;
|
||||
|
||||
fd = open (file_name, O_RDONLY);
|
||||
|
Loading…
Reference in New Issue
Block a user