Feature #1287 » 1287-S3_1&S3_2corrected.patch
| 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); | ||
|   } | ||
| } | ||
| client/gui-gtk-4.0/helpdlg.c | ||
|---|---|---|
| static GtkWidget *help_view; | ||
| static GtkWidget *help_frame; | ||
| static int help_dlog_width = 520, help_dlog_height = 350; | ||
| static GtkTextBuffer *help_text; | ||
| static GtkWidget *help_text_sw; | ||
| static GtkWidget *help_vbox; | ||
| ... | ... | |
|                    G_CALLBACK(help_command_callback), NULL); | ||
|   g_signal_connect(help_dialog_shell, "destroy", | ||
|                    G_CALLBACK(help_destroy_callback), NULL); | ||
|   gtk_window_set_default_size (GTK_WINDOW(help_dialog_shell), | ||
|                                  help_dlog_width, | ||
|                                  help_dlog_height); | ||
|   hbox = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 5); | ||
|   gtk_box_append(GTK_BOX(gtk_dialog_get_content_area(GTK_DIALOG(help_dialog_shell))), | ||
| ... | ... | |
|       help_command_update(); | ||
|     } | ||
|   } else { | ||
|     /* Save size of the dialog. */ | ||
|     gtk_window_get_default_size (GTK_WINDOW(help_dialog_shell), | ||
|                                  &help_dlog_width, | ||
|                                  &help_dlog_height); | ||
|     gtk_window_destroy(GTK_WINDOW(help_dialog_shell)); | ||
|   } | ||
| } | ||