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

read/save the remove confirm flag fixes #7018

Sat Mar 11 02:08:04 2000  George Lebl <jirka@5z.com>

	* gnome-panel-properties.c: read/save the remove confirm flag fixes
	  #7018

  	* session.c,menu.c,launcher.c,gnome-run.c,swallow.c: When the panels
	  are on top, then put all dialogs above dock.  All except the
  	  properties dialog which I'm not sure about.  And only do it if
  	  the panels are really on to.
parent 21e6d421
Sat Mar 11 02:08:04 2000 George Lebl <jirka@5z.com>
* gnome-panel-properties.c: read/save the remove confirm flag fixes
#7018
* session.c,menu.c,launcher.c,gnome-run.c,swallow.c: When the panels
are on top, then put all dialogs above dock. All except the
properties dialog which I'm not sure about. And only do it if
the panels are really on to.
2000-03-10 Jacob Berkman <jacob@helixcode.com>
* applet-widget.c (applet_widget_get_rgb_bg): use height for the
......
Sat Mar 11 02:08:04 2000 George Lebl <jirka@5z.com>
* gnome-panel-properties.c: read/save the remove confirm flag fixes
#7018
* session.c,menu.c,launcher.c,gnome-run.c,swallow.c: When the panels
are on top, then put all dialogs above dock. All except the
properties dialog which I'm not sure about. And only do it if
the panels are really on to.
2000-03-10 Jacob Berkman <jacob@helixcode.com>
* applet-widget.c (applet_widget_get_rgb_bg): use height for the
......
......@@ -595,7 +595,7 @@ gnome_panel_applet_register_callback(GtkWidget *applet,
info = get_callback_info(applet,name);
if(!info) {
info = g_new(CallbackInfo,1);
info = g_new0(CallbackInfo,1);
CD(applet)->callbacks = g_slist_prepend(CD(applet)->callbacks,
info);
} else
......
......@@ -1088,7 +1088,7 @@ loadup_vals(void)
global_config.hide_panel_frame = gnome_config_get_bool("hide_panel_frame=FALSE");
global_config.tile_when_over = gnome_config_get_bool("tile_when_over=FALSE");
global_config.saturate_when_over = gnome_config_get_bool("saturate_when_over=TRUE");
global_config.confirm_panel_remove = gnome_config_get_bool("confirm_panel_remove=TRUE");
for(i=0;i<LAST_TILE;i++) {
g_string_sprintf(buf,"tiles_enabled_%d=FALSE",i);
......@@ -1180,6 +1180,8 @@ write_config(GlobalConfig *conf)
conf->tile_when_over);
gnome_config_set_bool("saturate_when_over",
conf->saturate_when_over);
gnome_config_set_bool("confirm_panel_remove",
conf->confirm_panel_remove);
gnome_config_set_int("menu_flags", conf->menu_flags);
gnome_config_set_bool("keys_enabled", conf->keys_enabled);
gnome_config_set_string("menu_key", conf->menu_key);
......
......@@ -1088,7 +1088,7 @@ loadup_vals(void)
global_config.hide_panel_frame = gnome_config_get_bool("hide_panel_frame=FALSE");
global_config.tile_when_over = gnome_config_get_bool("tile_when_over=FALSE");
global_config.saturate_when_over = gnome_config_get_bool("saturate_when_over=TRUE");
global_config.confirm_panel_remove = gnome_config_get_bool("confirm_panel_remove=TRUE");
for(i=0;i<LAST_TILE;i++) {
g_string_sprintf(buf,"tiles_enabled_%d=FALSE",i);
......@@ -1180,6 +1180,8 @@ write_config(GlobalConfig *conf)
conf->tile_when_over);
gnome_config_set_bool("saturate_when_over",
conf->saturate_when_over);
gnome_config_set_bool("confirm_panel_remove",
conf->confirm_panel_remove);
gnome_config_set_int("menu_flags", conf->menu_flags);
gnome_config_set_bool("keys_enabled", conf->keys_enabled);
gnome_config_set_string("menu_key", conf->menu_key);
......
......@@ -26,6 +26,10 @@
#include "gnome-run.h"
#include "panel_config_global.h"
extern GlobalConfig global_config;
static void
string_callback (GtkWidget *w, int button_num, gpointer data)
{
......@@ -163,8 +167,9 @@ browse(GtkWidget *w, GtkWidget *entry)
gtk_window_position (GTK_WINDOW (fsel), GTK_WIN_POS_MOUSE);
gtk_widget_show_now (GTK_WIDGET (fsel));
gnome_win_hints_set_layer (GTK_WIDGET(fsel),
WIN_LAYER_ABOVE_DOCK);
if(!global_config.keep_bottom)
gnome_win_hints_set_layer (GTK_WIDGET(fsel),
WIN_LAYER_ABOVE_DOCK);
gdk_window_raise (GTK_WIDGET (fsel)->window);
}
......@@ -231,6 +236,7 @@ show_run_dialog ()
gtk_widget_show_all (dialog);
gtk_widget_show_now (dialog);
gnome_win_hints_set_layer (GTK_WIDGET(dialog),
WIN_LAYER_ABOVE_DOCK);
if(!global_config.keep_bottom)
gnome_win_hints_set_layer (GTK_WIDGET(dialog),
WIN_LAYER_ABOVE_DOCK);
}
......@@ -52,7 +52,11 @@ launch (Launcher *launcher, int argc, char *argv[])
NULL);
gtk_window_set_wmclass(GTK_WINDOW(dlg),
"no_exec_dialog","Panel");
gtk_widget_show_all(dlg);
gtk_widget_show_all (dlg);
gtk_widget_show_now (dlg);
if(!global_config.keep_bottom)
gnome_win_hints_set_layer (GTK_WIDGET(dlg),
WIN_LAYER_ABOVE_DOCK);
return;
}
......@@ -586,7 +590,11 @@ ask_about_launcher(char *file, PanelWidget *panel, int pos, gboolean exactpos)
gnome_dialog_set_default(GNOME_DIALOG(d),0);
gtk_widget_show_all(d);
gtk_widget_show_all (d);
gtk_widget_show_now (d);
if(!global_config.keep_bottom)
gnome_win_hints_set_layer (GTK_WIDGET(d),
WIN_LAYER_ABOVE_DOCK);
}
void
......
......@@ -622,7 +622,11 @@ add_new_app_to_menu (GtkWidget *widget, char *item_loc)
gnome_dialog_set_default(GNOME_DIALOG(d),0);
gtk_widget_show_all(d);
gtk_widget_show_all (d);
gtk_widget_show_now (d);
if(!global_config.keep_bottom)
gnome_win_hints_set_layer (GTK_WIDGET(d),
WIN_LAYER_ABOVE_DOCK);
}
static void
......@@ -1576,7 +1580,11 @@ try_add_status_to_panel (GtkWidget *widget, gpointer data)
NULL);
gtk_window_set_wmclass(GTK_WINDOW(mbox),
"no_more_status_dialog","Panel");
gtk_widget_show_all(mbox);
gtk_widget_show_all (mbox);
gtk_widget_show_now (mbox);
if(!global_config.keep_bottom)
gnome_win_hints_set_layer (GTK_WIDGET(mbox),
WIN_LAYER_ABOVE_DOCK);
}
}
......@@ -2520,7 +2528,11 @@ create_new_panel(GtkWidget *w, gpointer data)
GNOME_MESSAGE_BOX_ERROR,
GNOME_STOCK_BUTTON_OK,
NULL);
gnome_dialog_run_and_close (GNOME_DIALOG (dialog));
gtk_widget_show_all (dialog);
gtk_widget_show_now (dialog);
if(!global_config.keep_bottom)
gnome_win_hints_set_layer (GTK_WIDGET(dialog),
WIN_LAYER_ABOVE_DOCK);
break;
}
default: break;
......@@ -2815,7 +2827,11 @@ remove_panel_query (GtkWidget *w, gpointer data)
gtk_signal_connect_object_while_alive (GTK_OBJECT(panelw), "destroy",
GTK_SIGNAL_FUNC(gtk_widget_destroy),
GTK_OBJECT(dialog));
gtk_widget_show (dialog);
gtk_widget_show_all (dialog);
gtk_widget_show_now (dialog);
if(!global_config.keep_bottom)
gnome_win_hints_set_layer (GTK_WIDGET(dialog),
WIN_LAYER_ABOVE_DOCK);
}
static void
......
......@@ -185,7 +185,15 @@ apply_global_config(void)
panel_global_keys_setup();
}
static int
static void
timeout_dlg_realized(GtkWidget *dialog)
{
/* always make top layer */
gnome_win_hints_set_layer (GTK_WIDGET(dialog),
WIN_LAYER_ABOVE_DOCK);
}
static gboolean
session_save_timeout(gpointer data)
{
int cookie = GPOINTER_TO_INT(data);
......@@ -215,6 +223,10 @@ session_save_timeout(gpointer data)
gnome_dialog_append_button_with_pixmap (GNOME_DIALOG (ss_timeout_dlg),
_("Continue waiting"),
GNOME_STOCK_PIXMAP_TIMER);
gtk_signal_connect_after(GTK_OBJECT(ss_timeout_dlg), "realize",
GTK_SIGNAL_FUNC(timeout_dlg_realized),
NULL);
if (0 == gnome_dialog_run_and_close (GNOME_DIALOG (ss_timeout_dlg))) {
ss_cookie++;
......
......@@ -23,6 +23,8 @@
GList *check_swallows = NULL;
extern GlobalConfig global_config;
static int
ignore_x_error(Display* d, XErrorEvent* e)
{
......@@ -230,7 +232,11 @@ ask_about_swallowing(PanelWidget *panel, int pos, gboolean exactpos)
gtk_widget_grab_focus(title_e);
gtk_widget_show_all(d);
gtk_widget_show_all (d);
gtk_widget_show_now (d);
if(!global_config.keep_bottom)
gnome_win_hints_set_layer (GTK_WIDGET(d),
WIN_LAYER_ABOVE_DOCK);
}
static int
......
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