Skip to content

Commit

Permalink
update:gui:gtk somehow shows up, but frequent segfaults
Browse files Browse the repository at this point in the history
  • Loading branch information
metalstrolch committed Jun 22, 2020
1 parent dce54b3 commit 240f177
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 2 additions & 2 deletions navit/gui/gtk/destination.c
Original file line number Diff line number Diff line change
Expand Up @@ -545,7 +545,7 @@ int destination_address(struct navit *nav) {
gtk_widget_grab_focus(search->entry_city);

gtk_box_pack_start(GTK_BOX(vbox), table, TRUE, TRUE, 0);
keyboard=gtk_socket_new();
// keyboard=gtk_socket_new();
gtk_box_pack_end(GTK_BOX(vbox), keyboard, FALSE, FALSE, 0);
gtk_container_add(GTK_CONTAINER(window2), vbox);
#if 0
Expand All @@ -554,7 +554,7 @@ int destination_address(struct navit *nav) {
gtk_widget_show_all(window2);

#ifndef _WIN32
gtk_socket_steal(GTK_SOCKET(keyboard), spawn_xkbd("xkbd","-geometry 200x100"));
// gtk_socket_steal(GTK_SOCKET(keyboard), spawn_xkbd("xkbd","-geometry 200x100"));
#endif

country_attr=country_default();
Expand Down
5 changes: 4 additions & 1 deletion navit/gui/gtk/gui_gtk_poi.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@

#include <stdlib.h>
#include <gtk/gtk.h>
#include <gtk/gtkx.h>
#include "gui_gtk_poi.h"
#include "popup.h"
#include "debug.h"
Expand Down Expand Up @@ -384,7 +385,9 @@ void gtk_gui_poi(struct navit *nav) {
search->label_distance = gtk_label_new(_("Select a search radius from screen center in miles"));
}

search->entry_distance=gtk_entry_new_with_max_length(2);
//search->entry_distance=gtk_entry_new_with_max_length(2);
search->entry_distance=gtk_entry_new();
gtk_entry_set_max_length(GTK_ENTRY(search->entry_distance),2);
gtk_entry_set_text(GTK_ENTRY(search->entry_distance),"10");

search->treeview_cat=gtk_tree_view_new();
Expand Down
1 change: 1 addition & 0 deletions navit/gui/gtk/gui_gtk_window.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
#include <X11/XF86keysym.h>
#endif
#include <gtk/gtk.h>
#include <gtk/gtkx.h>
#include "config.h"
#include "item.h"
#include "xmlconfig.h"
Expand Down

0 comments on commit 240f177

Please sign in to comment.