diff options
Diffstat (limited to 'chrome/browser/ui/gtk/browser_actions_toolbar_gtk.cc')
-rw-r--r-- | chrome/browser/ui/gtk/browser_actions_toolbar_gtk.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/chrome/browser/ui/gtk/browser_actions_toolbar_gtk.cc b/chrome/browser/ui/gtk/browser_actions_toolbar_gtk.cc index f1fe047..35b3ac0 100644 --- a/chrome/browser/ui/gtk/browser_actions_toolbar_gtk.cc +++ b/chrome/browser/ui/gtk/browser_actions_toolbar_gtk.cc @@ -59,11 +59,12 @@ const int kSeparatorPadding = 2; // Width of the invisible gripper for resizing the toolbar. const int kResizeGripperWidth = 4; -const char kDragTarget[] = "application/x-chrome-browseraction"; +const char* kDragTarget = "application/x-chrome-browseraction"; GtkTargetEntry GetDragTargetEntry() { + static std::string drag_target_string(kDragTarget); GtkTargetEntry drag_target; - drag_target.target = const_cast<char*>(kDragTarget); + drag_target.target = const_cast<char*>(drag_target_string.c_str()); drag_target.flags = GTK_TARGET_SAME_APP; drag_target.info = 0; return drag_target; |