diff --git a/src/gawmain.c b/src/gawmain.c
index 394eb3f..01778f2 100644
--- a/src/gawmain.c
+++ b/src/gawmain.c
@@ -224,7 +224,6 @@ aw_update_from_prefs ( UserData *ud )
gm_update_toggle_state(ud->group, "Ydiff", ud->up->showYDiff);
gm_update_toggle_state(ud->group, "ShowGrid", ud->up->showGrid);
gm_update_toggle_state(ud->group, "Scientific", ud->up->scientific);
- gm_update_toggle_state(ud->group, "AllowResize", ud->up->allowResize);
gm_update_toggle_state(ud->group, "BarStyle", ud->up->toolBarStyle);
gtk_toolbar_set_style(GTK_TOOLBAR(ud->toolBar), (GtkToolbarStyle) ud->up->toolBarStyle );
}
@@ -410,7 +409,7 @@ void aw_window_size(UserData *ud )
// if ( ud->winWidth ) {
// width = ud->winWidth ;
// }
- if ( ud->up->allowResize == 0 || ud->winWidth == 0 ) {
+ if ( ud->winWidth == 0 ) {
gtk_window_resize (GTK_WINDOW (ud->window), ud->reqWinWidth, ud->reqWinHeight);
}
msg_dbg( "w %d, h %d panelH %d", ud->reqWinWidth, ud->reqWinHeight, ud->panelScrolledHeight );
diff --git a/src/gawmenus.c b/src/gawmenus.c
index 42a39ac..5384c33 100644
--- a/src/gawmenus.c
+++ b/src/gawmenus.c
@@ -72,19 +72,6 @@ void aw_default_file_name_gaction (GSimpleAction *action, GVariant *param, gpoin
aw_do_save_config (ud );
}
-static void
-toggle_allow_resize_gaction (GSimpleAction *action, GVariant *param, gpointer user_data )
-{
- UserData *ud = (UserData *) user_data;
- GVariant *state = g_action_get_state (G_ACTION (action));
- ud->up->allowResize = ! g_variant_get_boolean ( state);
- g_action_change_state (G_ACTION (action),
- g_variant_new_boolean (ud->up->allowResize));
- g_variant_unref (state);
-
-// msg_dbg ("Action allowResize %d", ud->up->allowResize );
-}
-
static void
toggle_bar_style_gaction (GSimpleAction *action, GVariant *param, gpointer user_data )
{
@@ -877,12 +864,6 @@ static const gchar gaw_menubar[] =
" "
" "
" "
-" - "
-" Allow Resize"
-" gaw.AllowResize"
-"
"
-" "
-" "
" "
@@ -973,7 +954,6 @@ static TooltipInfo menubarTip[] = {
{ "ShowGrid", N_("Show Grid"), N_("Show Grid in panels"), NULL },
{ "Scientific", N_("Scientific conversion"), N_("Use Scientific conversion mode"), NULL },
{ "PanelColor", N_("Change panel Colors..."), N_("Change colors used in panel drawing area"), NULL },
- { "AllowResize", N_("Allow Resize"), N_("Allow Resize the main window"), NULL },
{ "TextAction", N_("Open Text tool..."), N_("Open text tool settings"), NULL },
{ "AlgoMenuAction", N_("Algorithm List") , N_("Select an Algorithm from the List"), NULL },
@@ -1037,7 +1017,6 @@ static GActionEntry entries[] = {
static GActionEntry toggle_entries[] = {
{ "BarStyle", toggle_bar_style_gaction, NULL, "true", NULL },
- { "AllowResize", toggle_allow_resize_gaction, NULL, "true", NULL },
{ "showXlabels", aw_showXlabel_gaction, NULL, "true", NULL },
{ "moreYlabels", aw_showMoreYlabel_gaction, NULL, "true", NULL },
{ "showYlabels", aw_showYlabel_gaction, NULL, "true", NULL },
diff --git a/src/userprefs.h b/src/userprefs.h
index e17dddd..b5c098e 100644
--- a/src/userprefs.h
+++ b/src/userprefs.h
@@ -78,7 +78,6 @@ struct _UserPrefs {
int panelWidth; /* nominal width for panel */
int minPanelHeight; /* minimun height for panel */
int minPanelWidth; /* minimum width for panel */
- int allowResize; /* allow resize the main window */
int drawAlgo; /* index of the drawing algorithm */
int toolBarStyle; /* icons, text or both */
char *panelBgColor; /* RGB color for panel background 0-0xff, 0-0xff, 0-0xff */
@@ -197,11 +196,6 @@ void *up_addr_up_minPanelWidth( UserPrefs *up )
return &up->minPanelWidth;
}
-void *up_addr_up_allowResize( UserPrefs *up )
-{
- return &up->allowResize;
-}
-
void *up_addr_up_drawAlgo( UserPrefs *up )
{
return &up->drawAlgo;
@@ -518,8 +512,6 @@ ConfigDescTable confDesc[] = { /* UserPrefs - by mkcf */
"user default font for drawing text" },
{ "up_angle", up_addr_up_angle, TPTR,
"degree: default angle for drawing text" },
-{ "up_allowResize", up_addr_up_allowResize, TDECI,
- "allow resize the main window" },
{ "up_drawAlgo", up_addr_up_drawAlgo, TDECI,
"index of the drawing algorithm" },
{ "up_lboxbgColor", up_addr_up_lboxbgColor, TPTR,