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

Title item no longer needed, so removed

Sun Dec 09 22:35:26 2001  George Lebl <jirka@5z.com>

	* Makefile.am, title-item*.(c|h|gob):  Title item no longer needed,
	  so removed

	* applet.c: a bit of gdkpixbuf fixage

	* foobar-widget.c: Some warning fixes, also reposition task menu
	  on show, Fix icon unreffage issues, look for default task icon
	  better, when no windows are present add 'No windows open'
 	  insensitive item to the task menu, Actually show the icon on
	  the menu, and strech events for the task item to the right
	  corner

	* panel-util.[ch], foobar-widget.c: add _while_alive wrappers
	  that are sort of like the gtk ones but for GObjects

	* menu.c: gtk_signal_* excorcism

	* xstuff.[ch], gnome-run.c, launcher.c, menu.c, menu-properties.c,
	  panel_config.c: Add a function to show/raise/move to current
	  workspace for windows and use it for all the dialogs where
	  we only always have one copy of.  So that say the run dialog
	  will appear on your workspace even if it's open on another
	  one already

	* session.c: add to the auto-update-menus conversation warning
parent 0893551d
Sun Dec 09 22:35:26 2001 George Lebl <jirka@5z.com>
* Makefile.am, title-item*.(c|h|gob): Title item no longer needed,
so removed
* applet.c: a bit of gdkpixbuf fixage
* foobar-widget.c: Some warning fixes, also reposition task menu
on show, Fix icon unreffage issues, look for default task icon
better, when no windows are present add 'No windows open'
insensitive item to the task menu, Actually show the icon on
the menu, and strech events for the task item to the right
corner
* panel-util.[ch], foobar-widget.c: add _while_alive wrappers
that are sort of like the gtk ones but for GObjects
* menu.c: gtk_signal_* excorcism
* xstuff.[ch], gnome-run.c, launcher.c, menu.c, menu-properties.c,
panel_config.c: Add a function to show/raise/move to current
workspace for windows and use it for all the dialogs where
we only always have one copy of. So that say the run dialog
will appear on your workspace even if it's open on another
one already
* session.c: add to the auto-update-menus conversation warning
2001-12-09 Anders Carlsson <andersca@gnu.org>
* menu.c (get_panel_from_menu_data): Use gtk_menu_get_attach_widget
......
......@@ -68,7 +68,6 @@ panel_sources = \
floating-widget.c \
rgb-stuff.c \
tearoffitem.c \
title-item.c \
panel.c \
applet.c \
logout.c \
......@@ -110,8 +109,6 @@ panel_headers = \
floating-widget.h \
rgb-stuff.h \
tearoffitem.h \
title-item.h \
title-item-private.h \
panel.h \
applet.h \
logout.h \
......@@ -162,7 +159,6 @@ EXTRA_DIST = \
$(glade_DATA) \
gnome-panel-properties.glade.h \
nothing.cP \
title-item.gob \
gnome-panel-screenshot.glade \
gnome-panel-screenshot.glade.h \
$(schema_DATA) \
......
......@@ -489,7 +489,7 @@ applet_setup_panel_menu (gboolean is_basep)
pixbuf = gdk_pixbuf_new_from_file (pixmap_path, NULL);
if (pixbuf) {
if (pixbuf != NULL) {
scaled_pixbuf = gdk_pixbuf_scale_simple (pixbuf,
SMALL_ICON_SIZE,
SMALL_ICON_SIZE,
......@@ -497,9 +497,10 @@ applet_setup_panel_menu (gboolean is_basep)
g_object_unref (pixbuf);
}
if (scaled_pixbuf)
if (scaled_pixbuf != NULL) {
image = gtk_image_new_from_pixbuf (scaled_pixbuf);
g_object_unref (scaled_pixbuf);
g_object_unref (scaled_pixbuf);
}
setup_menuitem (menuitem,
image,
......
......@@ -577,6 +577,9 @@ set_the_task_submenu (FoobarWidget *foo, GtkWidget *item)
foo->task_menu = gtk_menu_new ();
gtk_menu_item_set_submenu (GTK_MENU_ITEM (item), foo->task_menu);
/*g_message ("setting...");*/
g_signal_connect (G_OBJECT (foo->task_menu), "show",
G_CALLBACK (our_gtk_menu_position),
NULL);
}
static void
......@@ -585,13 +588,14 @@ focus_window (GtkWidget *w, WnckWindow *window)
WnckScreen *screen = wnck_screen_get (0 /* FIXME screen number */);
WnckWorkspace *wspace = wnck_screen_get_active_workspace (screen);
wnck_window_move_to_workspace (window, wspace);
if (wspace != NULL)
wnck_window_move_to_workspace (window, wspace);
if (wnck_window_is_minimized (window))
wnck_window_unminimize (window);
wnck_window_activate (window);
}
/* No need to unref, in fact do NOT unref the return */
static GdkPixbuf *
get_default_image (void)
{
......@@ -600,7 +604,15 @@ get_default_image (void)
if (! looked) {
GdkPixbuf *pb = NULL, *scaled = NULL;
pb = gdk_pixbuf_new_from_file (GNOME_ICONDIR"/gnome-tasklist.png", NULL);
char *name = panel_pixmap_discovery ("gnome-tasklist.png", FALSE /* fallback */);
if (name == NULL)
/* evil fallback huh? */
name = panel_pixmap_discovery ("apple-red.png", FALSE /* fallback */);
if (name != NULL) {
pb = gdk_pixbuf_new_from_file (name, NULL);
g_free (name);
}
if (pb != NULL) {
scaled = gdk_pixbuf_scale_simple (pb, 20, 20,
......@@ -663,7 +675,6 @@ add_window (WnckWindow *window, FoobarWidget *foo)
gtk_widget_show (image);
gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (item),
GTK_WIDGET (image));
gdk_pixbuf_unref (pb);
}
label = gtk_label_new (title);
......@@ -693,7 +704,7 @@ create_task_menu (GtkWidget *w, gpointer data)
WnckScreen *screen = wnck_screen_get (0 /* FIXME screen number */);
GList *windows = wnck_screen_get_windows (screen);
/*g_message ("creating...");*/
/* g_message ("creating..."); */
foo->windows = g_hash_table_new (g_direct_hash, g_direct_equal);
separator = add_menu_separator (foo->task_menu);
......@@ -709,9 +720,24 @@ create_task_menu (GtkWidget *w, gpointer data)
gtk_widget_destroy (separator);
}
list = g_list_last (GTK_MENU_SHELL (foo->task_menu)->children);
if (list == NULL) {
GtkWidget *item;
item = gtk_image_menu_item_new_with_label (_("No windows open"));
gtk_widget_set_sensitive (item, FALSE);
gtk_widget_show_all (item);
gtk_menu_shell_append (GTK_MENU_SHELL (foo->task_menu), item);
}
if (GTK_WIDGET_VISIBLE (foo->task_menu))
our_gtk_menu_position (GTK_MENU (foo->task_menu));
/* Owen: don't read the next line */
GTK_MENU_SHELL (GTK_MENU_ITEM (w)->submenu)->active = 1;
our_gtk_menu_position (GTK_MENU (GTK_MENU_ITEM (w)->submenu));
#if 0
GTK_MENU_SHELL (foo->task_menu)->active = 1;
our_gtk_menu_position (GTK_MENU (foo->task_menu));
#endif
}
static void
......@@ -747,9 +773,7 @@ set_das_pixmap (FoobarWidget *foo, WnckWindow *window)
if (pb != NULL) {
foo->task_image = gtk_image_new_from_pixbuf (pb);
gtk_widget_show (foo->task_image);
}
if (foo->task_image != NULL) {
gtk_container_add (GTK_CONTAINER (foo->task_bin),
GTK_WIDGET (foo->task_image));
}
......@@ -759,6 +783,7 @@ static void
append_task_menu (FoobarWidget *foo, GtkMenuShell *menu_bar)
{
foo->task_item = gtk_menu_item_new ();
gtk_widget_show (foo->task_item);
foo->task_bin = gtk_alignment_new (0.3, 0.5, 0.0, 0.0);
gtk_widget_set_usize (foo->task_bin, 25, 20);
......@@ -769,7 +794,7 @@ append_task_menu (FoobarWidget *foo, GtkMenuShell *menu_bar)
panel_strech_events_to_toplevel (foo->task_item,
TRUE /* top */,
FALSE /* right */,
TRUE /* right */,
FALSE /* bottom */,
FALSE /* left */);
}
......@@ -783,10 +808,10 @@ icon_changed (WnckWindow *window, FoobarWidget *foo)
static void
bind_window_changes (WnckWindow *window, FoobarWidget *foo)
{
gtk_signal_connect_while_alive (GTK_OBJECT (window), "icon_changed",
GTK_SIGNAL_FUNC (icon_changed),
foo,
GTK_OBJECT (foo));
panel_signal_connect_while_alive (G_OBJECT (window), "icon_changed",
G_CALLBACK (icon_changed),
foo,
G_OBJECT (foo));
/* XXX: do we care about names changing? */
}
......@@ -866,21 +891,21 @@ setup_task_menu (FoobarWidget *foo)
g_list_foreach (windows, (GFunc)bind_window_changes, foo);
gtk_signal_connect_while_alive (GTK_OBJECT (screen),
"active_window_changed",
GTK_SIGNAL_FUNC (active_window_changed),
foo,
GTK_OBJECT (foo));
gtk_signal_connect_while_alive (GTK_OBJECT (screen),
"window_opened",
GTK_SIGNAL_FUNC (window_opened),
foo,
GTK_OBJECT (foo));
gtk_signal_connect_while_alive (GTK_OBJECT (screen),
"window_closed",
GTK_SIGNAL_FUNC (window_closed),
foo,
GTK_OBJECT (foo));
panel_signal_connect_while_alive (G_OBJECT (screen),
"active_window_changed",
G_CALLBACK (active_window_changed),
foo,
G_OBJECT (foo));
panel_signal_connect_while_alive (G_OBJECT (screen),
"window_opened",
G_CALLBACK (window_opened),
foo,
G_OBJECT (foo));
panel_signal_connect_while_alive (G_OBJECT (screen),
"window_closed",
G_CALLBACK (window_closed),
foo,
G_OBJECT (foo));
}
......
......@@ -46,6 +46,7 @@
#include "menu.h"
#include "multiscreen-stuff.h"
#include "panel-util.h"
#include "xstuff.h"
#define ADVANCED_DIALOG_KEY "advanced_run_dialog"
......@@ -410,10 +411,8 @@ browse(GtkWidget *w, GtkWidget *entry)
GTK_OBJECT (fsel));
gtk_window_position (GTK_WINDOW (fsel), GTK_WIN_POS_MOUSE);
/* we must do show_now so that we can raise the window in the next
* call */
gtk_widget_show_now (GTK_WIDGET (fsel));
gdk_window_raise (GTK_WIDGET (fsel)->window);
xstuff_window_raise_on_current_wspace (GTK_WIDGET (fsel));
}
static gboolean
......@@ -1129,8 +1128,7 @@ show_run_dialog (void)
return;
if(run_dialog != NULL) {
gtk_widget_show_now(run_dialog);
gdk_window_raise(run_dialog->window);
xstuff_window_raise_on_current_wspace (run_dialog);
return;
}
......
......@@ -31,6 +31,7 @@
#include "panel-util.h"
#include "panel_config_global.h"
#include "session.h"
#include "xstuff.h"
#include "gnome-desktop-item.h"
#include "gnome-ditem-edit.h"
......@@ -612,8 +613,7 @@ void
launcher_properties (Launcher *launcher)
{
if (launcher->prop_dialog != NULL) {
gtk_widget_show_now (launcher->prop_dialog);
gdk_window_raise (launcher->prop_dialog->window);
xstuff_window_raise_on_current_wspace (launcher->prop_dialog);
return;
}
......
......@@ -25,6 +25,7 @@
#include "quick-desktop-reader.h"
#include "panel-util.h"
#include "xstuff.h"
#include "menu-properties.h"
......@@ -625,8 +626,7 @@ menu_properties (Menu *menu)
g_return_if_fail (menu != NULL);
if (menu->prop_dialog != NULL) {
gtk_widget_show_now (menu->prop_dialog);
gdk_window_raise (menu->prop_dialog->window);
xstuff_window_raise_on_current_wspace (menu->prop_dialog);
return;
}
......
......@@ -62,6 +62,7 @@
#include "tearoffitem.h"
#include "panel-applet-frame.h"
#include "quick-desktop-reader.h"
#include "xstuff.h"
#undef MENU_DEBUG
......@@ -307,8 +308,7 @@ about_cb (GtkWidget *widget, gpointer data)
};
if (about) {
gdk_window_show (about->window);
gdk_window_raise (about->window);
xstuff_window_raise_on_current_wspace (about);
return;
}
......@@ -1259,16 +1259,15 @@ edit_dentry (GtkWidget *widget, ShowItemMenu *sim)
if (ditem != NULL) {
/* pass the ditem as the data to clicked */
gtk_signal_connect_full (GTK_OBJECT (dialog), "response",
G_CALLBACK (ditem_properties_clicked),
NULL,
ditem,
(GtkDestroyNotify) gnome_desktop_item_unref,
FALSE, FALSE);
g_signal_connect_data (G_OBJECT (dialog), "response",
G_CALLBACK (ditem_properties_clicked),
ditem,
(GClosureNotify) gnome_desktop_item_unref,
0 /* connect_flags */);
} else {
g_signal_connect (G_OBJECT (dialog), "response",
G_CALLBACK (ditem_properties_clicked),
NULL);
G_CALLBACK (ditem_properties_clicked),
NULL);
}
gtk_widget_show (dialog);
......@@ -1396,12 +1395,11 @@ edit_direntry (GtkWidget *widget, ShowItemMenu *sim)
if (ditem != NULL) {
/* pass the dentry as the data to clicked */
gtk_signal_connect_full (GTK_OBJECT (dialog), "response",
G_CALLBACK (ditem_properties_clicked),
NULL,
ditem,
(GtkDestroyNotify) gnome_desktop_item_unref,
FALSE, FALSE);
g_signal_connect_data (G_OBJECT (dialog), "response",
G_CALLBACK (ditem_properties_clicked),
ditem,
(GClosureNotify) gnome_desktop_item_unref,
0 /* connect_flags */);
} else {
g_signal_connect (G_OBJECT (dialog), "response",
G_CALLBACK (ditem_properties_clicked),
......@@ -1792,12 +1790,13 @@ setup_internal_applet_drag (GtkWidget *menuitem, const char *applet_type)
menu_item_targets, 1,
GDK_ACTION_COPY);
gtk_signal_connect_full (GTK_OBJECT (menuitem), "drag_data_get",
G_CALLBACK (drag_data_get_string_cb), NULL,
g_strdup (applet_type), (GtkDestroyNotify)g_free,
FALSE, FALSE);
g_signal_connect_data (G_OBJECT (menuitem), "drag_data_get",
G_CALLBACK (drag_data_get_string_cb),
g_strdup (applet_type),
(GClosureNotify)g_free,
0 /* connect_flags */);
g_signal_connect (G_OBJECT (menuitem), "drag_end",
G_CALLBACK (drag_end_menu_cb), NULL);
G_CALLBACK (drag_end_menu_cb), NULL);
}
......@@ -2208,9 +2207,10 @@ tearoff_new_menu(GtkWidget *item, GtkWidget *menuw)
/*set the panel to use as the data*/
gtk_object_set_data(GTK_OBJECT(menu), "menu_panel", menu_panel);
gtk_signal_connect_object_while_alive(GTK_OBJECT(menu_panel),
"destroy", G_CALLBACK(gtk_widget_unref),
GTK_OBJECT(menu));
panel_signal_connect_object_while_alive (G_OBJECT (menu_panel),
"destroy",
G_CALLBACK (gtk_widget_unref),
G_OBJECT(menu));
title = g_string_new(NULL);
......@@ -3089,10 +3089,10 @@ add_panel_tearoff_new_menu(GtkWidget *w, gpointer data)
/*set the panel to use as the data*/
gtk_object_set_data (GTK_OBJECT (menu), "menu_panel", menu_panel);
gtk_signal_connect_object_while_alive
(GTK_OBJECT (menu_panel), "destroy",
panel_signal_connect_object_while_alive
(G_OBJECT (menu_panel), "destroy",
G_CALLBACK (gtk_widget_unref),
GTK_OBJECT(menu));
G_OBJECT(menu));
show_tearoff_menu (menu, _("Create panel"), TRUE, 0, 0, wmclass);
......@@ -3359,9 +3359,9 @@ remove_panel_query (GtkWidget *w, gpointer data)
g_signal_connect (G_OBJECT (dialog), "response",
G_CALLBACK (remove_panel_accept),
panelw);
gtk_signal_connect_object_while_alive (GTK_OBJECT (panelw), "destroy",
G_CALLBACK (gtk_widget_destroy),
GTK_OBJECT (dialog));
panel_signal_connect_object_while_alive (G_OBJECT (panelw), "destroy",
G_CALLBACK (gtk_widget_destroy),
G_OBJECT (dialog));
gtk_widget_show_all (dialog);
}
......@@ -3382,9 +3382,9 @@ panel_tearoff_new_menu(GtkWidget *w, gpointer data)
TRUE /* run_item */);
gtk_object_set_data (GTK_OBJECT(menu), "menu_panel", menu_panel);
gtk_signal_connect_object_while_alive(GTK_OBJECT(menu_panel),
"destroy", G_CALLBACK(gtk_widget_unref),
GTK_OBJECT(menu));
panel_signal_connect_object_while_alive (G_OBJECT(menu_panel),
"destroy", G_CALLBACK(gtk_widget_unref),
G_OBJECT(menu));
show_tearoff_menu(menu, _("Main Menu"),TRUE,0,0,wmclass);
......@@ -3727,9 +3727,9 @@ add_to_panel_menu_tearoff_new_menu(GtkWidget *w, gpointer data)
/*set the panel to use as the data*/
menu_panel = get_panel_from_menu_data(w, TRUE);
gtk_object_set_data(GTK_OBJECT(menu), "menu_panel", menu_panel);
gtk_signal_connect_object_while_alive(GTK_OBJECT(menu_panel),
"destroy", G_CALLBACK(gtk_widget_unref),
GTK_OBJECT(menu));
panel_signal_connect_object_while_alive (G_OBJECT(menu_panel),
"destroy", G_CALLBACK(gtk_widget_unref),
G_OBJECT(menu));
show_tearoff_menu(menu, _("Add to panel"),TRUE,0,0, wmclass);
tm = g_new0(TearoffMenu,1);
......@@ -3933,9 +3933,9 @@ panel_menu_tearoff_new_menu(GtkWidget *w, gpointer data)
/*set the panel to use as the data*/
gtk_object_set_data(GTK_OBJECT(menu), "menu_panel", menu_panel);
gtk_signal_connect_object_while_alive(GTK_OBJECT(menu_panel),
"destroy", G_CALLBACK(gtk_widget_unref),
GTK_OBJECT(menu));
panel_signal_connect_object_while_alive (G_OBJECT(menu_panel),
"destroy", G_CALLBACK(gtk_widget_unref),
G_OBJECT(menu));
show_tearoff_menu (menu, _("Panel"), TRUE, 0, 0, wmclass);
......@@ -3962,9 +3962,9 @@ desktop_menu_tearoff_new_menu (GtkWidget *w, gpointer data)
/*set the panel to use as the data*/
menu_panel = get_panel_from_menu_data(w, TRUE);
gtk_object_set_data(GTK_OBJECT(menu), "menu_panel", menu_panel);
gtk_signal_connect_object_while_alive(GTK_OBJECT(menu_panel),
"destroy", G_CALLBACK(gtk_widget_unref),
GTK_OBJECT(menu));
panel_signal_connect_object_while_alive (G_OBJECT(menu_panel),
"destroy", G_CALLBACK(gtk_widget_unref),
G_OBJECT(menu));
show_tearoff_menu (menu, _("Desktop"), TRUE, 0, 0, wmclass);
......@@ -4016,10 +4016,11 @@ create_panel_submenu(GtkWidget *menu, gboolean fake_submenus, gboolean tearoff,
gtk_image_new_from_stock (GNOME_STOCK_ABOUT, GTK_ICON_SIZE_MENU),
_("About GNOME..."));
gtk_menu_shell_append (GTK_MENU_SHELL (menu), menuitem);
gtk_signal_connect_full(GTK_OBJECT (menuitem), "activate",
G_CALLBACK(about_gnome_cb),NULL,
char_tmp, (GtkDestroyNotify)g_free,
FALSE,TRUE);
g_signal_connect_data (G_OBJECT (menuitem), "activate",
G_CALLBACK (about_gnome_cb),
char_tmp,
(GClosureNotify)g_free,
G_CONNECT_AFTER);
}
return menu;
}
......@@ -4360,10 +4361,10 @@ add_menu_widget (Menu *menu,
G_CALLBACK (menu_deactivate), menu);
gtk_object_set_data(GTK_OBJECT(menu->menu), "menu_panel", panel);
gtk_signal_connect_object_while_alive(
GTK_OBJECT(panel),
panel_signal_connect_object_while_alive(
G_OBJECT (panel),
"destroy", G_CALLBACK(gtk_widget_unref),
GTK_OBJECT(menu->menu));
G_OBJECT (menu->menu));
}
static void
......@@ -4899,10 +4900,10 @@ load_tearoff_menu(void)
/*set the panel to use as the data, or we will use current_panel*/
gtk_object_set_data(GTK_OBJECT(menu), "menu_panel",
menu_panel_widget);
gtk_signal_connect_object_while_alive(
GTK_OBJECT(menu_panel_widget),
"destroy", G_CALLBACK(gtk_widget_unref),
GTK_OBJECT(menu));
panel_signal_connect_object_while_alive(
G_OBJECT (menu_panel_widget),
"destroy", G_CALLBACK (gtk_widget_unref),
G_OBJECT (menu));
/* This is so that we get size of the menu right */
show_tearoff_menu (menu, title, FALSE, x, y, wmclass);
......
......@@ -31,6 +31,7 @@
#include "panel.h"
#include "rgb-stuff.h"
#include "multiscreen-stuff.h"
#include "xstuff.h"
enum {
HELP_BUTTON,
......@@ -1612,8 +1613,7 @@ panel_config (GtkWidget *panel)
if (ppc != NULL) {
g_assert (ppc->config_window != NULL);
gtk_widget_show_now (ppc->config_window);
gdk_window_raise (ppc->config_window->window);
xstuff_window_raise_on_current_wspace (ppc->config_window);
return;
}
......
......@@ -1378,3 +1378,37 @@ panel_strech_events_to_toplevel (GtkWidget *widget,
sides,
(GDestroyNotify) g_free);
}
/* stolen from gtk */
void
panel_signal_connect_while_alive (GObject *object,
const gchar *signal,
GCallback func,
gpointer func_data,
GObject *alive_object)
{
GClosure *closure;
g_return_if_fail (G_IS_OBJECT (object));
closure = g_cclosure_new (func, func_data, NULL);
g_object_watch_closure (G_OBJECT (alive_object), closure);
g_signal_connect_closure_by_id (object,
g_signal_lookup (signal, G_OBJECT_TYPE (object)), 0,
closure,
FALSE);
}
void
panel_signal_connect_object_while_alive (GObject *object,
const gchar *signal,
GCallback func,
GObject *alive_object)
{
g_return_if_fail (G_IS_OBJECT (object));
g_signal_connect_closure_by_id (object,
g_signal_lookup (signal, G_OBJECT_TYPE (object)), 0,
g_cclosure_new_object_swap (func, G_OBJECT (alive_object)),
FALSE);
}
......@@ -117,6 +117,16 @@ void panel_strech_events_to_toplevel (GtkWidget *widget,
gboolean left);
void panel_signal_connect_while_alive (GObject *object,
const gchar *signal,
GCallback func,
gpointer func_data,
GObject *alive_object);
void panel_signal_connect_object_while_alive (GObject *object,
const gchar *signal,
GCallback func,
GObject *alive_object);
/* GnomeVFS reading utils */
......
......@@ -31,6 +31,7 @@
#include "panel.h"
#include "rgb-stuff.h"
#include "multiscreen-stuff.h"
#include "xstuff.h"
enum {
HELP_BUTTON,
......@@ -1612,8 +1613,7 @@ panel_config (GtkWidget *panel)
if (ppc != NULL) {
g_assert (ppc->config_window != NULL);
gtk_widget_show_now (ppc->config_window);
gdk_window_raise (ppc->config_window->window);
xstuff_window_raise_on_current_wspace (ppc->config_window);
return;
}
......
......@@ -1427,7 +1427,7 @@ session_read_global_config (void)
gconf_value_get_bool (value);
else if (!strcmp (key, "auto-update-menus"))
g_warning ("\nGman: what's this '%s' ?\nmarkmc: something that's probably not needed\nGman: then why is in the schema? :P", key);
g_warning ("\nGman: what's this '%s' ?\nmarkmc: something that's probably not needed\nGman: then why is in the schema? :P\n_vicious_: It's needed so that say NFS setups don't recheck menus all the time, cuz it can slow things down quite a bit.", key);
else if (!strcmp (key, "highlight-launchers-on-mouseover"))
global_config.highlight_when_over =
......
/* Generated by GOB (v1.0.4) (do not edit directly) */
#ifndef __TITLE_ITEM_PRIVATE_H__
#define __TITLE_ITEM_PRIVATE_H__
#include "title-item.h"
#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */
#ifdef __cplusplus
}
#endif /* __cplusplus */
#endif
/* Generated by GOB (v1.0.10) on Thu Sep 20 22:11:34 2001
(do not edit directly) */
/* End world hunger, donate to the World Food Programme, http://www.wfp.org */
#define GOB_VERSION_MAJOR 1
#define GOB_VERSION_MINOR 0
#define GOB_VERSION_PATCHLEVEL 10
#include "title-item.h"
/* self casting macros */
#define SELF(x) TITLE_ITEM(x)
#define SELF_CONST(x) TITLE_ITEM_CONST(x)
#define IS_SELF(x) IS_TITLE_ITEM(x)
#define TYPE_SELF TYPE_TITLE_ITEM
#define SELF_CLASS(x) TITLE_ITEM_CLASS(x)
#define SELF_GET_CLASS(x) TITLE_ITEM_GET_CLASS(x)
/* self typedefs */
typedef TitleItem Self;
typedef TitleItemClass SelfClass;
/* GTK_CLASS_TYPE for 1.2<->1.3/2.0 GTK+ compatibility */
#ifndef GTK_CLASS_TYPE
#define GTK_CLASS_TYPE(x) (GTK_OBJECT_CLASS(x)->type)
#endif /* GTK_CLASS_TYPE */
/* here are local prototypes */
static void title_item_init (TitleItem * o) G_GNUC_UNUSED;
static void title_item_class_init (TitleItemClass * c) G_GNUC_UNUSED;
/* pointer to the class of our parent */
static GtkMenuItemClass *parent_class = NULL;
GtkType
title_item_get_type (void)
{
static GtkType type = 0;
if (type == 0) {
static const GtkTypeInfo info = {
"TitleItem",
sizeof (TitleItem),
sizeof (TitleItemClass),
(GtkClassInitFunc) title_item_class_init,
(GtkObjectInitFunc) title_item_init,
/* reserved_1 */ NULL,
/* reserved_2 */ NULL,
(GtkClassInitFunc) NULL
};
type = gtk_type_unique (gtk_menu_item_get_type(), &info);
}
return type;
}
/* Short form macros */
#if defined(__GNUC__) && !defined(__STRICT_ANSI__)
#define new() title_item_new()
#endif /* __GNUC__ && !__STRICT_ANSI__ */
/* Short form pointers */
static GtkWidget * (* const new) (void) = title_item_new;
/* a macro for creating a new object of our type */
#define GET_NEW ((TitleItem *)gtk_type_new(title_item_get_type()))
static void
title_item_init (TitleItem * o)
{
#define __GOB_FUNCTION__ ":Title:Item::init"
return;
o = NULL;
}
#undef __GOB_FUNCTION__
static void
title_item_class_init (TitleItemClass * c)
{
#define __GOB_FUNCTION__ ":Title:Item::class_init"
GtkItemClass *gtk_item_class = (GtkItemClass *)c;
parent_class = gtk_type_class (gtk_menu_item_get_type ());
gtk_item_class->select = NULL;
return;
c = NULL;
}
#undef __GOB_FUNCTION__
#line 5 "title-item.gob"
GtkWidget *
title_item_new (void)
#line 100 "title-item.c"
{