Feature #1287 » #1287-3.1.patch
| client/gui-gtk-3.0/helpdlg.c | ||
|---|---|---|
| static GtkWidget *help_view; | ||
| static GtkWidget *help_frame; | ||
| static int help_frame_width = 520, help_frame_height = 350;  | ||
| static GtkTextBuffer *help_text; | ||
| static GtkWidget *help_text_sw; | ||
| static GtkWidget *help_vbox; | ||
| ... | ... | |
|   help_frame = gtk_frame_new(""); | ||
|   gtk_container_add(GTK_CONTAINER(hbox), help_frame); | ||
|   gtk_widget_set_size_request(help_frame, 520, 350); | ||
|   gtk_widget_set_size_request(help_frame, help_frame_width, help_frame_height); | ||
|   gtk_widget_show(help_frame); | ||
|   help_box = gtk_grid_new(); | ||
| ... | ... | |
|       help_command_update(); | ||
|     } | ||
|   } else { | ||
| 	  /* Save size of the dialog. */ | ||
|     help_frame_width = gtk_widget_get_allocated_width(help_frame); | ||
|     help_frame_height = gtk_widget_get_allocated_height(help_frame); | ||
|     gtk_widget_destroy(help_dialog_shell); | ||
|   } | ||
| } | ||
| client/gui-gtk-3.22/helpdlg.c | ||
|---|---|---|
| static GtkWidget *help_view; | ||
| static GtkWidget *help_frame; | ||
| static int help_frame_width = 520, help_frame_height = 350;  | ||
| static GtkTextBuffer *help_text; | ||
| static GtkWidget *help_text_sw; | ||
| static GtkWidget *help_vbox; | ||
| ... | ... | |
|   help_frame = gtk_frame_new(""); | ||
|   gtk_container_add(GTK_CONTAINER(hbox), help_frame); | ||
|   gtk_widget_set_size_request(help_frame, 520, 350); | ||
|   gtk_widget_set_size_request(help_frame, help_frame_width, help_frame_height); | ||
|   gtk_widget_show(help_frame); | ||
|   help_box = gtk_grid_new(); | ||
| ... | ... | |
|       help_command_update(); | ||
|     } | ||
|   } else { | ||
| 	  /* Save size of the dialog. */ | ||
|     help_frame_width = gtk_widget_get_allocated_width(help_frame); | ||
|     help_frame_height = gtk_widget_get_allocated_height(help_frame); | ||
|     gtk_widget_destroy(help_dialog_shell); | ||
|   } | ||
| } | ||