patch-src_grip_c 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152
  1. $OpenBSD: patch-src_grip_c,v 1.6 2013/01/17 13:30:32 ajacoutot Exp $
  2. Remove the Help tab, it does not work with newer yelp.
  3. Remove bogus button that opens up a browser to a non existent page.
  4. Don't display a warning about being a development version.
  5. --- src/grip.c.orig Sat Jun 25 20:00:55 2005
  6. +++ src/grip.c Thu Jan 17 14:27:54 2013
  7. @@ -44,11 +44,8 @@
  8. static void ReallyDie(gint reply,gpointer data);
  9. static void MakeStatusPage(GripInfo *ginfo);
  10. -static void DoHelp(GtkWidget *widget,gpointer data);
  11. -static void MakeHelpPage(GripInfo *ginfo);
  12. static void MakeAboutPage(GripGUI *uinfo);
  13. static void MakeStyles(GripGUI *uinfo);
  14. -static void Homepage(void);
  15. static void LoadImages(GripGUI *uinfo);
  16. static void DoLoadConfig(GripInfo *ginfo);
  17. void DoSaveConfig(GripInfo *ginfo);
  18. @@ -282,7 +279,6 @@ GtkWidget *GripNew(const gchar* geometry,char *device,
  19. MakeRipPage(ginfo);
  20. MakeConfigPage(ginfo);
  21. MakeStatusPage(ginfo);
  22. - MakeHelpPage(ginfo);
  23. MakeAboutPage(uinfo);
  24. ginfo->tray_icon_made = FALSE;
  25. ginfo->tray_menu_sensitive = TRUE;
  26. @@ -317,12 +313,6 @@ GtkWidget *GripNew(const gchar* geometry,char *device,
  27. strcpy(ginfo->version,VERSION);
  28. sscanf(VERSION,"%d.%d.%d",&major,&minor,&point);
  29. -
  30. - /* Check if we have a dev release */
  31. - if(minor%2) {
  32. - gnome_app_warning((GnomeApp *)ginfo->gui_info.app,
  33. - _("This is a development version of Grip. If you encounter problems, you are encouraged to revert to the latest stable version."));
  34. - }
  35. }
  36. g_signal_connect(app, "window-state-event", G_CALLBACK(AppWindowStateCB), ginfo);
  37. @@ -467,72 +457,6 @@ void LogStatus(GripInfo *ginfo,char *fmt,...)
  38. g_free(buf);
  39. }
  40. -static void DoHelp(GtkWidget *widget,gpointer data)
  41. -{
  42. - char *section;
  43. -
  44. - section=(char *)data;
  45. -
  46. - gnome_help_display("grip.xml",section,NULL);
  47. -}
  48. -
  49. -static void MakeHelpPage(GripInfo *ginfo)
  50. -{
  51. - GtkWidget *help_page;
  52. - GtkWidget *button;
  53. - GtkWidget *vbox;
  54. -
  55. - help_page=MakeNewPage(ginfo->gui_info.notebook,_("Help"));
  56. -
  57. - vbox=gtk_vbox_new(FALSE,0);
  58. - gtk_container_border_width(GTK_CONTAINER(vbox),3);
  59. -
  60. - button=gtk_button_new_with_label(_("Table Of Contents"));
  61. - gtk_signal_connect(GTK_OBJECT(button),"clicked",
  62. - GTK_SIGNAL_FUNC(DoHelp),NULL);
  63. - gtk_box_pack_start(GTK_BOX(vbox),button,FALSE,FALSE,0);
  64. - gtk_widget_show(button);
  65. -
  66. - button=gtk_button_new_with_label(_("Playing CDs"));
  67. - gtk_signal_connect(GTK_OBJECT(button),"clicked",
  68. - GTK_SIGNAL_FUNC(DoHelp),(gpointer)"cdplayer");
  69. - gtk_box_pack_start(GTK_BOX(vbox),button,FALSE,FALSE,0);
  70. - gtk_widget_show(button);
  71. -
  72. - button=gtk_button_new_with_label(_("Ripping CDs"));
  73. - gtk_signal_connect(GTK_OBJECT(button),"clicked",
  74. - GTK_SIGNAL_FUNC(DoHelp),(gpointer)"ripping");
  75. - gtk_box_pack_start(GTK_BOX(vbox),button,FALSE,FALSE,0);
  76. - gtk_widget_show(button);
  77. -
  78. - button=gtk_button_new_with_label(_("Configuring Grip"));
  79. - gtk_signal_connect(GTK_OBJECT(button),"clicked",
  80. - GTK_SIGNAL_FUNC(DoHelp),(gpointer)"configure");
  81. - gtk_box_pack_start(GTK_BOX(vbox),button,FALSE,FALSE,0);
  82. - gtk_widget_show(button);
  83. -
  84. - button=gtk_button_new_with_label(_("FAQ"));
  85. - gtk_signal_connect(GTK_OBJECT(button),"clicked",
  86. - GTK_SIGNAL_FUNC(DoHelp),(gpointer)"faq");
  87. - gtk_box_pack_start(GTK_BOX(vbox),button,FALSE,FALSE,0);
  88. - gtk_widget_show(button);
  89. -
  90. - button=gtk_button_new_with_label(_("Getting More Help"));
  91. - gtk_signal_connect(GTK_OBJECT(button),"clicked",
  92. - GTK_SIGNAL_FUNC(DoHelp),(gpointer)"morehelp");
  93. - gtk_box_pack_start(GTK_BOX(vbox),button,FALSE,FALSE,0);
  94. - gtk_widget_show(button);
  95. -
  96. - button=gtk_button_new_with_label(_("Reporting Bugs"));
  97. - gtk_signal_connect(GTK_OBJECT(button),"clicked",
  98. - GTK_SIGNAL_FUNC(DoHelp),(gpointer)"bugs");
  99. - gtk_box_pack_start(GTK_BOX(vbox),button,FALSE,FALSE,0);
  100. - gtk_widget_show(button);
  101. -
  102. - gtk_container_add(GTK_CONTAINER(help_page),vbox);
  103. - gtk_widget_show(vbox);
  104. -}
  105. -
  106. void MakeAboutPage(GripGUI *uinfo)
  107. {
  108. GtkWidget *aboutpage;
  109. @@ -582,15 +506,6 @@ void MakeAboutPage(GripGUI *uinfo)
  110. hbox=gtk_hbox_new(TRUE,0);
  111. - button=gtk_button_new_with_label("http://www.nostatic.org/grip");
  112. - gtk_widget_set_style(button,uinfo->style_dark_grey);
  113. - gtk_widget_set_style(GTK_BIN(button)->child,
  114. - uinfo->style_dark_grey);
  115. - gtk_signal_connect(GTK_OBJECT(button),"clicked",
  116. - GTK_SIGNAL_FUNC(Homepage),NULL);
  117. - gtk_box_pack_start(GTK_BOX(hbox),button,FALSE,FALSE,0);
  118. - gtk_widget_show(button);
  119. -
  120. gtk_box_pack_start(GTK_BOX(vbox2),hbox,FALSE,FALSE,0);
  121. gtk_widget_show(hbox);
  122. @@ -623,11 +538,6 @@ static void MakeStyles(GripGUI *uinfo)
  123. uinfo->style_dark_grey=MakeStyle(&gdkwhite,color_dark_grey,TRUE);
  124. }
  125. -static void Homepage(void)
  126. -{
  127. - system("gnome-moz-remote http://www.nostatic.org/grip");
  128. -}
  129. -
  130. static void LoadImages(GripGUI *uinfo)
  131. {
  132. uinfo->check_image=Loadxpm(uinfo->app,check_xpm);
  133. @@ -762,7 +672,7 @@ static void DoLoadConfig(GripInfo *ginfo)
  134. *ginfo->version='\0';
  135. - strcpy(ginfo->cd_device,"/dev/cdrom");
  136. + strcpy(ginfo->cd_device,"/dev/cd0c");
  137. *ginfo->force_scsi='\0';
  138. ginfo->local_mode=FALSE;