Commit e9d831c8 authored by Jiri (George) Lebl's avatar Jiri (George) Lebl Committed by George Lebl

Compile with G_DISABLE_DEPRECATED and GNOME_DISABLE_DEPRECATED

Sat Dec 22 23:12:54 2001  George Lebl <jirka@5z.com>

	* Makefile.am, foobar-widget.c, gnome-panel-screenshot.c, panel.c,
	  session.c: Compile with G_DISABLE_DEPRECATED and
	  GNOME_DISABLE_DEPRECATED
parent 5e298449
Sat Dec 22 23:12:54 2001 George Lebl <jirka@5z.com>
* Makefile.am, foobar-widget.c, gnome-panel-screenshot.c, panel.c,
session.c: Compile with G_DISABLE_DEPRECATED and
GNOME_DISABLE_DEPRECATED
Sat Dec 22 17:14:50 2001 George Lebl <jirka@5z.com>
* foobar-widget.c, menu.[ch], main.c: redo how the updating of
......
......@@ -13,6 +13,8 @@ INCLUDES = \
-I$(top_srcdir)/gnome-desktop \
-I$(top_builddir)/panel \
-DPANEL_DEBUG \
-DG_DISABLE_DEPRECATED \
-DGNOME_DISABLE_DEPRECATED \
-DGNOME_CORE_INTERNAL \
-DGNOMELOCALEDIR=\""$(datadir)/locale"\" \
-DGNOME_DATADIR=\""$(datadir)"\" \
......@@ -30,7 +32,6 @@ INCLUDES = \
# we want this eventually
#-DGTK_DISABLE_DEPRECATED \
#-DGNOME_DISABLE_DEPRECATED \
#
bin_PROGRAMS = \
......
......@@ -414,7 +414,7 @@ append_format_items (GtkWidget *menu)
hour[sizeof(hour)-1] = '\0'; /* just for sanity */
item = gtk_radio_menu_item_new_with_label (group, hour);
group = gtk_radio_menu_item_group (GTK_RADIO_MENU_ITEM (item));
group = gtk_radio_menu_item_get_group (GTK_RADIO_MENU_ITEM (item));
gtk_menu_shell_append (GTK_MENU_SHELL (menu), item);
g_signal_connect (G_OBJECT (item), "activate",
......
......@@ -265,7 +265,7 @@ start_temporary (void)
* this file is missing, we let nautilus have it and hope
* he chokes on it */
dir = g_dirname (temporary_file);
dir = g_path_get_dirname (temporary_file);
rmdir (dir);
g_free (dir);
......@@ -365,7 +365,7 @@ cleanup_temporary (void)
unlink (file);
dir = g_dirname (file);
dir = g_path_get_dirname (file);
rmdir (dir);
g_free (dir);
}
......
......@@ -933,13 +933,16 @@ drop_directory (PanelWidget *panel, int pos, const char *dir)
tmp = g_find_program_in_path ("gmc-client");
if (tmp != NULL) {
/* gmc */
char *name;
char *exec = g_strdup_printf ("gmc-client "
"--create-window=%s",
panel_quote_string (dir));
g_free (tmp);
load_launcher_applet_from_info (g_basename (dir),
name = g_path_get_basename (dir);
load_launcher_applet_from_info (name,
dir,
exec,
"gnome-folder.png",
......@@ -947,6 +950,7 @@ drop_directory (PanelWidget *panel, int pos, const char *dir)
pos,
TRUE);
g_free (exec);
g_free (name);
} else {
drop_menu (panel, pos, dir);
}
......
......@@ -392,7 +392,7 @@ panel_session_save_panel (PanelData *pd)
"panel-background-pixmap", sure_string (panel->back_pixmap));
g_string_sprintf(buf, "#%02x%02x%02x",
g_string_printf (buf, "#%02x%02x%02x",
(guint)panel->back_color.red/256,
(guint)panel->back_color.green/256,
(guint)panel->back_color.blue/256);
......
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