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

set window icon

Tue Feb 05 17:48:58 2002  George Lebl <jirka@5z.com>

	* gnome-run.c: set window icon

	* menu-util.c: remove the applets sub from the default menu flags

	* menu.c: About box fixups, use a logo, add documentors, fix
	  translation credits, and use the comment for the commie mode
	  paragraph.  Use the standard defaults when adding a menu.
	  When saving a ditem in the timeout, save the error and display
	  it in an error dialog when we close the property window.
	  Add more descriptive standard menu tooltips.  When there is
	  no full menu name use the directory basename rather then "Menu".
	  Translate the things from the bonobo server entry.  Use
	  a lazy hash for category->icon lookups, and use untranslated
	  category name to lookup icons.  Use standard panel error
	  dialog api for 'only one foobar' dialog.

	* panel-widget.c: unused var warning

	* xstuff.c: fix possible race (I'm anal, perhaps it's not a race
	  at all in fact, but it's not there anymore)
parent 538f5258
Tue Feb 05 17:48:58 2002 George Lebl <jirka@5z.com>
* gnome-run.c: set window icon
* menu-util.c: remove the applets sub from the default menu flags
* menu.c: About box fixups, use a logo, add documentors, fix
translation credits, and use the comment for the commie mode
paragraph. Use the standard defaults when adding a menu.
When saving a ditem in the timeout, save the error and display
it in an error dialog when we close the property window.
Add more descriptive standard menu tooltips. When there is
no full menu name use the directory basename rather then "Menu".
Translate the things from the bonobo server entry. Use
a lazy hash for category->icon lookups, and use untranslated
category name to lookup icons. Use standard panel error
dialog api for 'only one foobar' dialog.
* panel-widget.c: unused var warning
* xstuff.c: fix possible race (I'm anal, perhaps it's not a race
at all in fact, but it's not there anymore)
2002-02-05 Mark McLoughlin <mark@skynet.ie>
* panel.c: (panel_session_init_panels): audit use of
......
......@@ -29,6 +29,7 @@
#include <libgnome/libgnome.h>
#include <libgnomeui/libgnomeui.h>
#include <libgnomeui/gnome-window-icon.h>
#include "gnome-run.h"
......@@ -307,6 +308,9 @@ run_dialog_response (GtkWidget *w, int response, gpointer data)
} else if (strcmp (s, "gegls from outer space") == 0) {
start_geginv ();
goto return_and_close;
} else if (strcmp (s, "End world hunger") == 0) {
gnome_url_show ("http://www.wfp.org", NULL);
goto return_and_close;
}
/* Somewhat of a hack I suppose */
......@@ -1146,10 +1150,8 @@ show_run_dialog (void)
gtk_window_set_default_size (GTK_WINDOW (run_dialog),
-1, 400);
#ifdef FIXME
gnome_window_icon_set_from_file (GTK_WINDOW (run_dialog),
GNOME_ICONDIR"/gnome-run.png");
#endif
g_signal_connect(G_OBJECT(run_dialog), "destroy",
G_CALLBACK(gtk_widget_destroyed),
&run_dialog);
......
......@@ -173,7 +173,7 @@ get_default_menu_flags (void)
{
DistributionType distribution = get_distribution_type();
int flags = MAIN_MENU_SYSTEM_SUB | MAIN_MENU_APPLETS_SUB |
int flags = MAIN_MENU_SYSTEM_SUB |
MAIN_MENU_PANEL_SUB | MAIN_MENU_DESKTOP;
/*guess distribution menus*/
......
This diff is collapsed.
......@@ -2874,8 +2874,6 @@ panel_widget_tab_move (PanelWidget *panel,
ad = panel->currently_dragged_applet;
if (!ad) {
GtkWidgetClass *class;
g_return_if_fail (GTK_WIDGET_HAS_FOCUS (panel));
GTK_WIDGET_UNSET_FLAGS (GTK_WIDGET (panel), GTK_CAN_FOCUS);
......
......@@ -100,15 +100,10 @@ try_adding_status(guint32 winid)
}
static void
try_checking_swallows (WnckWindow *window)
try_checking_swallows (gulong xid, const char *name)
{
gulong xid;
const char *name;
GList *li;
name = wnck_window_get_name (window);
xid = wnck_window_get_xid (window);
if (name == NULL)
return;
......@@ -125,36 +120,53 @@ try_checking_swallows (WnckWindow *window)
}
}
typedef struct {
char *name;
gulong xid;
} XWin;
void
xstuff_go_through_client_list (void)
{
WnckScreen *screen = wnck_screen_get (0 /* FIXME screen number */);
GList *windows, *li;
GList *windows, *li, *our_windows = NULL;
windows = g_list_copy (wnck_screen_get_windows (screen));
/* Avoid possible race by copying out information first */
windows = wnck_screen_get_windows (screen);
while (windows != NULL) {
WnckWindow *window = windows->data;
XWin *xw = g_new0 (XWin, 1);
xw->name = g_strdup (wnck_window_get_name (window));
xw->xid = wnck_window_get_xid (window);
gdk_error_trap_push ();
our_windows = g_list_prepend (our_windows, xw);
/* FIXME: is this a possible race? Can the WnckWindows disappear while
* we're traversing them? I think they can, fix this! */
windows = windows->next;
}
gdk_error_trap_push ();
/* just for status dock stuff for now */
for (li = windows; li != NULL; li = li->next) {
WnckWindow *window = li->data;
const char *name = wnck_window_get_name (window);
for (li = our_windows; li != NULL; li = li->next) {
XWin *xw = li->data;
/* skip own windows */
if (name != NULL &&
strcmp (name, "panel") == 0)
if (xw->name != NULL &&
strcmp (xw->name, "panel") == 0)
continue;
if (check_swallows != NULL)
try_checking_swallows (window);
try_adding_status (wnck_window_get_xid (window));
try_checking_swallows (xw->xid, xw->name);
try_adding_status (xw->xid);
li->data = NULL;
g_free (xw->name);
xw->name = NULL;
g_free (xw);
}
gdk_flush();
gdk_error_trap_pop ();
g_list_free (windows);
g_list_free (our_windows);
}
void
......
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